From d9a3048a6d8d33093934721f65f0896e88889e20 Mon Sep 17 00:00:00 2001 From: mrieggeramzn Date: Thu, 30 Sep 2021 11:04:02 -0700 Subject: [PATCH] Adding comment Signed-off-by: mrieggeramzn --- .../Common/Assets/ShaderLib/Atom/Features/PBR/Decals.azsli | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gems/Atom/Feature/Common/Assets/ShaderLib/Atom/Features/PBR/Decals.azsli b/Gems/Atom/Feature/Common/Assets/ShaderLib/Atom/Features/PBR/Decals.azsli index 1bd8e0b9a5..1d7a2d6dd0 100644 --- a/Gems/Atom/Feature/Common/Assets/ShaderLib/Atom/Features/PBR/Decals.azsli +++ b/Gems/Atom/Feature/Common/Assets/ShaderLib/Atom/Features/PBR/Decals.azsli @@ -67,6 +67,9 @@ void ApplyDecal(uint currDecalIndex, inout Surface surface) float3 decalSample; float4 baseMap = 0; + + // Each texture array handles a size permutation. + // e.g. it could be that tex array 0 handles 256x256 and tex array 1 handles 512x64, etc. switch(textureArrayIndex) { case 0: