R2 Shaders
|
Functions and types related to projective lighting. More...
#include "R2LightPositional.h"
Go to the source code of this file.
Data Structures | |
struct | R2_light_projective_vectors_t |
Vectors used when calculating projective lighting. More... | |
Functions | |
R2_light_projective_vectors_t | R2_lightProjectiveVectors (const R2_light_positional_t light, const vec3 p, const vec3 n, const mat4x4 m_eye_to_light_eye, const mat4x4 m_light_projection) |
Functions and types related to projective lighting.
Definition in file R2LightProjective.h.
R2_light_projective_vectors_t R2_lightProjectiveVectors | ( | const R2_light_positional_t | light, |
const vec3 | p, | ||
const vec3 | n, | ||
const mat4x4 | m_eye_to_light_eye, | ||
const mat4x4 | m_light_projection | ||
) |
Calculate the vectors required to calculate projective lighting.
light | The light parameters |
p | The surface position (eye-space) |
n | The surface normal (eye-space) |
m_eye_to_light_eye | A matrix to transform eye-space positions to light-eye-space |
m_light_projection | The light's projection matrix |
Definition at line 42 of file R2LightProjective.h.