mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
11 lines
268 B
Plaintext
11 lines
268 B
Plaintext
// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
|
|
#include <cc-global>
|
|
#include <gamma>
|
|
|
|
vec4 CCFragOutput (vec4 color) {
|
|
#if CC_USE_HDR
|
|
color.rgb = mix(color.rgb, SRGBToLinear(color.rgb) * cc_exposure.w, vec3(cc_exposure.z));
|
|
#endif
|
|
return color;
|
|
}
|