Reset lastReflectionUpdateTime when resizing reflection render targets
This commit is contained in:
@@ -3038,6 +3038,7 @@ export class ViewportHost {
|
|||||||
|
|
||||||
for (const binding of this.viewportWaterSurfaceBindings) {
|
for (const binding of this.viewportWaterSurfaceBindings) {
|
||||||
binding.reflectionRenderTarget?.setSize(width, height);
|
binding.reflectionRenderTarget?.setSize(width, height);
|
||||||
|
binding.lastReflectionUpdateTime = Number.NEGATIVE_INFINITY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user