Skip to content

Commit bf15bc6

Browse files
Update three.js to r138.3
1 parent b58689e commit bf15bc6

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

vendors/three.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,6 +2312,8 @@
23122312

23132313
this.userData = JSON.parse( JSON.stringify( source.userData ) );
23142314

2315+
this.needsUpdate = true;
2316+
23152317
return this;
23162318

23172319
}
@@ -3345,6 +3347,7 @@
33453347
for ( let i = 0; i < count; i ++ ) {
33463348

33473349
this.texture[ i ] = texture.clone();
3350+
this.texture[ i ].isRenderTargetTexture = true;
33483351

33493352
}
33503353

@@ -22607,7 +22610,7 @@
2260722610

2260822611
if ( texture.isVideoTexture ) updateVideoTexture( texture );
2260922612

22610-
if ( texture.version > 0 && textureProperties.__version !== texture.version ) {
22613+
if ( texture.isRenderTargetTexture === false && texture.version > 0 && textureProperties.__version !== texture.version ) {
2261122614

2261222615
const image = texture.image;
2261322616

@@ -23875,7 +23878,7 @@
2387523878
}
2387623879

2387723880
const renderTargetProperties = properties.get( renderTarget );
23878-
const ignoreDepthValues = ( renderTargetProperties.__ignoreDepthValues !== undefined ) ? renderTargetProperties.__ignoreDepthValues : true;
23881+
const ignoreDepthValues = ( renderTargetProperties.__ignoreDepthValues !== undefined ) ? renderTargetProperties.__ignoreDepthValues : false;
2387923882

2388023883
if ( ignoreDepthValues === false ) {
2388123884

@@ -27788,13 +27791,6 @@
2778827791
uniforms.rectAreaLights.needsUpdate = value;
2778927792
uniforms.hemisphereLights.needsUpdate = value;
2779027793

27791-
uniforms.directionalShadowMap.needsUpdate = value;
27792-
uniforms.directionalShadowMatrix.needsUpdate = value;
27793-
uniforms.spotShadowMap.needsUpdate = value;
27794-
uniforms.spotShadowMatrix.needsUpdate = value;
27795-
uniforms.pointShadowMap.needsUpdate = value;
27796-
uniforms.pointShadowMatrix.needsUpdate = value;
27797-
2779827794
}
2779927795

2780027796
function materialNeedsLights( material ) {
@@ -27842,8 +27838,7 @@
2784227838
if ( extensions.has( 'WEBGL_multisampled_render_to_texture' ) === true ) {
2784327839

2784427840
console.warn( 'THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided' );
27845-
renderTarget.useRenderToTexture = false;
27846-
renderTarget.useRenderbuffer = true;
27841+
renderTargetProperties.__useRenderToTexture = false;
2784727842

2784827843
}
2784927844

0 commit comments

Comments
 (0)