Atom/mriegger/decalnormalmaps (#4302)
* Adding normal maps to decals initial commit Signed-off-by: mrieggeramzn <mriegger@amazon.com> * Adding checks for normal maps not present Signed-off-by: mrieggeramzn <mriegger@amazon.com> * Readding the proper switch statement Signed-off-by: mrieggeramzn <mriegger@amazon.com> * Addressing PR feedback, adding brackets Signed-off-by: mrieggeramzn <mriegger@amazon.com> * Adding comments Signed-off-by: mrieggeramzn <mriegger@amazon.com> * fixing compile issue Signed-off-by: mrieggeramzn <mriegger@amazon.com>
This commit is contained in:
@@ -89,6 +89,7 @@ namespace AZ
|
||||
private:
|
||||
|
||||
// Number of size and format permutations
|
||||
// This number should match the number of texture arrays in Decals/ViewSrg.azsli
|
||||
static constexpr int NumTextureArrays = 5;
|
||||
static constexpr const char* FeatureProcessorName = "DecalTextureArrayFeatureProcessor";
|
||||
|
||||
@@ -128,7 +129,7 @@ namespace AZ
|
||||
// 4 textures @ 512x512
|
||||
IndexableList < AZStd::pair < AZ::RHI::Size, DecalTextureArray>> m_textureArrayList;
|
||||
|
||||
AZStd::array<RHI::ShaderInputImageIndex, NumTextureArrays> m_decalTextureArrayIndices;
|
||||
AZStd::array<AZStd::array<RHI::ShaderInputImageIndex, DecalMapType_Num>, NumTextureArrays> m_decalTextureArrayIndices;
|
||||
GpuBufferHandler m_decalBufferHandler;
|
||||
|
||||
AsyncLoadTracker<DecalHandle> m_materialLoadTracker;
|
||||
|
||||
Reference in New Issue
Block a user