• Stefan Dösinger's avatar
    wined3d: Get rid of last_was_foggy_shader & friends. · 50109aa9
    Stefan Dösinger authored
    The fog settings do not depend on wether the shader writes to oFog or not,
    instead they depend on the FOGVERTEXMODE and FOGTABLEMODE settings, and if a
    vertex shader is bound at all.
    
    It works the same way as with the fixed function, and having a vertex shader
    is the same as using pretransformed vertices, just that the fog coord comes
    from the shader instead of the specular color:
    
    FOGTABLEMODE != NONE: The Z coord is used, oFog is ignored
    FOGTABLEMODE == NONE, with VS: oFog is used
    FOGTABLEMODE == NONE, no VS, XYZ: Z is used
    FOGTABLEMODE == NONE, no VS, XYZRHW: diffuse color is used
    50109aa9
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
basetexture.c Loading commit data...
cubetexture.c Loading commit data...
d3d9.spec Loading commit data...
d3d9_main.c Loading commit data...
d3d9_private.h Loading commit data...
device.c Loading commit data...
directx.c Loading commit data...
indexbuffer.c Loading commit data...
pixelshader.c Loading commit data...
query.c Loading commit data...
resource.c Loading commit data...
stateblock.c Loading commit data...
surface.c Loading commit data...
swapchain.c Loading commit data...
texture.c Loading commit data...
version.rc Loading commit data...
vertexbuffer.c Loading commit data...
vertexdeclaration.c Loading commit data...
vertexshader.c Loading commit data...
volume.c Loading commit data...
volumetexture.c Loading commit data...