mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
changing the rule for mayatoegg modulate mode on multitexture
This commit is contained in:
parent
1c3250e7b9
commit
aabf720376
@ -2332,11 +2332,16 @@ set_shader_attributes(EggPrimitive &primitive, const MayaShader &shader,
|
|||||||
if (i!=shader._color.size()-1) {
|
if (i!=shader._color.size()-1) {
|
||||||
// read the _alpha_is_luminance to figure out env_type
|
// read the _alpha_is_luminance to figure out env_type
|
||||||
tex.set_env_type((EggTexture::EnvType)color_def->_blend_type);
|
tex.set_env_type((EggTexture::EnvType)color_def->_blend_type);
|
||||||
// multitexture modulate mode may specify, desired alpha on/off
|
// multitexture modulate mode should always turn alpha
|
||||||
|
// off. The texture and textures.txa will determine
|
||||||
|
// whether to keep it or not
|
||||||
|
if (tex.get_env_type() == EggTexture::ET_modulate) {
|
||||||
|
tex.set_alpha_mode(EggRenderMode::AM_off); // Force alpha to be 'off'
|
||||||
|
}
|
||||||
|
/*
|
||||||
if (!color_def->_alpha_is_luminance)
|
if (!color_def->_alpha_is_luminance)
|
||||||
tex.set_alpha_mode(EggRenderMode::AM_off); // Force alpha to be 'off'
|
tex.set_alpha_mode(EggRenderMode::AM_off); // Force alpha to be 'off'
|
||||||
}
|
*/
|
||||||
if (color_def->_alpha_is_luminance) {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else { // trans_def._has_texture
|
} else { // trans_def._has_texture
|
||||||
|
Loading…
x
Reference in New Issue
Block a user