145 lines
No EOL
5 KiB (Stored with Git LFS)
Text
145 lines
No EOL
5 KiB (Stored with Git LFS)
Text
params =
|
|
{
|
|
NAME = "GFXMaterialShader_Template",
|
|
GFXMaterialShader_Template =
|
|
{
|
|
blendmode = GFX_BlendMode.ALPHA, -- Layer 1 is the texture diffuse1
|
|
|
|
materialtype = GFX_MatType.MULTI_TEXTURE, -- Don't change this
|
|
|
|
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.BORDER,
|
|
TexAdressingModeV = GFX_TexAddressMode.BORDER,
|
|
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,
|
|
AnimRotation = FALSE,
|
|
TranslationU = 0,
|
|
TranslationV = 0,
|
|
AnimTranslationU = FALSE,
|
|
AnimTranslationV = FALSE,
|
|
|
|
},
|
|
},
|
|
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0,
|
|
AnimRotation = FALSE,
|
|
ScaleU = 0.988,
|
|
ScaleV = 0.988,
|
|
TranslationU = 0,
|
|
TranslationV = 0,
|
|
AnimTranslationU = FALSE,
|
|
AnimTranslationV = FALSE,
|
|
|
|
},
|
|
},
|
|
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0,
|
|
AnimRotation = FALSE,
|
|
ScaleU = 1.0,
|
|
ScaleV = 2.0/3.0,
|
|
ScaleOffsetV = 0,
|
|
TranslationU = 0,
|
|
TranslationV = 0,
|
|
AnimTranslationU = FALSE,
|
|
AnimTranslationV = FALSE,
|
|
|
|
},
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
BlendLayer2 = GFX_BlendMode.MUL, -- Layer 2 is the texture diffuse2
|
|
|
|
Layer2 =
|
|
{
|
|
MaterialLayer =
|
|
{
|
|
Enabled = TRUE, -- Enable/Disable this layer
|
|
|
|
TexAdressingModeU = GFX_TexAddressMode.BORDER,
|
|
TexAdressingModeV = GFX_TexAddressMode.BORDER,
|
|
DiffuseColor = "0xffffffff", -- (ARGB)
|
|
|
|
TextureUsage = GFX_TextureUsage.ALPHA_IS_GREEN,
|
|
UVModifiers =
|
|
{
|
|
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0,
|
|
AnimRotation = FALSE,
|
|
TranslationU = 0,
|
|
TranslationV = 0,
|
|
AnimTranslationU = FALSE,
|
|
AnimTranslationV = FALSE,
|
|
|
|
},
|
|
},
|
|
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0,
|
|
AnimRotation = FALSE,
|
|
ScaleU = 0.988,
|
|
ScaleV = 0.988,
|
|
TranslationU = 0,
|
|
TranslationV = 0,
|
|
AnimTranslationU = FALSE,
|
|
AnimTranslationV = FALSE,
|
|
|
|
},
|
|
},
|
|
|
|
{
|
|
UVModifier =
|
|
{
|
|
Rotation = 0,
|
|
AnimRotation = FALSE,
|
|
ScaleU = 1.0,
|
|
ScaleV = 1.0/3.0,
|
|
ScaleOffsetV = 0,
|
|
TranslationU = 0,
|
|
TranslationV = 0.6666667,
|
|
AnimTranslationU = FALSE,
|
|
AnimTranslationV = FALSE,
|
|
|
|
},
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
} |