mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-11-10 14:25:22 +00:00
补充某些必要的文件
This commit is contained in:
9
engine/cocos2d/renderer/build/chunks/output.inc
Normal file
9
engine/cocos2d/renderer/build/chunks/output.inc
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright (c) 2017-2019 Xiamen Yaji Software Co., Ltd.
|
||||
#include <gamma>
|
||||
|
||||
vec4 CCFragOutput (vec4 color) {
|
||||
#if OUTPUT_TO_GAMMA
|
||||
color.rgb = LinearToSRGB(color.rgb);
|
||||
#endif
|
||||
return color;
|
||||
}
|
||||
Reference in New Issue
Block a user