On 16.06.2008 18:49, H. Verbeet wrote:
> 2008/6/16 Roland Scheidegger <[EMAIL PROTECTED]>:
>> From this also follows that it's not possible to use per-vertex fog when
>> using fragment programs (or shaders) - or rather mesa's implementation
>> doesn't really allow it (since it would overwrite the fogcoord with fog
>> factors, but fogcoord might still be accessed freely in a fragment
>> program). Maybe that's only of academic interest though and noone really
>> abuses fogcoord like that :-).
>>
> Yes, but the fragment program spec already explicitly states that it
> replaces fogging completely.
Right. But if drivers are around which allow per-vertex fog (r300, for
example) and a fragment program is used, they will get bogus fogcoords
with your patch (if fog, despite having no effect really, is enabled).

Roland

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to