Skip to content

Commit 820745d

Browse files
Adrian1066Evergreen
authored andcommitted
Image update for HDRP VFX
To allow the console HDRP VFX tests to run a set of images are provided and a small fix applied
1 parent 6bd3cef commit 820745d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Packages/com.unity.render-pipelines.high-definition/Runtime/Material/Decal/DecalUtilities.hlsl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ void ApplyDecalToSurfaceNormal(DecalSurfaceData decalSurfaceData, inout float3 n
346346
void ApplyDecalToSurfaceNormal(DecalSurfaceData decalSurfaceData, float3 vtxNormal, inout float3 normalTS)
347347
{
348348
// Always test the normal as we can have decompression artifact
349+
float3 addValue = float3(0.0,0.0,0.0);
349350
if (decalSurfaceData.normalWS.w < 1.0)
350-
normalTS += SurfaceGradientFromVolumeGradient(vtxNormal, decalSurfaceData.normalWS.xyz);
351+
{
352+
addValue = SurfaceGradientFromVolumeGradient (vtxNormal, decalSurfaceData.normalWS.xyz);
353+
}
354+
normalTS += addValue;
351355
}

Tests/SRPTests/Projects/VisualEffectGraph_HDRP/ProjectSettings/ProjectSettings.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ PlayerSettings:
116116
xboxOneDisableEsram: 0
117117
xboxOneEnableTypeOptimization: 0
118118
xboxOnePresentImmediateThreshold: 0
119-
switchQueueCommandMemory: 0
120-
switchQueueControlMemory: 0
119+
switchQueueCommandMemory: 2097152
120+
switchQueueControlMemory: 262144
121121
switchQueueComputeMemory: 262144
122122
switchNVNShaderPoolsGranularity: 33554432
123123
switchNVNDefaultPoolsGranularity: 16777216

0 commit comments

Comments
 (0)