H. Verbeet : wined3d: Use gl_Color and gl_SecondaryColor to support more varyings in SM3. 0 shaders.
julliard at winehq.org
Thu Jun 19 06:39:36 CDT 2008
Author: H. Verbeet <hverbeet at gmail.com>
Date: Thu Jun 19 00:36:35 2008 +0200
wined3d: Use gl_Color and gl_SecondaryColor to support more varyings in SM3.0 shaders.
SM3.0 requires 10 4 component float varyings for passing stuff between
vertex and pixel shaders. GF7 and earlier report 8 generic varyings +
gl_Color and gl_SecondaryColor in GLSL. This patch allows us to use
gl_Color and gl_SecondaryColor to get 2 extra varyings, which some
games, like C&C3 with highest gfx settings, require.
dlls/wined3d/glsl_shader.c | 147 ++++++++++++++++++++++++++++-----------
dlls/wined3d/pixelshader.c | 2 +
dlls/wined3d/wined3d_private.h | 2 +
3 files changed, 109 insertions(+), 42 deletions(-)
More information about the wine-cvs