Просмотр исходного кода

Update materialDefinition.h

the values holding the channel selection were set to floats when they were expecting integer values.
marauder2k7 4 месяцев назад
Родитель
Сommit
f64c7ce7aa
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      Engine/source/materials/materialDefinition.h

+ 3 - 3
Engine/source/materials/materialDefinition.h

@@ -223,10 +223,10 @@ public:
 
    bool     mDiffuseMapSRGB[MAX_STAGES];   // SRGB diffuse
    bool     mIsSRGb[MAX_STAGES];           // SRGB ORM
-   F32      mAOChan[MAX_STAGES];
+   U32      mAOChan[MAX_STAGES];
    bool     mInvertRoughness[MAX_STAGES];
-   F32      mRoughnessChan[MAX_STAGES];
-   F32      mMetalChan[MAX_STAGES];
+   U32      mRoughnessChan[MAX_STAGES];
+   U32      mMetalChan[MAX_STAGES];
    F32      mGlowMul[MAX_STAGES];
 
    /// The strength scalar for the detail normal map.