提交 99f00ba3 编写于 作者: A alteredq

Removed enableLighting uniform from Lambert.

上级 9eb852db
此差异已折叠。
此差异已折叠。
......@@ -4827,7 +4827,6 @@ THREE.WebGLRenderer = function ( parameters ) {
function refreshUniformsLights ( uniforms, lights ) {
uniforms.enableLighting.value = lights.directional.length + lights.point.length;
uniforms.ambientLightColor.value = lights.ambient;
uniforms.directionalLightColor.value = lights.directional.colors;
......
......@@ -258,7 +258,6 @@ THREE.ShaderChunk = {
"uniform vec3 ambient;",
"uniform vec3 diffuse;",
"uniform bool enableLighting;",
"uniform vec3 ambientLightColor;",
"#if MAX_DIR_LIGHTS > 0",
......@@ -280,12 +279,6 @@ THREE.ShaderChunk = {
lights_lambert_vertex: [
"if ( !enableLighting ) {",
"vLightWeighting = vec3( 1.0 );",
"} else {",
"vLightWeighting = vec3( 0.0 );",
"#if MAX_DIR_LIGHTS > 0",
......@@ -324,8 +317,6 @@ THREE.ShaderChunk = {
"vLightWeighting = vLightWeighting * diffuse + ambient * ambientLightColor;",
"}"
].join("\n"),
// LIGHTS PHONG
......@@ -937,7 +928,6 @@ THREE.UniformsLib = {
lights: {
"enableLighting" : { type: "i", value: 1 },
"ambientLightColor" : { type: "fv", value: [] },
"directionalLightDirection" : { type: "fv", value: [] },
"directionalLightColor" : { type: "fv", value: [] },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册