Skip to content

[12.0] Request to be able to enable GL_DEPTH_CLAMP #2185

@Froyok

Description

@Froyok

Hi,

In my Love project, when rendering my meshes to use them as shadow volumes I rely on GL_DEPTH_CLAMP being enabled to avoid clipping triangles against the near plane. Without that it creates holes and break my shadows:

plane_intersection_shadow.mp4

Right now I enable this functionality by emitting manually a GL_ENABLE call, but that's not possible with the Vulkan backend for example. So it would be nice to be able to do so via Love API instead.

For more details on GL_DEPTH_CLAMP: https://paroj.github.io/gltut/Positioning/Tut05%20Depth%20Clamping.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions