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

Shader program. More...

Public Member Functions

Color3 computeGlossyEnvironmentMapLighting (Vector3 wsR, bool isMirror, float glossyExponent, const bool allowMIPMap)
 Uses the globals: NUM_ENVIRONMENT_MAPS environmentMap_buffer environmentMap_scale. More...
 
Radiance3 computeIndirectLighting (UniversalMaterialSample surfel, Vector3 w_o, const bool allowAutoMIP, const int numLightMapDirections)
 
Color3 computeLambertianEnvironmentMapLighting (Vector3 wsN)
 Uses the globals: NUM_ENVIRONMENT_MAPS environmentMap_buffer environmentMap_scale. More...
 
uniform samplerCube environmentMap (i) _buffer
 The cube map with default OpenGL MIP levels. More...
 
uniform vec4 environmentMap (i) _readMultiplyFirst
 Includes the weight for interpolation factors, the environment map's native scaling, and a factor of PI. More...
 
uniform float environmentMap (i) _glossyMIPConstant
 log2(environmentMap.width * sqrt(3)) More...
 
Radiance3 sampleEnvironmentMap (Vector3 wsDirection, bool forceMIP0, float MIPShift, const bool allowMIPMap)
 

Detailed Description

Shader program.

Member Function Documentation

◆ computeGlossyEnvironmentMapLighting()

Color3 glsl::LightingEnvironment_environmentMapUniforms_glsl::computeGlossyEnvironmentMapLighting ( Vector3  wsR,
bool  isMirror,
float  glossyExponent,
const bool  allowMIPMap 
)
inline

Uses the globals: NUM_ENVIRONMENT_MAPS environmentMap_buffer environmentMap_scale.

◆ computeIndirectLighting()

Radiance3 glsl::LightingEnvironment_environmentMapUniforms_glsl::computeIndirectLighting ( UniversalMaterialSample  surfel,
Vector3  w_o,
const bool  allowAutoMIP,
const int  numLightMapDirections 
)
inline

◆ computeLambertianEnvironmentMapLighting()

Color3 glsl::LightingEnvironment_environmentMapUniforms_glsl::computeLambertianEnvironmentMapLighting ( Vector3  wsN)
inline

Uses the globals: NUM_ENVIRONMENT_MAPS environmentMap_buffer environmentMap_scale.

◆ environmentMap() [1/3]

uniform samplerCube glsl::LightingEnvironment_environmentMapUniforms_glsl::environmentMap ( )

The cube map with default OpenGL MIP levels.

◆ environmentMap() [2/3]

uniform vec4 glsl::LightingEnvironment_environmentMapUniforms_glsl::environmentMap ( )

Includes the weight for interpolation factors, the environment map's native scaling, and a factor of PI.

◆ environmentMap() [3/3]

uniform float glsl::LightingEnvironment_environmentMapUniforms_glsl::environmentMap ( )

log2(environmentMap.width * sqrt(3))

◆ sampleEnvironmentMap()

Radiance3 glsl::LightingEnvironment_environmentMapUniforms_glsl::sampleEnvironmentMap ( Vector3  wsDirection,
bool  forceMIP0,
float  MIPShift,
const bool  allowMIPMap 
)
inline

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