Explorar o código

PointsMaterial: node opacity

sunag %!s(int64=5) %!d(string=hai) anos
pai
achega
338842f652
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      examples/jsm/renderers/webgpu/WebGPURenderPipelines.js

+ 4 - 0
examples/jsm/renderers/webgpu/WebGPURenderPipelines.js

@@ -887,6 +887,10 @@ const ShaderLib = {
 				outColor.rgb = NODE_COLOR;
 			#endif
 
+			#ifdef NODE_OPACITY
+				outColor.a *= NODE_OPACITY;
+			#endif
+
 		}`
 	},
 	line_basic: {