diff options
| author | Dave Parks <davep@lindenlab.com> | 2022-04-11 15:51:51 -0500 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2022-04-11 15:51:51 -0500 | 
| commit | 1d057dbba2d5f9c51a533405fea408bff5ff84df (patch) | |
| tree | c62b150b27899fa91b2714f1384f01d91539419f /indra/newview/app_settings | |
| parent | e20aafa2fe200cecf1f4d3ae31294ba0eb5ce194 (diff) | |
SL-17173 Impostor quality pass.
Diffstat (limited to 'indra/newview/app_settings')
| -rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl index 638a0f4e15..38afd82c8d 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl @@ -56,6 +56,10 @@ VARYING vec3 vary_norm;  VARYING vec4 vertex_color; //vertex color should be treated as sRGB  #endif +#ifdef FOR_IMPOSTOR +uniform float minimum_alpha; +#endif +  uniform mat4 proj_mat;  uniform mat4 inv_proj;  uniform vec2 screen_res; @@ -204,10 +208,13 @@ void main()      // Insure we don't pollute depth with invis pixels in impostor rendering      // -    if (final_alpha < 0.01) +    if (final_alpha <  minimum_alpha)      {          discard;      } + +    color.rgb = diffuse_srgb.rgb; +    color.a = final_alpha;  #else      vec3 light_dir = (sun_up_factor == 1) ? sun_dir: moon_dir; | 
