提交 d7b5a892 编写于 作者: M Mr.doob

WebGLShadowMap: Make sure USE_SHADOWMAP is defined for distanceMaterial. Fixes #8166.

上级 ebea9c71
......@@ -64,6 +64,9 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
_depthMaterials[ i ] = depthMaterial;
var distanceMaterial = new THREE.ShaderMaterial( {
defines: {
'USE_SHADOWMAP': ''
},
uniforms: distanceUniforms,
vertexShader: distanceShader.vertexShader,
fragmentShader: distanceShader.fragmentShader,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册