Post
The whole code basically just takes the world position and multiplies it with the view matrix to get the view position, calculates the cascade index, and, if the cascade index is 0, it's red, if it's 1, it's green and if it's 2, it's blue. The unroll version is the correct one.
0 reposts0 likes