Skip to content

Is gl_PrimitiveID not supported? #2

@meta-plane

Description

@meta-plane

Hello,
I appreciate your grate job!
I'm developing a path tracer based on your framework. However, I am unable to read the normal at the ray-hit point because the general technique for reading the interpolated normal requires access to gl_PrimitiveID. Unfortunately, it throws an error message if I include the keyword gl_PrimitiveID in the closest hit shader code.

The erroe message: '_crt_user_rchit_0' : no matching overloaded function found
The erroe message: missing #endif

Is gl_PrimitiveID not supported yet, or is this a bug? Do you have any suggestions for reading normals and texture coordinates at the hit point?

Thank you in advance.

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