etqw-sdk/base/templates/materials.template

27 lines
708 B
Text
Raw Permalink Normal View History

2008-05-29 00:00:00 +00:00
template material/translucent {
parameters <
DiffuseMapImage,
TranslucencyMapImage,
LocalMapImage,
SpecularMapImage,
TranslucencyMultiplier = "1.0",
ScatteringColorR = "1.0",
ScatteringColorG = "1.0",
ScatteringColorB = "1.0",
picmipdiffuse = "",
picmiplocal = "",
picmipspec = "" >
text {
{
program interaction/translucent
parameters ScatteringColorR, ScatteringColorG, ScatteringColorB, TranslucencyMultiplier // light scattering rgb, translucency multiplier
diffusemap picmipdiffuse mulAlpha( DiffuseMapImage, makeAlpha( TranslucencyMapImage ) )
bumpmap picmiplocal LocalMapImage
specularmap picmipspec SpecularMapImage
}
}
}