home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Shaders
/
Materials
/
BigShip2.mat
< prev
next >
Wrap
Text File
|
2002-09-17
|
4KB
|
176 lines
; A texturak helye!
; Sima map -> DIFFUSE TEXTURE rgb
; Roncs map -> GLOSSINESS TEXTURE rgb
; Detail map -> AMBIENT TEXTURE rgb
; Specular level map -> DIFFUSE TEXTURE alpha
; Self illumination map -> GLOSSINESS TEXTURE alpha
; a roncsolodas merteke a diffuse alphaban lesz!
#include "..\MaterialDefine.def"
[Technique]
{
; Detail = DETAIL_HIGH
[Pass]
{
[Layer]
{
TextureSource = TEXT_DIFFUSE
TexCoordIndex = 0
ColorArg1 = TA_TEXTURE ;diffuse textura
ColorArg2 = TA_DIFFUSEALPHA
ColorOp = TOP_MODULATE
AlphaOp = TOP_DISABLE
TextureAddressU = TADDRESS_CLAMP
TextureAddressV = TADDRESS_CLAMP
Filter = TF_LINEAR_MIP_LINEAR
}
[Layer]
{
TextureSource = TEXT_DIFFUSE;GLOSSINESS
TexCoordIndex = 0
ColorArg1 = TA_CURRENT
ColorArg2 = TA_TEXTURE ;diffuse serules textura
ColorOp = TOP_MODULATEINVALPHA_ADDCOLOR
TextureAddressU = TADDRESS_CLAMP
TextureAddressV = TADDRESS_CLAMP
Filter = TF_LINEAR_MIP_LINEAR
}
FillMode = FILL_SOLID
Cull = CULL_CW
DitherEnable = TRUE
SpecularEnable = FALSE
LightingEnable = FALSE
NormalizeNormals = FALSE
LocalViewer = FALSE
AlphaTestEnable = FALSE
AlphaFunc = CMP_GREATER
AlphaRef = 4
AlphaBlendEnable = FALSE
SrcBlend = BLEND_ONE
DestBlend = BLEND_ZERO
ZWriteEnable = TRUE
ZFunc = CMP_LESSEQUAL
DiffuseMaterialSource = MCS_COLOR1
SpecularMaterialSource = MCS_MATERIAL
AmbientMaterialSource = MCS_MATERIAL
EmissiveMaterialSource = MCS_MATERIAL
}
[Pass]
{
[Layer]
{
TextureSource = TEXT_DIFFUSE
TexCoordIndex = 0
ColorArg1 = TA_TEXTUREALPHA ;self illum
ColorArg2 = TA_DIFFUSE
ColorOp = TOP_ADD
AlphaOp = TOP_DISABLE
TextureAddressU = TADDRESS_CLAMP
TextureAddressV = TADDRESS_CLAMP
Filter = TF_LINEAR_MIP_LINEAR
}
; [Layer]
; {
; TextureSource = TEXT_AMBIENT
; TexCoordIndex = 1
;
; ColorArg1 = TA_CURRENT ;detail map
; ColorArg2 = TA_TEXTURE
; ColorOp = TOP_SELECTARG1;MODULATE
;
; TextureAddressU = TADDRESS_WRAP
; TextureAddressV = TADDRESS_WRAP
; Filter = TF_LINEAR_MIP_LINEAR
; }
FillMode = FILL_SOLID
Cull = CULL_CW
DitherEnable = TRUE
SpecularEnable = FALSE
LightingEnable = TRUE
NormalizeNormals = TRUE
LocalViewer = FALSE
AlphaTestEnable = FALSE
AlphaFunc = CMP_GREATER
AlphaRef = 4
AlphaBlendEnable = TRUE
SrcBlend = BLEND_DESTCOLOR
DestBlend = BLEND_ZERO
ZWriteEnable = FALSE
ZFunc = CMP_LESSEQUAL
DiffuseMaterialSource = MCS_MATERIAL
SpecularMaterialSource = MCS_MATERIAL
AmbientMaterialSource = MCS_MATERIAL
EmissiveMaterialSource = MCS_MATERIAL
}
[Pass]
{
[Layer]
{
TextureSource = TEXT_GLOSSINESS ;Specular map
TexCoordIndex = 0
ColorArg1 = TA_TEXTUREALPHA
ColorArg2 = TA_SPECULAR
ColorOp = TOP_MODULATE
TextureAddressU = TADDRESS_CLAMP
TextureAddressV = TADDRESS_CLAMP
Filter = TF_LINEAR_MIP_LINEAR
}
[Layer]
{
ColorArg1 = TA_CURRENT
ColorArg2 = TA_DIFFUSE
ColorOp = TOP_MODULATE
}
FillMode = FILL_SOLID
Cull = CULL_CW
DitherEnable = TRUE
SpecularEnable = FALSE
LightingEnable = TRUE
NormalizeNormals = TRUE
LocalViewer = TRUE
AlphaTestEnable = FALSE
AlphaFunc = CMP_GREATER
AlphaRef = 4
AlphaBlendEnable = TRUE
SrcBlend = BLEND_ONE
DestBlend = BLEND_ONE
ZWriteEnable = FALSE
ZFunc = CMP_LESSEQUAL
DiffuseMaterialSource = MCS_DIFFUSE
SpecularMaterialSource = MCS_MATERIAL
AmbientMaterialSource = MCS_MATERIAL
EmissiveMaterialSource = MCS_MATERIAL
}
}