mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
c4c95e9e59
* 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
15 lines
407 B
Plaintext
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;
|
|
}
|