-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Description
Description
Reverse Z PR not fully correctly implement reverse-Z.
Problem in state:
| ext.clipControlEXT( ext.LOWER_LEFT_EXT, ext.ZERO_TO_ONE_EXT ); |
This flag applied in capabilities that persistent after initialisation, that is wrong due to context sharing.
ThreeJS state can be flushed for some specific cases like a 1 contex for N-renderers or libs.
For ex: Three + PIXI, Three + WebXR emulator, Three+potree.
WebGLState has reset for that:
three.js/src/renderers/webgl/WebGLState.js
Line 1152 in 0c7cf78
| function reset() { |
Because clipControl is context-related three also should reset this state and change it when needed back
@CodyJasonBennett can you apply some changes and move call of clipControl into WebGLLState instead of WebGLCapabilities?
@Mugen87 what you think about that?
Reproduction steps
Code
Live example
Screenshots
No response
Version
r169
Device
No response
Browser
No response
OS
No response