未验证 提交 ee7b03e7 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #16352 from Mugen87/dev29

ShadowMapViewer: Fix usage of UniformsUtils.
......@@ -49,7 +49,7 @@ THREE.ShadowMapViewer = function ( light ) {
//HUD for shadow map
var shader = THREE.UnpackDepthRGBAShader;
var uniforms = new THREE.UniformsUtils.clone( shader.uniforms );
var uniforms = THREE.UniformsUtils.clone( shader.uniforms );
var material = new THREE.ShaderMaterial( {
uniforms: uniforms,
vertexShader: shader.vertexShader,
......@@ -95,7 +95,7 @@ THREE.ShadowMapViewer = function ( light ) {
}
function resetPosition () {
function resetPosition() {
scope.position.set( scope.position.x, scope.position.y );
......@@ -173,6 +173,7 @@ THREE.ShadowMapViewer = function ( light ) {
camera.updateProjectionMatrix();
this.update();
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册