GLUS
Functions
glus_matrix_planar.h File Reference

Go to the source code of this file.

Functions

GLUSAPI GLUSvoid GLUSAPIENTRY glusMatrix4x4PlanarShadowPointLightf (GLUSfloat matrix[16], const GLUSfloat shadowPlane[4], const GLUSfloat lightPoint[4])
 Creates the projection matrix to simulate a planar shadow coming from a point / spot light. More...
 
GLUSAPI GLUSvoid GLUSAPIENTRY glusMatrix4x4PlanarShadowDirectionalLightf (GLUSfloat matrix[16], const GLUSfloat shadowPlane[4], const GLUSfloat lightDirection[3])
 Creates the projection matrix to simulate a planar shadow coming from a directional light. More...
 
GLUSAPI GLUSvoid GLUSAPIENTRY glusMatrix4x4PlanarReflectionf (GLUSfloat matrix[16], const GLUSfloat reflectionPlane[4])
 Creates the projection matrix to simulate a planar reflection. More...
 

Function Documentation

GLUSAPI GLUSvoid GLUSAPIENTRY glusMatrix4x4PlanarReflectionf ( GLUSfloat  matrix[16],
const GLUSfloat  reflectionPlane[4] 
)

Creates the projection matrix to simulate a planar reflection.

Parameters
matrixThe matrix, which is set to the projection matrix.
reflectionPlaneThe reflecting plane.
GLUSAPI GLUSvoid GLUSAPIENTRY glusMatrix4x4PlanarShadowDirectionalLightf ( GLUSfloat  matrix[16],
const GLUSfloat  shadowPlane[4],
const GLUSfloat  lightDirection[3] 
)

Creates the projection matrix to simulate a planar shadow coming from a directional light.

Parameters
matrixThe matrix, which is set to the projection matrix.
shadowPlaneThe shadow receiver plane.
lightDirectionThe direction of the light, pointing towards the light source.
GLUSAPI GLUSvoid GLUSAPIENTRY glusMatrix4x4PlanarShadowPointLightf ( GLUSfloat  matrix[16],
const GLUSfloat  shadowPlane[4],
const GLUSfloat  lightPoint[4] 
)

Creates the projection matrix to simulate a planar shadow coming from a point / spot light.

Parameters
matrixThe matrix, which is set to the projection matrix.
shadowPlaneThe shadow receiver plane.
lightPointThe origin of the light.