|
@@ -16286,7 +16286,7 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
*/
|
|
|
|
|
|
-function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
|
|
|
+function WebGLBackground( renderer, state, geometries, premultipliedAlpha ) {
|
|
|
|
|
|
var clearColor = new Color( 0x000000 );
|
|
|
var clearAlpha = 0;
|
|
@@ -16344,7 +16344,7 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
|
|
|
boxMesh.material.uniforms[ "tCube" ].value = background;
|
|
|
boxMesh.modelViewMatrix.multiplyMatrices( boxCamera.matrixWorldInverse, boxMesh.matrixWorld );
|
|
|
|
|
|
- objects.update( boxMesh );
|
|
|
+ geometries.update( boxMesh.geometry );
|
|
|
|
|
|
renderer.renderBufferDirect( boxCamera, null, boxMesh.geometry, boxMesh.material, boxMesh, null );
|
|
|
|
|
@@ -16363,7 +16363,7 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
|
|
|
|
|
|
planeMesh.material.map = background;
|
|
|
|
|
|
- objects.update( planeMesh );
|
|
|
+ geometries.update( planeMesh.geometry );
|
|
|
|
|
|
renderer.renderBufferDirect( planeCamera, null, planeMesh.geometry, planeMesh.material, planeMesh, null );
|
|
|
|
|
@@ -17234,7 +17234,7 @@ function WebGLLights() {
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
*/
|
|
|
|
|
|
-function WebGLObjects( gl, geometries, infoRender ) {
|
|
|
+function WebGLObjects( geometries, infoRender ) {
|
|
|
|
|
|
var updateList = {};
|
|
|
|
|
@@ -20879,12 +20879,12 @@ function WebGLRenderer( parameters ) {
|
|
|
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, paramThreeToGL, _infoMemory );
|
|
|
attributes = new WebGLAttributes( _gl );
|
|
|
geometries = new WebGLGeometries( _gl, attributes, _infoMemory );
|
|
|
- objects = new WebGLObjects( _gl, geometries, _infoRender );
|
|
|
+ objects = new WebGLObjects( geometries, _infoRender );
|
|
|
programCache = new WebGLPrograms( _this, extensions, capabilities );
|
|
|
lights = new WebGLLights();
|
|
|
renderLists = new WebGLRenderLists();
|
|
|
|
|
|
- background = new WebGLBackground( _this, state, objects, _premultipliedAlpha );
|
|
|
+ background = new WebGLBackground( _this, state, geometries, _premultipliedAlpha );
|
|
|
|
|
|
bufferRenderer = new WebGLBufferRenderer( _gl, extensions, _infoRender );
|
|
|
indexedBufferRenderer = new WebGLIndexedBufferRenderer( _gl, extensions, _infoRender );
|
|
@@ -21236,7 +21236,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
state.enableAttribute( programAttributes.uv );
|
|
|
|
|
|
- _gl.vertexAttribPointer( attributes.uv, 2, _gl.FLOAT, false, 0, 0 );
|
|
|
+ _gl.vertexAttribPointer( programAttributes.uv, 2, _gl.FLOAT, false, 0, 0 );
|
|
|
|
|
|
}
|
|
|
|