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

Updated builds.

上级 26fcb86f
......@@ -19840,18 +19840,18 @@
hash: '',
ambient: [ 0, 0, 0 ],
directional: [],
directionalShadowMap: [],
directionalShadowMatrix: [],
spot: [],
spotShadowMap: [],
spotShadowMatrix: [],
rectArea: [],
point: [],
pointShadowMap: [],
pointShadowMatrix: [],
hemi: [],
ambient: [ 0, 0, 0 ],
directional: [],
directionalShadowMap: [],
directionalShadowMatrix: [],
spot: [],
spotShadowMap: [],
spotShadowMatrix: [],
rectArea: [],
point: [],
pointShadowMap: [],
pointShadowMatrix: [],
hemi: [],
shadows: []
......@@ -20186,12 +20186,12 @@
this.resetGLState = resetGLState;
this.dispose = function() {
this.dispose = function () {
transparentObjects = [];
transparentObjectsLastIndex = -1;
transparentObjectsLastIndex = - 1;
opaqueObjects = [];
opaqueObjectsLastIndex = -1;
opaqueObjectsLastIndex = - 1;
_canvas.removeEventListener( 'webglcontextlost', onContextLost, false );
......@@ -20247,6 +20247,16 @@
// Buffer rendering
function renderObjectImmediate( object, program, material ) {
object.render( function ( object ) {
_this.renderBufferImmediate( object, program, material );
} );
}
this.renderBufferImmediate = function ( object, program, material ) {
state.initAttributes();
......@@ -21157,11 +21167,7 @@
_currentGeometryProgram = '';
object.render( function ( object ) {
_this.renderBufferImmediate( object, program, material );
} );
renderObjectImmediate( object, program, material );
} else {
......@@ -21978,11 +21984,11 @@
viewMatrix = camera.matrixWorldInverse,
directionalLength = 0,
pointLength = 0,
spotLength = 0,
rectAreaLength = 0,
hemiLength = 0;
directionalLength = 0,
pointLength = 0,
spotLength = 0,
rectAreaLength = 0,
hemiLength = 0;
for ( l = 0, ll = lights.length; l < ll; l ++ ) {
......@@ -22187,7 +22193,7 @@
this.allocTextureUnit = allocTextureUnit;
// this.setTexture2D = setTexture2D;
this.setTexture2D = ( function() {
this.setTexture2D = ( function () {
var warned = false;
......@@ -22213,7 +22219,7 @@
}() );
this.setTexture = ( function() {
this.setTexture = ( function () {
var warned = false;
......@@ -22232,7 +22238,7 @@
}() );
this.setTextureCube = ( function() {
this.setTextureCube = ( function () {
var warned = false;
......@@ -22274,7 +22280,7 @@
}() );
this.getCurrentRenderTarget = function() {
this.getCurrentRenderTarget = function () {
return _currentRenderTarget;
......
此差异已折叠。
......@@ -19834,18 +19834,18 @@ function WebGLRenderer( parameters ) {
hash: '',
ambient: [ 0, 0, 0 ],
directional: [],
directionalShadowMap: [],
directionalShadowMatrix: [],
spot: [],
spotShadowMap: [],
spotShadowMatrix: [],
rectArea: [],
point: [],
pointShadowMap: [],
pointShadowMatrix: [],
hemi: [],
ambient: [ 0, 0, 0 ],
directional: [],
directionalShadowMap: [],
directionalShadowMatrix: [],
spot: [],
spotShadowMap: [],
spotShadowMatrix: [],
rectArea: [],
point: [],
pointShadowMap: [],
pointShadowMatrix: [],
hemi: [],
shadows: []
......@@ -20180,12 +20180,12 @@ function WebGLRenderer( parameters ) {
this.resetGLState = resetGLState;
this.dispose = function() {
this.dispose = function () {
transparentObjects = [];
transparentObjectsLastIndex = -1;
transparentObjectsLastIndex = - 1;
opaqueObjects = [];
opaqueObjectsLastIndex = -1;
opaqueObjectsLastIndex = - 1;
_canvas.removeEventListener( 'webglcontextlost', onContextLost, false );
......@@ -20241,6 +20241,16 @@ function WebGLRenderer( parameters ) {
// Buffer rendering
function renderObjectImmediate( object, program, material ) {
object.render( function ( object ) {
_this.renderBufferImmediate( object, program, material );
} );
}
this.renderBufferImmediate = function ( object, program, material ) {
state.initAttributes();
......@@ -21151,11 +21161,7 @@ function WebGLRenderer( parameters ) {
_currentGeometryProgram = '';
object.render( function ( object ) {
_this.renderBufferImmediate( object, program, material );
} );
renderObjectImmediate( object, program, material );
} else {
......@@ -21972,11 +21978,11 @@ function WebGLRenderer( parameters ) {
viewMatrix = camera.matrixWorldInverse,
directionalLength = 0,
pointLength = 0,
spotLength = 0,
rectAreaLength = 0,
hemiLength = 0;
directionalLength = 0,
pointLength = 0,
spotLength = 0,
rectAreaLength = 0,
hemiLength = 0;
for ( l = 0, ll = lights.length; l < ll; l ++ ) {
......@@ -22181,7 +22187,7 @@ function WebGLRenderer( parameters ) {
this.allocTextureUnit = allocTextureUnit;
// this.setTexture2D = setTexture2D;
this.setTexture2D = ( function() {
this.setTexture2D = ( function () {
var warned = false;
......@@ -22207,7 +22213,7 @@ function WebGLRenderer( parameters ) {
}() );
this.setTexture = ( function() {
this.setTexture = ( function () {
var warned = false;
......@@ -22226,7 +22232,7 @@ function WebGLRenderer( parameters ) {
}() );
this.setTextureCube = ( function() {
this.setTextureCube = ( function () {
var warned = false;
......@@ -22268,7 +22274,7 @@ function WebGLRenderer( parameters ) {
}() );
this.getCurrentRenderTarget = function() {
this.getCurrentRenderTarget = function () {
return _currentRenderTarget;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册