Sfoglia il codice sorgente

LightningStrike: Make plasma sphere use physical transparency

yomboprime 6 anni fa
parent
commit
96c59d5db2
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 4
      examples/webgl_lightningstrike.html

+ 3 - 4
examples/webgl_lightningstrike.html

@@ -422,12 +422,11 @@
 
 
 				var sphereMaterial = new THREE.MeshPhysicalMaterial( {
 				var sphereMaterial = new THREE.MeshPhysicalMaterial( {
 					transparent: true,
 					transparent: true,
+					transparency: .96,
 					depthWrite: false,
 					depthWrite: false,
-					opacity: 0.15,
-					color: 0,
-					metalness: 1,
+					color: 'white',
+					metalness: 0,
 					roughness: 0,
 					roughness: 0,
-					reflectivity: 0,
 					envMap: textureCube
 					envMap: textureCube
 				} );
 				} );