Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

How to get the Cascaded Shadows' split spheres positions?

$
0
0
Hello! In order to compute the directional cascaded shadows in a shader (as in Internal-PrePassCollectShadows.shader or UnityCG.cginc) we need several informations easily findable through the QualitySettings class. Except that I cannot figue out how to get the split sphere positions or how to compute them. I need them to create an VFX in compute shader and declaring "float4 unity_ShadowSplitSpheres[4];" does not work. Thank you very much in advance! Cheerz!

Viewing all articles
Browse latest Browse all 287

Trending Articles