Skip to content
Snippets Groups Projects
Commit dc630617 authored by Graham Linden's avatar Graham Linden
Browse files

NORSPEC-352 for non-ALM rendering, make lighting shader with alpha masking obey vertex alpha

parent 141c34cf
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ void LLRenderTarget::resize(U32 resx, U32 resy, U32 color_fmt) ...@@ -113,7 +113,7 @@ void LLRenderTarget::resize(U32 resx, U32 resy, U32 color_fmt)
sBytesAllocated += pix_diff*4; sBytesAllocated += pix_diff*4;
} }
} }
bool LLRenderTarget::allocate(U32 resx, U32 resy, U32 color_fmt, bool depth, bool stencil, LLTexUnit::eTextureType usage, bool use_fbo, S32 samples) bool LLRenderTarget::allocate(U32 resx, U32 resy, U32 color_fmt, bool depth, bool stencil, LLTexUnit::eTextureType usage, bool use_fbo, S32 samples)
{ {
......
...@@ -41,13 +41,13 @@ void default_lighting() ...@@ -41,13 +41,13 @@ void default_lighting()
{ {
vec4 color = diffuseLookup(vary_texcoord0.xy); vec4 color = diffuseLookup(vary_texcoord0.xy);
color *= vertex_color;
if (color.a < minimum_alpha) if (color.a < minimum_alpha)
{ {
discard; discard;
} }
color.rgb *= vertex_color.rgb;
color.rgb = atmosLighting(color.rgb); color.rgb = atmosLighting(color.rgb);
color.rgb = scaleSoftClip(color.rgb); color.rgb = scaleSoftClip(color.rgb);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment