Explorar el Código

Set .depthWrite to false for transparent materials

WestLangley hace 5 años
padre
commit
501029b462
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      examples/webgl_materials_physical_transparency.html

+ 2 - 1
examples/webgl_materials_physical_transparency.html

@@ -95,7 +95,8 @@
 					alphaTest: 0.5,
 					envMap: hdrCubeRenderTarget.texture,
 					envMapIntensity: params.envMapIntensity,
-					depthTest: false,
+					depthWrite: false,
+					opacity: 1, // set to 1 when transparency is non-zero
 					transparency: params.transparency,
 					transparent: true
 				} );