added the maya blendmode support for the add, multiply and over

This commit is contained in:
Asad M. Zaman 2005-11-12 21:08:40 +00:00
parent b95f6ecff4
commit 5703d49669
1 changed files with 3 additions and 2 deletions

View File

@ -2308,8 +2308,9 @@ set_shader_attributes(EggPrimitive &primitive, const MayaShader &shader,
// from the texture file. But the top textures may have to strip the alpha
if (i!=shader._color.size()-1) {
// read the _alpha_is_luminance to figure out env_type
if (!shader._alpha_is_luminance)
tex.set_env_type(EggTexture::ET_decal);
//if (!shader._alpha_is_luminance)
//tex.set_env_type(EggTexture::ET_decal);
tex.set_env_type((EggTexture::EnvType)shader._blend_type);
// multitexture modulate mode may specify, desired alpha on/off
if (!color_def->_alpha_is_luminance)
tex.set_alpha_mode(EggRenderMode::AM_off); // Force alpha to be 'off'