wined3d: Make pixelshaders disable fog properly.
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 15 Dec 2008 18:35:40 +0000 (19:35 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 19 Dec 2008 16:17:16 +0000 (17:17 +0100)
commit690cbe76ac4f84b67cebe7779a14e23332e271d8
tree53be73d468054288f0cf596f52eed5663a5b4029
parent7d92b54a974027bcc9e7486d92c7da3c090a2cd7
wined3d: Make pixelshaders disable fog properly.

This is a first step towards cleaning up the fog mess. The fog
parameter is added to the pixelshader compile args structure. That way
multiple pshaders are compiled for different fog settings, and the
pixel shader can remove the fog line if fog is not enabled. That way
we don't need special fog start and end settings, and this allows us
to implement EXP and EXP2 fog in the future too.
dlls/wined3d/arb_program_shader.c
dlls/wined3d/glsl_shader.c
dlls/wined3d/pixelshader.c
dlls/wined3d/state.c
dlls/wined3d/wined3d_private.h