Would there be much interest in adding a flag to the fog object that
uses the scene background colour (eg from sky_sphere or background) as
fog_color rather than a constant? This would be useful to make objects
in the scene automatically fade into the background colour.
I think trace.cpp could be be modified to achieve this (I haven't tested
it yet). In TraceRay fog would not be applied if no object is
intersected - ie just the colour from ComputeSky is used. If an object
is found then the result from ComputeSky is passed to ComputeFog and
that colour is used as the fog colour (rather than the colour from the
fog object).
Do you think this is a good idea, or any issues with the above way of
patching POV?
Post a reply to this message
|