mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 02:02:41 +08:00
11 lines
224 B
Plaintext
11 lines
224 B
Plaintext
// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
|
|
#include <aces>
|
|
#include <gamma>
|
|
|
|
vec4 CCFragOutput (vec4 color) {
|
|
#if !CC_USE_HDR
|
|
color.rgb = LinearToSRGB(ACESToneMap(color.rgb));
|
|
#endif
|
|
return color;
|
|
}
|