未验证 提交 8c81b616 编写于 作者: W WestLangley 提交者: GitHub

Fixed alpha_to_coverage bug (#22135)

上级 a1b4086a
......@@ -218,7 +218,7 @@ ShaderLib[ 'line' ] = {
#endif
float alpha = opacity;
float alpha = 1.0;
#ifdef ALPHA_TO_COVERAGE
......@@ -248,12 +248,12 @@ ShaderLib[ 'line' ] = {
#endif
vec4 diffuseColor = vec4( diffuse, alpha );
vec4 diffuseColor = vec4( diffuse, opacity * alpha );
#include <logdepthbuf_fragment>
#include <color_fragment>
gl_FragColor = vec4( diffuseColor.rgb, alpha );
gl_FragColor = diffuseColor;
#include <tonemapping_fragment>
#include <encodings_fragment>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册