-
-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Labels
Description
I think we can do this!?
- Add
Raytracerobject. You can addMeshorModelobjects to it, or raw triangles/boxes. You can add things with a custom transform, and maybe add multiple copies of them cheaply (instancing). - You can send the raytracer to shaders with
Pass:send, just like a Texture or Buffer. - In the shader, you can use ray queries to shoot a ray somewhere and figure out if it hit something.
Note that we would NOT be adding support for ray tracing pipelines, where you render the whole screen with raytracing and fancy materials. We would only be supporting ray queries to start. But these are still useful for implementing shadows, ambient occlusion, etc. If ray queries make it easier to do shadows compared to shadow mapping, that would be awesome.
I don't know very much about raytracing yet, so I'm still learning and figuring stuff out!