Delt06 / toon-rp

🌔 A Scriptable Render Pipeline (SRP) designed for toon/stylized visuals. Features custom lighting pipeline, multiple shadow algorithms, tiled lighting, Shader Graph support, and more.
MIT License
492 stars 26 forks source link

Skybox Shadow Workflow #221

Closed kjellherzke closed 7 months ago

kjellherzke commented 7 months ago

How can you do a skybox material / shader graph with toon-rp as srp?

Delt06 commented 7 months ago

Skybox shaders are typically compatible between render pipelines except they use some specific pipeline features. Thus, most skybox shaders should work correctly with Toon RP out of the box. You can use either a code-based shader or Toon RP unlit shader graph.

kjellherzke commented 7 months ago

Sounds good, but when creating a toon rp unlit shader you won't be able to set it as lightning environment (skybox) material. Could you elaborate on how to get support for the shader material as skybox material?

Delt06 commented 7 months ago

You can, not via dragging and dropping it to the sky, but in the lighting settings. Afaik, that is the case for shader graph-based skyboxes in URP too.

kjellherzke commented 7 months ago

Okay, I am sorry for misunderstanding you. I got it working, I had initially a wrong skybox shader that's why it did not work, but now I just changed some paramters like for the built-in render pipeline and it works. Thanks!

Delt06 commented 7 months ago

Just in case, here's a sample code-based shader: https://gist.github.com/Delt06/50c2f298e02a6afdfb696bc0bb12f532