ShadeSH9 is URP?

I have a custom SRP and am trying to find info on supporting light-probes.
Where in URP are light-probes handled in the shaders?

Old shaders seem to use the method “ShadeSH9” but whats the URP way I can model after for a SRP?

SampleSH9

3 Likes

For anyone else looking, I had to include Lighting.hlsl and use SampleSHVertex instead of ShadeSH9

#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"

and

SampleSHVertex(half3 normalWS)
3 Likes