Skip to content

Commit b779872

Browse files
committed
Probe Volumes: Fix PROBE_VOLUMES_SAMPLING_MODE defines in GetReflectionPRobeNormalizationFactor (#23)
Co-authored-by: pastasfuture <[email protected]>
1 parent 8f2e5fa commit b779872

File tree

1 file changed

+1
-1
lines changed
  • com.unity.render-pipelines.high-definition/Runtime/Lighting/ProbeVolume

1 file changed

+1
-1
lines changed

com.unity.render-pipelines.high-definition/Runtime/Lighting/ProbeVolume/ProbeVolume.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ float GetReflectionProbeNormalizationFactor(float3 sampleDirectionWS, float4 ref
338338
shALuminance.xyz *= directionality;
339339
outFactor = SHEvalLinearL0L1Luminance(sampleDirectionWS, shALuminance);
340340

341-
#else PROBE_VOLUMES_SAMPLING_MODE == PROBEVOLUMESENCODINGMODES_SPHERICAL_HARMONICS_L2
341+
#elif PROBE_VOLUMES_SAMPLING_MODE == PROBEVOLUMESENCODINGMODES_SPHERICAL_HARMONICS_L2
342342
// SHEvalLinearL0L1() expects coefficients in real4 shAr, real4 shAg, real4 shAb vectors whos channels are laid out {x, y, z, DC}
343343
float4 shALuminance = float4(reflProbeSHL0L1.w, reflProbeSHL0L1.y, reflProbeSHL0L1.z, reflProbeSHL0L1.x);
344344
float4 shBLuminance = reflProbeSHL2_1;

0 commit comments

Comments
 (0)