未验证 提交 07e456b1 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18390 from WestLangley/dev_color_space_node

ColorSpaceNode: workaround for shader compile error
......@@ -128,7 +128,7 @@ ColorSpaceNode.Nodes = ( function () {
" float maxRGB = max( value.x, max( value.g, value.b ) );",
" float D = max( maxRange / maxRGB, 1.0 );",
" D = min( floor( D ) / 255.0, 1.0 );",
" D = clamp( floor( D ) / 255.0, 0.0, 1.0 );",
" return vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );",
"}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册