155 lines
3.9 KiB (Stored with Git LFS)
Text
155 lines
3.9 KiB (Stored with Git LFS)
Text
params =
|
|
{
|
|
NAME = "GFXMaterialShader_Template",
|
|
GFXMaterialShader_Template =
|
|
{
|
|
materialtype = GFX_MatType.MULTI_TEXTURE, -- Don't change this
|
|
|
|
|
|
|
|
blendmode = GFX_BlendMode.ALPHA, -- Final Blend
|
|
|
|
-- Layer 1 is the texture diffuse1
|
|
Layer1 =
|
|
{
|
|
MaterialLayer =
|
|
{
|
|
Enabled = TRUE, -- No effect at the moment for the layer 1 leave it to true for when it will be implemented
|
|
TexAdressingModeU = GFX_TexAddressMode.MIRROR,
|
|
TexAdressingModeV = GFX_TexAddressMode.MIRROR,
|
|
DiffuseColor = "0xffffffff", -- (ARGB)
|
|
TextureUsage = GFX_TextureUsage.ENTIRE_TEXTURE, --Texture usage : alpha channel selection / take the entire texture / or don't take the texture
|
|
UVModifiers =
|
|
{
|
|
-- All this values are the default one
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0.0,
|
|
RotationOffsetU = 0.5,
|
|
RotationOffsetV = 0.5,
|
|
AnimRotation = FALSE,
|
|
ScaleU = 1.0,
|
|
ScaleV = 1.0,
|
|
ScaleOffsetU = 0.5,
|
|
ScaleOffsetV = 0.5,
|
|
TranslationU = 0.0,
|
|
AnimTranslationU = FALSE,
|
|
TranslationV = 0.0,
|
|
AnimTranslationV = FALSE,
|
|
}
|
|
},
|
|
-- this second modifier is here just to show it's possible (but not mandatory)
|
|
}
|
|
}
|
|
},
|
|
|
|
BlendLayer2 = GFX_BlendMode.ALPHA,
|
|
|
|
-- Layer 2 is the texture diffuse2
|
|
Layer2 =
|
|
{
|
|
MaterialLayer =
|
|
{
|
|
Enabled = TRUE, -- Enable/Disable this layer
|
|
TexAdressingModeU = GFX_TexAddressMode.MIRROR,
|
|
TexAdressingModeV = GFX_TexAddressMode.MIRROR,
|
|
DiffuseColor = "0xffffffff", -- (ARGB)
|
|
TextureUsage = GFX_TextureUsage.ENTIRE_TEXTURE, --Texture usage : alpha channel selection / take the entire texture / or don't take the texture
|
|
UVModifiers =
|
|
{
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0.0,
|
|
RotationOffsetU = 0.5,
|
|
RotationOffsetV = 0.5,
|
|
AnimRotation = FALSE,
|
|
ScaleU = 1.0,
|
|
ScaleV = 1.0,
|
|
ScaleOffsetU = 0.5,
|
|
ScaleOffsetV = 0.5,
|
|
TranslationU = 0.0,
|
|
AnimTranslationU = FALSE,
|
|
TranslationV = 0.0,
|
|
AnimTranslationV = FALSE,
|
|
}
|
|
},
|
|
}
|
|
}
|
|
},
|
|
|
|
|
|
BlendLayer3 = GFX_BlendMode.ALPHA,
|
|
|
|
-- Layer 3 is the texture diffuse3
|
|
Layer3 =
|
|
{
|
|
MaterialLayer =
|
|
{
|
|
Enabled = TRUE, -- Enable/Disable this layer
|
|
TexAdressingModeU = GFX_TexAddressMode.MIRROR,
|
|
TexAdressingModeV = GFX_TexAddressMode.MIRROR,
|
|
DiffuseColor = "0xffffffff", -- (ARGB)
|
|
TextureUsage = GFX_TextureUsage.ENTIRE_TEXTURE, --Texture usage : alpha channel selection / take the entire texture / or don't take the texture
|
|
UVModifiers =
|
|
{
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0.0,
|
|
RotationOffsetU = 0.5,
|
|
RotationOffsetV = 0.5,
|
|
AnimRotation = FALSE,
|
|
ScaleU = 1.0,
|
|
ScaleV = 1.0,
|
|
ScaleOffsetU = 0.5,
|
|
ScaleOffsetV = 0.5,
|
|
TranslationU = 0.0,
|
|
AnimTranslationU = FALSE,
|
|
TranslationV = 0.0,
|
|
AnimTranslationV = FALSE,
|
|
}
|
|
},
|
|
}
|
|
}
|
|
},
|
|
|
|
|
|
BlendLayer4 = GFX_BlendMode.ALPHA,
|
|
|
|
-- Layer 4 is the texture diffuse4
|
|
Layer4 =
|
|
{
|
|
MaterialLayer =
|
|
{
|
|
Enabled = TRUE, -- Enable/Disable this layer
|
|
TexAdressingModeU = GFX_TexAddressMode.MIRROR,
|
|
TexAdressingModeV = GFX_TexAddressMode.MIRROR,
|
|
DiffuseColor = "0xffffffff", -- (ARGB)
|
|
TextureUsage = GFX_TextureUsage.ENTIRE_TEXTURE, --Texture usage : alpha channel selection / take the entire texture / or don't take the texture
|
|
UVModifiers =
|
|
{
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0.0,
|
|
RotationOffsetU = 0.5,
|
|
RotationOffsetV = 0.5,
|
|
AnimRotation = FALSE,
|
|
ScaleU = 1.0,
|
|
ScaleV = 1.0,
|
|
ScaleOffsetU = 0.5,
|
|
ScaleOffsetV = 0.5,
|
|
TranslationU = 0.0,
|
|
AnimTranslationU = FALSE,
|
|
TranslationV = 0.0,
|
|
AnimTranslationV = FALSE,
|
|
}
|
|
},
|
|
}
|
|
}
|
|
},
|
|
|
|
}
|
|
}
|