- Home /
Question by
NarallandaKaratoga · Mar 03, 2018 at 09:59 AM ·
scripting problemshadergraphics
How can I render depth into a cube render texture and sample it in another shader?
I wnat to perform a ray marching for volumn rendering, and need a cube texture to perform shadow casting when calculating the lights of marching points. I can implement this by rendering 6 depth textures and manually sample one of them in the shader, but is there any way more convenient to have this done?
Comment
Your answer
Follow this Question
Related Questions
Scripts not updating the material's shader properties 1 Answer
Texture2D Array Appears Grainy 0 Answers
Shader not changing according to scene light in real time. 1 Answer
How to access another sprite's texture from a 2D shader 0 Answers
(Shader Graph) Output resolution/ setting resolution of the main preview window 0 Answers