Bug 97429

Summary: Per-pixel fog isn't done
Product: Mesa Reporter: Ruslan Kabatsayev <b7.10110111>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED NOTABUG QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Ruslan Kabatsayev 2016-08-21 12:08:00 UTC
I've tried fbo_firecube from mesa-demos on Software Rasterizer, llvmpipe, softpipe and Intel HD Graphics 4600, and setting GL_FOG_HINT to GL_NICEST (toggled by pressing 'n') doesn't change anything. OTOH, on nvidia binary driver for an NVidia card I get nice per-pixel fog in this demo.

I believe that even though Mesa might refuse to support per-pixel fog in software renderers, at least drivers for the hardware capable of it must support it. This includes i965 and i915, and a bunch of others.
Comment 1 Jason Ekstrand 2016-08-21 23:53:20 UTC
GL_FOG_HINT is just a hint and nothing more so doing nothing with it is perfectly valid.  Perhaps we could do better (I honestly don't know).  However, since there are basically no modern applications using fixed-function fog, there is very little reason for is to care about making it better at this point.  Patches to improve fog handling would probably be welcome of someone cared to write them but I wouldn't expect any one of the main devs to care for the reasons already mentioned.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.