etqw-sdk/base/templates/materials.template
2008-05-29 00:00:00 +00:00

26 lines
708 B
Text

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
}
}
}