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

Updated builds.

上级 d32676ba
......@@ -17710,7 +17710,6 @@ THREE.WebGLRenderer = function ( parameters ) {
// shadow map
this.shadowMapEnabled = false;
this.shadowMapAutoUpdate = true;
this.shadowMapType = THREE.PCFShadowMap;
this.shadowMapCullFace = THREE.CullFaceFront;
this.shadowMapDebug = false;
......@@ -18203,26 +18202,6 @@ THREE.WebGLRenderer = function ( parameters ) {
};
// Rendering
this.updateShadowMap = function ( scene, camera ) {
_currentProgram = null;
_oldBlending = - 1;
_oldDepthTest = - 1;
_oldDepthWrite = - 1;
_currentGeometryGroupHash = - 1;
_currentMaterialId = - 1;
_lightsNeedUpdate = true;
_oldDoubleSided = - 1;
_oldFlipSided = - 1;
shadowMapPlugin.update( scene, camera );
};
// Internal functions
// Buffer allocation
function createParticleBuffers ( geometry ) {
......@@ -21129,12 +21108,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( object.visible === false ) return;
if ( object instanceof THREE.Light ) {
lights.push( object );
}
if ( object instanceof THREE.Scene || object instanceof THREE.Group ) {
// skip
......@@ -21143,7 +21116,11 @@ THREE.WebGLRenderer = function ( parameters ) {
initObject( object, scene );
if ( object instanceof THREE.Sprite ) {
if ( object instanceof THREE.Light ) {
lights.push( object );
} else if ( object instanceof THREE.Sprite ) {
sprites.push( object );
......@@ -24106,6 +24083,12 @@ THREE.WebGLRenderer = function ( parameters ) {
};
this.updateShadowMap = function () {
console.warn( 'THREE.WebGLRenderer: .updateShadowMap() has been removed.' );
};
};
// File:src/renderers/WebGLRenderTarget.js
......@@ -25244,13 +25227,7 @@ THREE.ShadowMapPlugin = function ( _renderer, _lights, _webglObjects, _webglObje
this.render = function ( scene, camera ) {
if ( _renderer.shadowMapEnabled === false || _renderer.shadowMapAutoUpdate === false ) return;
this.update( scene, camera );
};
this.update = function ( scene, camera ) {
if ( _renderer.shadowMapEnabled === false ) return;
var i, il, j, jl, n,
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册