Files
cocos4/editor/assets/chunks/common/lighting/light-map.chunk
T
jk20012001 c4c95e9e59 add sky.effect with surface shader (#11156)
* add sky.effect with surface shader
surface shader code style

* get ready for chunks reorganizing

* Delete default_skybox_diffusion.png.meta

* add depth functions

* add meta
2022-05-23 15:15:17 +08:00

15 lines
407 B
Plaintext

vec4 GetLightMapColor(sampler2D lightingMap, vec2 luv, float lum)
{
vec4 lightmap = texture(lightingMap, luv);
lightmap.rgb *= lum;
#if CC_USE_HDR
// convert from standard camera exposure parameters to current exposure value
// baked in LDR scene still regarded as exposured with standard camera parameters
lightmap.rgb *= cc_exposure.w * cc_exposure.x;
#endif
return lightmap;
}