17 INLINE Fog::Mode Fog::
42 INLINE
const LColor &
Fog::
51 set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b) {
78 LVector3 forward = LVector3::forward();
79 _linear_onset_point = onset * forward;
80 _linear_opaque_point = opaque * forward;
81 _transformed_onset = onset;
82 _transformed_opaque = opaque;
90 INLINE
const LPoint3 &
Fog::
92 return _linear_onset_point;
101 _linear_onset_point.set(x, y, z);
110 _linear_onset_point = linear_onset_point;
117 INLINE
const LPoint3 &
Fog::
119 return _linear_opaque_point;
128 _linear_opaque_point.set(x, y, z);
137 _linear_opaque_point = linear_opaque_point;
172 _linear_fallback_cosa = ccos(deg_2_rad(angle));
173 _linear_fallback_onset = onset;
174 _linear_fallback_opaque = opaque;
181 INLINE PN_stdfloat
Fog::
195 nassertv((exp_density >= 0.0) && (exp_density <= 1.0));
196 _exp_density = exp_density;
198 if (_mode == M_linear) {
199 _mode = M_exponential;