Parcourir la source

ShaderLib: More tidying.

Mr.doob il y a 10 ans
Parent
commit
33722d6432
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      src/renderers/shaders/ShaderLib.js

+ 1 - 3
src/renderers/shaders/ShaderLib.js

@@ -173,7 +173,6 @@ THREE.ShaderLib = {
 
 			"uniform vec3 diffuse;",
 			"uniform vec3 emissive;",
-
 			"uniform float opacity;",
 
 			"varying vec3 vLightFront;",
@@ -320,11 +319,10 @@ THREE.ShaderLib = {
 			"#define PHONG",
 
 			"uniform vec3 diffuse;",
-			"uniform float opacity;",
-
 			"uniform vec3 emissive;",
 			"uniform vec3 specular;",
 			"uniform float shininess;",
+			"uniform float opacity;",
 
 			THREE.ShaderChunk[ "common" ],
 			THREE.ShaderChunk[ "color_pars_fragment" ],