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

WebGLRenderer: Public initWebGLObjects to private initObjects.

上级 a2b39799
......@@ -162,8 +162,6 @@
function handle_update( result, pieces ) {
//renderer.initWebGLObjects( result.scene );
var m, material, count = 0;
for ( m in result.materials ) {
......
......@@ -512,8 +512,6 @@
morphs.push( meshAnim );
renderer.initWebGLObjects( scene );
}
function morphColorsToFaceColors( geometry ) {
......@@ -560,10 +558,6 @@
} );
// PRE-INIT
renderer.initWebGLObjects( scene );
}
//
......
......@@ -435,7 +435,7 @@ THREE.WebGLRenderer = function ( parameters ) {
_oldDoubleSided = - 1;
_oldFlipSided = - 1;
this.initWebGLObjects( scene );
initObjects( scene );
this.shadowMapPlugin.update( scene, camera );
......@@ -3269,7 +3269,7 @@ THREE.WebGLRenderer = function ( parameters ) {
_projScreenMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse );
_frustum.setFromMatrix( _projScreenMatrix );
this.initWebGLObjects( scene );
initObjects( scene );
opaqueObjects.length = 0;
transparentObjects.length = 0;
......@@ -3642,7 +3642,7 @@ THREE.WebGLRenderer = function ( parameters ) {
// Objects refresh
this.initWebGLObjects = function ( scene ) {
var initObjects = function ( scene ) {
if ( ! scene.__webglObjects ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册