We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1485992 commit 6c8ff24Copy full SHA for 6c8ff24
examples/jsm/nodes/materials/NodeMaterial.js
@@ -1,4 +1,4 @@
1
-import { Material } from 'three';
+import { Material, NormalBlending } from 'three';
2
import { getNodeChildren, getCacheKey } from '../core/NodeUtils.js';
3
import { attribute } from '../core/AttributeNode.js';
4
import { output, diffuseColor, varyingProperty } from '../core/PropertyNode.js';
@@ -294,6 +294,12 @@ class NodeMaterial extends Material {
294
295
}
296
297
+ if ( this.transparent === false && this.blending === NormalBlending && this.alphaToCoverage === false ) {
298
+
299
+ diffuseColor.a.assign( 1.0 );
300
301
+ }
302
303
304
305
setupVariants( /*builder*/ ) {
0 commit comments