提交 35f4ee0a 编写于 作者: M Mugen87

WebGLBackground: Ensure correct "renderer.info" stats

上级 efee9d0f
......@@ -265,7 +265,7 @@ function WebGLRenderer( parameters ) {
renderLists = new WebGLRenderLists();
renderStates = new WebGLRenderStates();
background = new WebGLBackground( _this, state, geometries, _premultipliedAlpha );
background = new WebGLBackground( _this, state, objects, _premultipliedAlpha );
bufferRenderer = new WebGLBufferRenderer( _gl, extensions, info );
indexedBufferRenderer = new WebGLIndexedBufferRenderer( _gl, extensions, info );
......
......@@ -12,7 +12,7 @@ import { Color } from '../../math/Color.js';
import { Mesh } from '../../objects/Mesh.js';
import { ShaderLib } from '../shaders/ShaderLib.js';
function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
var clearColor = new Color( 0x000000 );
var clearAlpha = 0;
......@@ -67,7 +67,7 @@ function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
};
geometries.update( boxMesh.geometry );
objects.update( boxMesh );
}
......@@ -86,7 +86,7 @@ function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
new MeshBasicMaterial( { depthTest: false, depthWrite: false, fog: false } )
);
geometries.update( planeMesh.geometry );
objects.update( planeMesh );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册