@@ -38,7 +38,6 @@ THREE.ShaderSkin = {
3838
3939 "diffuse" : { type : "c" , value : new THREE . Color ( 0xeeeeee ) } ,
4040 "specular" : { type : "c" , value : new THREE . Color ( 0x111111 ) } ,
41- "ambient" : { type : "c" , value : new THREE . Color ( 0x050505 ) } ,
4241 "opacity" : { type : "f" , value : 1 } ,
4342
4443 "uRoughness" : { type : "f" , value : 0.15 } ,
@@ -65,7 +64,6 @@ THREE.ShaderSkin = {
6564 "uniform bool enableBump;" ,
6665 "uniform bool enableSpecular;" ,
6766
68- "uniform vec3 ambient;" ,
6967 "uniform vec3 diffuse;" ,
7068 "uniform vec3 specular;" ,
7169 "uniform float opacity;" ,
@@ -295,7 +293,7 @@ THREE.ShaderSkin = {
295293 "totalLight += hemiTotal;" ,
296294 "#endif" ,
297295
298- "gl_FragColor.xyz = gl_FragColor.xyz * ( totalLight + ambientLightColor * ambient ) + specularTotal;" ,
296+ "gl_FragColor.xyz = gl_FragColor.xyz * ( totalLight + ambientLightColor * diffuse ) + specularTotal;" ,
299297
300298 THREE . ShaderChunk [ "shadowmap_fragment" ] ,
301299 THREE . ShaderChunk [ "linear_to_gamma_fragment" ] ,
@@ -377,7 +375,6 @@ THREE.ShaderSkin = {
377375
378376 "diffuse" : { type : "c" , value : new THREE . Color ( 0xeeeeee ) } ,
379377 "specular" : { type : "c" , value : new THREE . Color ( 0x111111 ) } ,
380- "ambient" : { type : "c" , value : new THREE . Color ( 0x050505 ) } ,
381378 "opacity" : { type : "f" , value : 1 } ,
382379
383380 "uRoughness" : { type : "f" , value : 0.15 } ,
@@ -389,7 +386,6 @@ THREE.ShaderSkin = {
389386
390387 fragmentShader : [
391388
392- "uniform vec3 ambient;" ,
393389 "uniform vec3 diffuse;" ,
394390 "uniform vec3 specular;" ,
395391 "uniform float opacity;" ,
@@ -595,7 +591,7 @@ THREE.ShaderSkin = {
595591
596592 "gl_FragColor.xyz *= pow( colDiffuse.xyz, vec3( 0.5 ) );" ,
597593
598- "gl_FragColor.xyz += ambientLightColor * ambient * colDiffuse.xyz + specularTotal;" ,
594+ "gl_FragColor.xyz += ambientLightColor * diffuse * colDiffuse.xyz + specularTotal;" ,
599595
600596 "#ifndef VERSION1" ,
601597
0 commit comments