Browse Source

PointsMaterial: node opacity

sunag 4 years ago
parent
commit
338842f652
1 changed files with 4 additions and 0 deletions
  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: {