Effets: Environment Mapping

Représenter une reflexion d'une skybox sur une surface
// Get the color of the environment map
vec3 V = normalize(camera_position - fragment.position);
vec3 R_skybox = reflect(-V, N); 
vec4 color_environment_map = texture(image_skybox, skybox_rotation);

assets/environment_mapping.png

Demo code