mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
shader: Fix attr_fogcolor not picking up inter-frame changes
Fixes shader generator not responding to fog color changes
This commit is contained in:
parent
d0b7574384
commit
6fe25d3edc
@ -391,7 +391,7 @@ cp_dependency(ShaderMatInput inp) {
|
|||||||
dep |= SSD_colorscale;
|
dep |= SSD_colorscale;
|
||||||
}
|
}
|
||||||
if (inp == SMO_attr_fog || inp == SMO_attr_fogcolor) {
|
if (inp == SMO_attr_fog || inp == SMO_attr_fogcolor) {
|
||||||
dep |= SSD_fog;
|
dep |= SSD_fog | SSD_frame;
|
||||||
}
|
}
|
||||||
if ((inp == SMO_model_to_view) ||
|
if ((inp == SMO_model_to_view) ||
|
||||||
(inp == SMO_view_to_model) ||
|
(inp == SMO_view_to_model) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user