Skip to content

Reverse-Z state problem #29578

@eXponenta

Description

@eXponenta

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:

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions