提交 b051f596 编写于 作者: A Arthur Silber

Fix logarithmic depth buffer not being used in shader program

上级 c7ff082b
......@@ -217,7 +217,7 @@ THREE.WebGLProgram = ( function () {
parameters.sizeAttenuation ? '#define USE_SIZEATTENUATION' : '',
parameters.logarithmicDepthBuffer ? '#define USE_LOGDEPTHBUF' : '',
//renderer.glExtensionFragDepth ? '#define USE_LOGDEPTHBUF_EXT' : '',
renderer.extensions.get('EXT_frag_depth') ? '#define USE_LOGDEPTHBUF_EXT' : '',
'uniform mat4 modelMatrix;',
......@@ -323,7 +323,7 @@ THREE.WebGLProgram = ( function () {
parameters.shadowMapCascade ? '#define SHADOWMAP_CASCADE' : '',
parameters.logarithmicDepthBuffer ? '#define USE_LOGDEPTHBUF' : '',
//renderer.glExtensionFragDepth ? '#define USE_LOGDEPTHBUF_EXT' : '',
renderer.extensions.get('EXT_frag_depth') ? '#define USE_LOGDEPTHBUF_EXT' : '',
'uniform mat4 viewMatrix;',
'uniform vec3 cameraPosition;',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册