Unity-NorthStar / data /Packages /com.unity.render-pipelines.universal /Editor /VFXGraph /Shaders /VFXVertexProbeSampling.template
| ${VFXBegin:VFXVertexProbeDeclareVaryings} | |
| //Store a compacted version of the contributions in the six directions (3xfloat4) | |
| INDIRECT_INTERPOLATION float4 bakeDiffuseLighting[3] : BAKEDIFFUSE0; | |
| ${VFXEnd} | |
| ${VFXBegin:VFXVertexProbeVaryingsMacros} | |
| ${VFXEnd} | |
| ${VFXBegin:VFXVertexProbeFillVaryings} | |
| EvaluateProbesSixWay(o); | |
| ${VFXEnd} | |
| ${VFXBegin:VFXVertexProbeDeclareFunctions} | |
| void EvaluateProbesSixWay(inout VFX_VARYING_PS_INPUTS input) | |
| { | |
| float3 positionWS = GetAbsolutePositionWS(input.VFX_VARYING_POSWS); | |
| float3 normalWS = input.VFX_VARYING_NORMAL.xyz; | |
| float3 tangentWS = input.VFX_VARYING_TANGENT.xyz; | |
| GatherDiffuseGIData(positionWS, normalWS, tangentWS, input.VFX_VARYING_BAKE_DIFFUSE_LIGHTING[0], | |
| input.VFX_VARYING_BAKE_DIFFUSE_LIGHTING[1], | |
| input.VFX_VARYING_BAKE_DIFFUSE_LIGHTING[2]); | |
| } | |
| ${VFXEnd} | |