wined3d: Take abs() of vertex z coordinate as FFP fog coordinate and remove oFog clamp for vertex shaders

Stefan Dösinger stefandoesinger at gmail.com
Mon Oct 27 08:24:26 CDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 2014-10-27 13:25, schrieb Stefan Dösinger:
>> Testing the oFog clamp behavior is a nice extra -- I wouldn't be
>>  unhappy if a version of the patch that leaves that out could be
>>  committed.
> I'll do some investigation regarding vertex fog + a fragment 
> processing setup that just replaces the color, but otherwise I
> agree.
The attached test combined with your test should show that fixed
function vertex fog indeed output a fog coordinate of abs(z) and does
not merge the fog color into the diffuse color prior to fragment
processing. (no d3d8 and ddraw versions yet)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJUTkeHAAoJEN0/YqbEcdMw4fYP/intJBx+BZem3ev9vMk+ytVw
ok7+rLvWgLCB0+otKqTtcz4C1wXcna07BC4HYMExRclmZKRj3jf2rN6nwLfXzN2n
4ETIXpj9gHP8S4XFM98LXlf43FsmNcNdgJ1RxaA1vIk8IfXSo+knVs6pxSXGUcuL
FPkR7VE1WTkHybNTrseWbNg3vkAmgZBZGiXKvEVbVvrcsS45vC0bI0/L8bHk6tOc
+68/58JDxo+kEee14CrrFarezqxtloNTK3U/jek1hZCje407PG+RL2C++sVBHAQe
unZaXAr7YYkWj5APrSY7xl0aoSV7eeAD3nD7Zv7BMwOiwT2KW1MVTN5txAdaFh54
90qDmSgjm9p5ogXrFh6SOMsEU1+lT6RRDyNmKdRTlpqMWy/dydEJmhE2ncaGZag+
m5MbhSnB123YkihOdmP4/ntUgRHeleeqXMJHhI+FNatoUIVfVueS4RN+x/qkZDq+
9yDENZYt2RC8lP6rxo9JM0RpuehDuYr/8wOKkWVcYNhf9pGOjmF+gR7XF+e5f+fP
hKMfGsBFmPhyEX5Xw2TYYY8iipt8bWZvgJjg1PEUBRQSl4UhRAqNC5PCM+eSVlUW
z2J/2APenE4hRDPxKt2WFKyTTd1M/qdaKA9bq/8pezeXQK10O8LQeO2lYA6nvA72
eAx+qaN90LxFVbcrPsuz
=haWb
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-d3d9-tests-Vertex-fog-is-calculated-after-fragment-p.patch
Type: text/x-diff
Size: 4488 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20141027/46dac0d2/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-d3d9-tests-Vertex-fog-is-calculated-after-fragment-p.patch.sig
Type: application/pgp-signature
Size: 543 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20141027/46dac0d2/attachment.sig>


More information about the wine-devel mailing list