Skip to content

Commit

Permalink
Updated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jul 13, 2021
1 parent 6530183 commit 16b6fe0
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 28 deletions.
33 changes: 20 additions & 13 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -18154,26 +18154,33 @@
function renderObjects(renderList, scene, camera) {
const overrideMaterial = scene.isScene === true ? scene.overrideMaterial : null;

for (let i = 0, l = renderList.length; i < l; i++) {
const renderItem = renderList[i];
const object = renderItem.object;
const geometry = renderItem.geometry;
const material = overrideMaterial === null ? renderItem.material : overrideMaterial;
const group = renderItem.group;
if (camera.isArrayCamera) {
const cameras = camera.cameras;

if (camera.isArrayCamera) {
const cameras = camera.cameras;
for (let i = 0, l = cameras.length; i < l; i++) {
const camera2 = cameras[i];
state.viewport(_currentViewport.copy(camera2.viewport));
currentRenderState.setupLightsView(camera2);

for (let j = 0, jl = cameras.length; j < jl; j++) {
const camera2 = cameras[j];
for (let j = 0, jl = renderList.length; j < jl; j++) {
const renderItem = renderList[j];
const object = renderItem.object;
const geometry = renderItem.geometry;
const material = overrideMaterial === null ? renderItem.material : overrideMaterial;
const group = renderItem.group;

if (object.layers.test(camera2.layers)) {
state.viewport(_currentViewport.copy(camera2.viewport));
currentRenderState.setupLightsView(camera2);
renderObject(object, scene, camera2, geometry, material, group);
}
}
} else {
}
} else {
for (let j = 0, jl = renderList.length; j < jl; j++) {
const renderItem = renderList[j];
const object = renderItem.object;
const geometry = renderItem.geometry;
const material = overrideMaterial === null ? renderItem.material : overrideMaterial;
const group = renderItem.group;
renderObject(object, scene, camera, geometry, material, group);
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

39 changes: 25 additions & 14 deletions build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -24682,36 +24682,47 @@ function WebGLRenderer( parameters = {} ) {

const overrideMaterial = scene.isScene === true ? scene.overrideMaterial : null;

for ( let i = 0, l = renderList.length; i < l; i ++ ) {
if ( camera.isArrayCamera ) {

const renderItem = renderList[ i ];
const cameras = camera.cameras;

const object = renderItem.object;
const geometry = renderItem.geometry;
const material = overrideMaterial === null ? renderItem.material : overrideMaterial;
const group = renderItem.group;
for ( let i = 0, l = cameras.length; i < l; i ++ ) {

if ( camera.isArrayCamera ) {
const camera2 = cameras[ i ];

const cameras = camera.cameras;
state.viewport( _currentViewport.copy( camera2.viewport ) );

for ( let j = 0, jl = cameras.length; j < jl; j ++ ) {
currentRenderState.setupLightsView( camera2 );

const camera2 = cameras[ j ];
for ( let j = 0, jl = renderList.length; j < jl; j ++ ) {

if ( object.layers.test( camera2.layers ) ) {
const renderItem = renderList[ j ];

state.viewport( _currentViewport.copy( camera2.viewport ) );
const object = renderItem.object;
const geometry = renderItem.geometry;
const material = overrideMaterial === null ? renderItem.material : overrideMaterial;
const group = renderItem.group;

currentRenderState.setupLightsView( camera2 );
if ( object.layers.test( camera2.layers ) ) {

renderObject( object, scene, camera2, geometry, material, group );

}

}

} else {
}

} else {

for ( let j = 0, jl = renderList.length; j < jl; j ++ ) {

const renderItem = renderList[ j ];

const object = renderItem.object;
const geometry = renderItem.geometry;
const material = overrideMaterial === null ? renderItem.material : overrideMaterial;
const group = renderItem.group;

renderObject( object, scene, camera, geometry, material, group );

Expand Down

0 comments on commit 16b6fe0

Please sign in to comment.