mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
untested update from gl
This commit is contained in:
parent
c3e64f7083
commit
06ba6f9042
@ -2516,14 +2516,8 @@ apply_fog(qpFog *fog) {
|
||||
call_glFogMode(get_fog_mode_type((Fog::Mode)fmode));
|
||||
|
||||
if (fmode == qpFog::M_linear) {
|
||||
// Linear fog may be world-relative or camera-relative. The fog
|
||||
// object knows how to decode its parameters into camera-relative
|
||||
// properties.
|
||||
float onset, opaque;
|
||||
fog->compute_linear_range(onset, opaque,
|
||||
qpNodePath(),
|
||||
// _current_camera,
|
||||
_coordinate_system);
|
||||
fog->get_linear_range(onset, opaque);
|
||||
call_glFogStart(onset);
|
||||
call_glFogEnd(opaque);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user