Do I have to Script my textures?!?! Nooooooo!
Posted: Sat May 14, 2005 4:58 am
//Can it be this simple?
material DragonflyRed
{
receive_shadows on
technique
{
pass //For Diffuse
{
ambient 0.588235 0.588235 0.588235
diffuse 0.588235 0.588235 0.588235
emissive 0.0 0.0 0.0
texture_unit
{
texture dragonfly.tga
}
}
pass //for alpha
{
scene_blend alpha_blend
texture_unit
{
// texture with included alpha channel
texture dragonfly.tga
}
}
pass //for Specular
{
scene_blend Specular_blend // It aint Specular_blend but sum function its too late too look up now
texture_unit
{
// Specular Map
texture dragonflySpec.tga
}
}
pass //for Normal
{
scene_blend Normal_blend //Same as specular but normal
texture_unit
{
// Normal Map
texture dragonflyNormal.tga
}
}
}
}
/* Or is there a way for the exporter to make the script from the mesh with the material assigned to it... straight through the max exporter? .... Please.....I'm not a scripter */
material DragonflyRed
{
receive_shadows on
technique
{
pass //For Diffuse
{
ambient 0.588235 0.588235 0.588235
diffuse 0.588235 0.588235 0.588235
emissive 0.0 0.0 0.0
texture_unit
{
texture dragonfly.tga
}
}
pass //for alpha
{
scene_blend alpha_blend
texture_unit
{
// texture with included alpha channel
texture dragonfly.tga
}
}
pass //for Specular
{
scene_blend Specular_blend // It aint Specular_blend but sum function its too late too look up now
texture_unit
{
// Specular Map
texture dragonflySpec.tga
}
}
pass //for Normal
{
scene_blend Normal_blend //Same as specular but normal
texture_unit
{
// Normal Map
texture dragonflyNormal.tga
}
}
}
}
/* Or is there a way for the exporter to make the script from the mesh with the material assigned to it... straight through the max exporter? .... Please.....I'm not a scripter */