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

Updated builds.

上级 f1ae2648
......@@ -16333,11 +16333,8 @@
if ( boxMesh === undefined ) {
// Normalized box
// 1.1547 = (1,1,1).normalize() * 2.0
boxMesh = new Mesh(
new BoxBufferGeometry( 1.1547, 1.1547, 1.1547 ),
new BoxBufferGeometry( 1, 1, 1 ),
new ShaderMaterial( {
uniforms: ShaderLib.cube.uniforms,
vertexShader: ShaderLib.cube.vertexShader,
......@@ -16345,6 +16342,7 @@
side: BackSide,
depthTest: true,
depthWrite: false,
polygonOffset: true,
fog: false
} )
);
......@@ -16359,6 +16357,8 @@
this.matrixWorld.makeScale( scale, scale, scale );
this.matrixWorld.copyPosition( camera.matrixWorld );
this.material.polygonOffsetUnits = scale * 10;
};
geometries.update( boxMesh.geometry );
......@@ -21868,6 +21868,8 @@
state.buffers.depth.setMask( true );
state.buffers.color.setMask( true );
state.setPolygonOffset( false );
if ( vr.enabled ) {
vr.submitFrame();
此差异已折叠。
......@@ -16327,11 +16327,8 @@ function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
if ( boxMesh === undefined ) {
// Normalized box
// 1.1547 = (1,1,1).normalize() * 2.0
boxMesh = new Mesh(
new BoxBufferGeometry( 1.1547, 1.1547, 1.1547 ),
new BoxBufferGeometry( 1, 1, 1 ),
new ShaderMaterial( {
uniforms: ShaderLib.cube.uniforms,
vertexShader: ShaderLib.cube.vertexShader,
......@@ -16339,6 +16336,7 @@ function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
side: BackSide,
depthTest: true,
depthWrite: false,
polygonOffset: true,
fog: false
} )
);
......@@ -16353,6 +16351,8 @@ function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
this.matrixWorld.makeScale( scale, scale, scale );
this.matrixWorld.copyPosition( camera.matrixWorld );
this.material.polygonOffsetUnits = scale * 10;
};
geometries.update( boxMesh.geometry );
......@@ -21862,6 +21862,8 @@ function WebGLRenderer( parameters ) {
state.buffers.depth.setMask( true );
state.buffers.color.setMask( true );
state.setPolygonOffset( false );
if ( vr.enabled ) {
vr.submitFrame();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册