mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
ShaderGenerator: fix M_modulate_gloss regression
It was mapping the alpha channel of M_modulate_gloss to the glow channel.
This commit is contained in:
parent
e0f8d7885a
commit
319b331553
@ -344,7 +344,7 @@ analyze_renderstate(ShaderKey &key, const RenderState *rs) {
|
|||||||
|
|
||||||
case TextureStage::M_modulate_gloss:
|
case TextureStage::M_modulate_gloss:
|
||||||
if (shader_attrib->auto_gloss_on()) {
|
if (shader_attrib->auto_gloss_on()) {
|
||||||
info._flags = ShaderKey::TF_map_glow;
|
info._flags = ShaderKey::TF_map_gloss;
|
||||||
} else {
|
} else {
|
||||||
info._mode = TextureStage::M_modulate;
|
info._mode = TextureStage::M_modulate;
|
||||||
info._flags = ShaderKey::TF_has_rgb;
|
info._flags = ShaderKey::TF_has_rgb;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user