home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Shaders
/
Materials
/
terraformglow.mat
< prev
next >
Wrap
Text File
|
2002-09-17
|
3KB
|
123 lines
; texturemapped, reflection mapped with reflection level map!
; Sima Map -> DIFFUSE TEXTURE rgb
; Reflection level Map -> DIFFUSE TEXTURE alpha
; Reflection Map -> REFLECTION TEXTURE rgb
;
; Warning: a refmap csak grayscale-ben shadelt!
#include "..\MaterialDefine.def"
[Technique]
{
; Detail = DETAIL_HIGH
; a glow hattert sotetito resze!
[Pass]
{
[Layer]
{
TextureSource = TEXT_REFLECTION
TexCoordIndex = TSS_TCI_CAMERASPACENORMAL;REFLECTIONVECTOR
TextureTransformFlags = TTFF_COUNT2
TextureTransformMode = TTM_SPHERICALENVMAP
ColorArg1 = TA_DIFFUSE
ColorArg2 = TA_TEXTUREALPHA
ColorOp = TOP_MODULATE
AlphaOp = TOP_DISABLE
TextureAddressU = TADDRESS_CLAMP
TextureAddressV = TADDRESS_CLAMP
Filter = TF_LINEAR_MIP_POINT
}
[Layer]
{
ColorArg1 = TA_CURRENT
ColorArg2 = TA_TFACTORALPHA
ColorOp = TOP_MODULATE
}
FillMode = FILL_SOLID
Cull = CULL_CW
DitherEnable = TRUE
SpecularEnable = FALSE
LightingEnable = TRUE
NormalizeNormals = TRUE
LocalViewer = FALSE
AlphaTestEnable = FALSE
AlphaFunc = CMP_NOTEQUAL
AlphaRef = 0
TextureFactor = 255,228,161,95;230,121,14
AlphaBlendEnable = TRUE
SrcBlend = BLEND_ZERO
DestBlend = BLEND_INVSRCCOLOR
ZWriteEnable = FALSE
ZFunc = CMP_LESS
}
; a glow vilagosito resze!
[Pass]
{
[Layer]
{
TextureSource = TEXT_REFLECTION
TexCoordIndex = TSS_TCI_CAMERASPACENORMAL;REFLECTIONVECTOR
TextureTransformFlags = TTFF_COUNT2
TextureTransformMode = TTM_SPHERICALENVMAP
ColorArg1 = TA_TEXTUREALPHA
ColorArg2 = TA_TFACTOR
ColorOp = TOP_MODULATE
AlphaArg1 = TA_TEXTURE
AlphaArg2 = TA_TFACTOR
AlphaOp = TOP_MODULATE
TextureAddressU = TADDRESS_CLAMP
TextureAddressV = TADDRESS_CLAMP
Filter = TF_LINEAR_MIP_POINT
}
[Layer]
{
ColorArg1 = TA_DIFFUSE
ColorArg2 = TA_CURRENT
ColorOp = TOP_MODULATE
AlphaArg1 = TA_CURRENT
AlphaOp = TOP_SELECTARG1
}
FillMode = FILL_SOLID
Cull = CULL_CW
DitherEnable = TRUE
SpecularEnable = FALSE
LightingEnable = TRUE
NormalizeNormals = TRUE
LocalViewer = FALSE
AlphaTestEnable = TRUE
AlphaFunc = CMP_NOTEQUAL
AlphaRef = 0
TextureFactor = 255,228,161,95;230,121,14
AlphaBlendEnable = TRUE
SrcBlend = BLEND_SRCALPHA
DestBlend = BLEND_ONE
ZWriteEnable = FALSE
ZFunc = CMP_LESS
DiffuseMaterialSource = MCS_MATERIAL
SpecularMaterialSource = MCS_MATERIAL
AmbientMaterialSource = MCS_MATERIAL
EmissiveMaterialSource = MCS_MATERIAL
}
}