Skip to content

Primitive gl drawing : do not write depth when using polygon offset #1267

@proberts-cinesite

Description

@proberts-cinesite

Summary

OpenGL's polygon offset is used to avoid z-fighting when drawing primitives in line and points mode. Using the polygon offset feature results in an implementation defined depth offset, writing this offset depth to the framebuffer depth attachment makes performing a manual depth test hard. So only write depth when we are not using polygon offset and only use polygon offset once depth has been written.

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