Search Unity

Question Ray tracing shaders ressources

Discussion in 'Shaders' started by Tamanoir, Jul 21, 2020.

  1. Tamanoir

    Tamanoir

    Joined:
    Aug 1, 2017
    Posts:
    27
    Hi everyone,

    I'm getting started with writing my own raytracing shaders and I don't find a lot of resources or doc that can help me.

    For the instance I only have this two things :
    The unity slides : https://on-demand.gputechconf.com/s...started-with-directx-ray-tracing-in-unity.pdf
    And the unity doc : https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@7.3/manual/index.html

    But I can't find any API doc or examples that could help me to write my own shaders.
    So please if anyone has some of these it would be a great help for me.
    Thank you :)
     
    Last edited: Jul 21, 2020
  2. Michal_

    Michal_

    Joined:
    Jan 14, 2015
    Posts:
    365
    I made a simple path tracer some time ago to learn ray tracing API/shaders in Unity.
    https://github.com/SlightlyMad/SimpleDxrPathTracer
    It should be relatively easy to understand. It is basically minimal ray tracing application that does something interesting. Feel free to ask if you have some questions.

    Friendly warning. I was working on RTAO for a production after this and I encountered a ton of problems. Internal shader compiler errors, things that simply don't work in Unity (but work in Falcor for example) and a lot of Unity crashes. Rtx in Unity is not production ready. Or at least it wasn't few months ago.
     
  3. Tamanoir

    Tamanoir

    Joined:
    Aug 1, 2017
    Posts:
    27
    Ho Good lord thank you very much!
    I'm using it for research purpose, so I just need it to be good enough to compare it with rendering techniques and other stuff I made for my PhD.

    I'm returning to you if there's anything I want to ask but this should be enough to me!
    And again thank you!