Skip to content

Support layer: Force NoContraction on position #109

Open
@solidpixel

Description

@solidpixel

Variability in gl_Position calculations can break multi-pass rendering where the second pass needs DEPTH_EQUAL, as even minor changes due to floating point reassociation can change the value enough to fail the depth test.

For GLSL shaders can annotate variables with the precise or invariant qualifiers which turns into either NoContract or Invariant decorations in the SPIR-V. We should provide an option to force this for specific shader stages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions