提交 ab2a05ae 编写于 作者: W WestLangley

Custom blending mods

上级 b6308890
......@@ -95,7 +95,16 @@ THREE.EquiangularToCubeGenerator.prototype = {
vec3 color = texture2D(equirectangularMap, uv).rgb;\n\
\n\
gl_FragColor = vec4( color, 1.0 );\n\
}"
}",
blending: THREE.CustomBlending,
premultipliedAlpha: false,
blendSrc: THREE.OneFactor,
blendDst: THREE.ZeroFactor,
blendSrcAlpha: THREE.OneFactor,
blendDstAlpha: THREE.ZeroFactor,
blendEquation: THREE.AddEquation
} );
}
......
......@@ -260,6 +260,7 @@ THREE.PMREMGenerator.prototype = {
}",
blending: THREE.CustomBlending,
premultipliedAlpha: false,
blendSrc: THREE.OneFactor,
blendDst: THREE.ZeroFactor,
blendSrcAlpha: THREE.OneFactor,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册