提交 55b19acd 编写于 作者: M Mr.doob

ShaderChunk: Document saturate ifdefs.

上级 4f942f91
......@@ -8,7 +8,7 @@ export default /* glsl */`
#define EPSILON 1e-6
#ifndef saturate
// tonemapping_pars_fragment may have defined saturate() already
// <tonemapping_pars_fragment> may have defined saturate() already
#define saturate(a) clamp( a, 0.0, 1.0 )
#endif
#define whiteComplement(a) ( 1.0 - saturate( a ) )
......
export default /* glsl */`
#ifndef saturate
#define saturate(a) clamp( a, 0.0, 1.0 )
// <common> may have defined saturate() already
#define saturate(a) clamp( a, 0.0, 1.0 )
#endif
uniform float toneMappingExposure;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册