mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
correct imageassetarrays having a singular texture profile as oposed to a type per.
while that certainly works for most cases it falls apart when dealing with postfx where it's an unnamed array of variable types of inputs. shifted the profile assignment to #define INIT_IMAGEASSET_ARRAY(name, profile, index) so there's still a really obvious point where you can see the default setting, even if it's not in the more desireable OG definition spot for postfx in particular, given we can swap that, provided an example of how to do just that
This commit is contained in:
parent
a0e0e1f220
commit
e45b959d7d
15 changed files with 66 additions and 48 deletions
|
|
@ -142,18 +142,18 @@ Material::Material()
|
|||
mAccuCoverage[i] = 0.9f;
|
||||
mAccuSpecular[i] = 16.0f;
|
||||
|
||||
INIT_ASSET_ARRAY(DiffuseMap, i);
|
||||
INIT_ASSET_ARRAY(OverlayMap, i);
|
||||
INIT_ASSET_ARRAY(LightMap, i);
|
||||
INIT_ASSET_ARRAY(ToneMap, i);
|
||||
INIT_ASSET_ARRAY(DetailMap, i);
|
||||
INIT_ASSET_ARRAY(NormalMap, i);
|
||||
INIT_ASSET_ARRAY(ORMConfigMap, i);
|
||||
INIT_ASSET_ARRAY(RoughMap, i);
|
||||
INIT_ASSET_ARRAY(AOMap, i);
|
||||
INIT_ASSET_ARRAY(MetalMap, i);
|
||||
INIT_ASSET_ARRAY(GlowMap, i);
|
||||
INIT_ASSET_ARRAY(DetailNormalMap, i);
|
||||
INIT_IMAGEASSET_ARRAY(DiffuseMap, GFXStaticTextureSRGBProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(OverlayMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(LightMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(ToneMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(DetailMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(NormalMap, GFXNormalMapProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(ORMConfigMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(RoughMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(AOMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(MetalMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(GlowMap, GFXStaticTextureProfile, i);
|
||||
INIT_IMAGEASSET_ARRAY(DetailNormalMap, GFXNormalMapProfile, i);
|
||||
|
||||
mParallaxScale[i] = 0.0f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue