未验证 提交 00f4dca8 编写于 作者: P Pascal Häusler 提交者: GitHub

SAOPass: cleanup

Since we don't use MRT there is no need for using the WEBGL_draw_buffers extension.
check https://github.com/mrdoob/three.js/issues/13370
上级 21e0dfa0
......@@ -76,7 +76,6 @@ THREE.SAOPass = function ( scene, camera, depthTexture, useNormals, resolution )
this.saoMaterial = new THREE.ShaderMaterial( THREE.SAOShader );
this.saoMaterial.extensions.derivatives = true;
this.saoMaterial.extensions.drawBuffers = true;
this.saoMaterial.defines[ 'DEPTH_PACKING' ] = this.supportsDepthTextureExtension ? 0 : 1;
this.saoMaterial.defines[ 'NORMAL_TEXTURE' ] = this.supportsNormalTexture ? 1 : 0;
this.saoMaterial.defines[ 'PERSPECTIVE_CAMERA' ] = this.camera.isPerspectiveCamera ? 1 : 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册