- Home /
Question by
wechat_os_Qy00tzDZ4PUDCm8OdzDBV64IA · Jul 08, 2021 at 09:20 AM ·
renderingreflectionuniversal
About BoxProjection in URP and supporting SRPBatcher
I am trying to use BoxProjection on URP 10.4.0 and I understand that it is not officially supported on URP.
I've tried to do this by adding the following code
float4 unity_SpecCube0_ProbePosition;
float4 unity_SpecCube0_BoxMin;
float4 unity_SpecCube0_BoxMax;
BoxProjection rendering is successful;
The problem is, I don't know how to support it with the SRP Batcher.
If I place them outside of the CBuffer, it will report the error "Build property found in another CBuffer than "(unityPerDraw) (unity_speccube0_probePosition)"
If I put them in CBuffer unityPerDraw, in UnityInput.HSL, error is "create attribute offset in CBuffer, not phase"
Does anyone know how to solve this problem?Thank you so much!
Comment