Support Forum       G3D Web Page     
Public Member Functions | List of all members
glsl::lightMap_glsl Class Reference


Include into your shader to access the radiosityNormalMap(lightMap0, lightMap1, lightMap2, lightCoord, tsN) function, which returns a radiance sample from the Radiosity Normal Map specified by the first three parameters. More...

Public Member Functions

vec3 radiosityNormalMap (in sampler2D lightMap0, in sampler2D lightMap1, in sampler2D lightMap2, in vec2 lightCoord, in vec3 tsN)
 
"radiosity normal map" (actually more like an irradiance map) used by Unreal Engine 3 and Source Engine. More...
 

Detailed Description


Include into your shader to access the radiosityNormalMap(lightMap0, lightMap1, lightMap2, lightCoord, tsN) function, which returns a radiance sample from the Radiosity Normal Map specified by the first three parameters.

Member Function Documentation

◆ radiosityNormalMap()

vec3 glsl::lightMap_glsl::radiosityNormalMap ( in sampler2D  lightMap0,
in sampler2D  lightMap1,
in sampler2D  lightMap2,
in vec2  lightCoord,
in vec3  tsN 
)
inline


"radiosity normal map" (actually more like an irradiance map) used by Unreal Engine 3 and Source Engine.

Uses the Half-Life 2 basis. For more on radiosity normal maps, see http://www2.ati.com/developer/gdc/D3DTutorial10_Half-Life2_Shading.pdf.


documentation generated on Wed Nov 24 2021 08:02:04 using doxygen 1.8.15