diff options
author | Eric Anholt <eric@anholt.net> | 2010-11-23 15:55:59 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-03-11 12:55:14 -0800 |
commit | 29e013e58be93aa6ed760393cf77ef34ca1d57c0 (patch) | |
tree | be7b3c332d7c02954267862966e8fc0e6ae14b8a /src/glsl | |
parent | 20f7a6f11aef492d5ca13e8ba9525eb2961d483c (diff) |
mesa: Add gl_MESAFogParamsOptimized for our special pre-computed fog params.
It would be nice if we handled optimized uniform math like this in
some generic way, since people often end up doing uniform expressions
in shaders, but for now keep this hard-coded like it was in the
texenvprogram code.
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/builtin_variables.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/builtin_variables.h b/src/glsl/builtin_variables.h index dfc93f39db..9b4f5d9e3e 100644 --- a/src/glsl/builtin_variables.h +++ b/src/glsl/builtin_variables.h @@ -105,5 +105,6 @@ static const builtin_variable builtin_110_deprecated_uniforms[] = { /* Mesa-internal ATI_envmap_bumpmap state. */ { ir_var_uniform, -1, "vec2", "gl_MESABumpRotMatrix0"}, { ir_var_uniform, -1, "vec2", "gl_MESABumpRotMatrix1"}, + { ir_var_uniform, -1, "vec4", "gl_MESAFogParamsOptimized"}, }; |