|
R2 Shaders
|
Functions for environment-mapped reflections. More...
#include "R2CubeMaps.h"

Go to the source code of this file.
Functions | |
| vec4 | R2_environmentReflection (const samplerCube t, const vec3 v_eye, const vec3 n_eye, const mat4x4 view_inv) |
Functions for environment-mapped reflections.
Definition in file R2EnvironmentReflection.h.
| vec4 R2_environmentReflection | ( | const samplerCube | t, |
| const vec3 | v_eye, | ||
| const vec3 | n_eye, | ||
| const mat4x4 | view_inv | ||
| ) |
Calculate a reflection based on the eye-space view direction v_eye and eye-space surface normal n_eye. The reflection vector is transformed to world-space using the inverse view transform view_inv and sampled from the right-handed cube map t.
| t | A right-handed cube map |
| v_eye | An eye-space view direction |
| n_eye | An eye-space surface normal |
| view_inv | An eye-space-to-world-space matrix |
Definition at line 24 of file R2EnvironmentReflection.h.
1.8.12