Local Cube Map Reflections

2014/12/21 19:37

An extension of the previous cubemap reflections example, this time the cube map lookup is modified by a ray/sphere intersection test so that the reflection changes position as the sphere changes position. see http://http.developer.nvidia.com/GPUGems/gpugems_ch19.html for more details.

The example can be, as usual, found here : https://github.com/welford/opengl_samples in example 22.gl_local_cubemap_reflections

The controls are, the arrow keys : move the sphere up or down, left shift + the arrow keys : rotate the camera, 1 : enable local reflections, 2 : disable local reflections