Skip to content

Raytracing #877

@bjornbytes

Description

@bjornbytes

I think we can do this!?

  • Add Raytracer object. You can add Mesh or Model objects 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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions