mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
27 lines
620 B
Plaintext
27 lines
620 B
Plaintext
struct LightingResult
|
|
{
|
|
// material-dependent lighting data
|
|
vec3 diffuseColorWithLighting, specularColorWithLighting;
|
|
|
|
// pure lighting
|
|
vec3 directDiffuse, directSpecular;
|
|
vec3 environmentDiffuse, environmentSpecular;
|
|
float shadow, ao;
|
|
vec3 lightmapColor;
|
|
vec3 emissive;
|
|
|
|
float fresnel;
|
|
|
|
#if CC_SURFACES_LIGHTING_TRANSMIT_SPECULAR
|
|
vec3 directTransmitSpecular;
|
|
vec3 environmentTransmitSpecular;
|
|
#endif
|
|
#if CC_SURFACES_LIGHTING_TRANSMITTENCE
|
|
vec3 directTransmittence, environmentTransmittence;
|
|
#endif
|
|
#if CC_SURFACES_LIGHTING_TRT
|
|
vec3 directTRT, environmentTRT;
|
|
#endif
|
|
//vec3 scattered;
|
|
};
|