• Stefan Doesinger's avatar
    wined3d: Emulate clipplanes in ARB if the NV extensions are not available. · b2f09fd2
    Stefan Doesinger authored
    This patch tries to find a free texture coordinate to load up to 4 clip
    coordinates into the pixel shader, and uses KIL to throw away fragments
    that are cut by a clipplane. If no free texture coordinate is found,
    clipping is not done. If more than 4 clipplanes are used, only the first
    4 are actually enabled. That should be pretty rare though.
    b2f09fd2
arb_program_shader.c 266 KB