|
@@ -10,7 +10,6 @@ import { MathUtils } from '../math/MathUtils.js';
|
|
|
import { DataTexture } from '../textures/DataTexture.js';
|
|
|
import { Frustum } from '../math/Frustum.js';
|
|
|
import { Matrix4 } from '../math/Matrix4.js';
|
|
|
-import { UniformsLib } from './shaders/UniformsLib.js';
|
|
|
import { Vector2 } from '../math/Vector2.js';
|
|
|
import { Vector3 } from '../math/Vector3.js';
|
|
|
import { Vector4 } from '../math/Vector4.js';
|
|
@@ -1421,6 +1420,8 @@ function WebGLRenderer( parameters ) {
|
|
|
uniforms.spotLights.value = lights.state.spot;
|
|
|
uniforms.spotLightShadows.value = lights.state.spotShadow;
|
|
|
uniforms.rectAreaLights.value = lights.state.rectArea;
|
|
|
+ uniforms.ltc_1.value = lights.state.rectAreaLTC1;
|
|
|
+ uniforms.ltc_2.value = lights.state.rectAreaLTC2;
|
|
|
uniforms.pointLights.value = lights.state.point;
|
|
|
uniforms.pointLightShadows.value = lights.state.pointShadow;
|
|
|
uniforms.hemisphereLights.value = lights.state.hemi;
|
|
@@ -1435,9 +1436,8 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- const progUniforms = materialProperties.program.getUniforms(),
|
|
|
- uniformsList =
|
|
|
- WebGLUniforms.seqWithValue( progUniforms.seq, uniforms );
|
|
|
+ const progUniforms = materialProperties.program.getUniforms();
|
|
|
+ const uniformsList = WebGLUniforms.seqWithValue( progUniforms.seq, uniforms );
|
|
|
|
|
|
materialProperties.uniformsList = uniformsList;
|
|
|
|
|
@@ -1702,12 +1702,6 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
materials.refreshMaterialUniforms( m_uniforms, material, _pixelRatio, _height );
|
|
|
|
|
|
- // RectAreaLight Texture
|
|
|
- // TODO (mrdoob): Find a nicer implementation
|
|
|
-
|
|
|
- if ( m_uniforms.ltc_1 !== undefined ) m_uniforms.ltc_1.value = UniformsLib.LTC_1;
|
|
|
- if ( m_uniforms.ltc_2 !== undefined ) m_uniforms.ltc_2.value = UniformsLib.LTC_2;
|
|
|
-
|
|
|
WebGLUniforms.upload( _gl, materialProperties.uniformsList, m_uniforms, textures );
|
|
|
|
|
|
}
|