Selaa lähdekoodia

PointsMaterial: node opacity

sunag 4 vuotta sitten
vanhempi
commit
338842f652
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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: {