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

Merge pull request #13480 from WestLangley/dev-white_nearest

BasicDepthPacking: white nearest
......@@ -238,7 +238,7 @@ THREE.SAOPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ),
if ( ! this.supportsDepthTextureExtension ) {
// Clear rule : far clipping plane in both RGBA and Basic encoding
this.renderOverride( renderer, this.depthMaterial, this.depthRenderTarget, 0xffffff, 1.0 );
this.renderOverride( renderer, this.depthMaterial, this.depthRenderTarget, 0x000000, 1.0 );
}
......
......@@ -90,7 +90,7 @@
var devicePixelRatio = window.devicePixelRatio || 1;
renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setClearColor( 0xa0a0a0 );
renderer.setClearColor( 0x000000 );
renderer.setPixelRatio( devicePixelRatio );
renderer.setSize( width, height );
document.body.appendChild( renderer.domElement );
......
......@@ -32,7 +32,7 @@ void main() {
#if DEPTH_PACKING == 3200
gl_FragColor = vec4( vec3( gl_FragCoord.z ), opacity );
gl_FragColor = vec4( vec3( 1.0 - gl_FragCoord.z ), opacity );
#elif DEPTH_PACKING == 3201
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册