Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
dc630617
Commit
dc630617
authored
11 years ago
by
Graham Linden
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llrender/llrendertarget.cpp
+1
-1
1 addition, 1 deletion
indra/llrender/llrendertarget.cpp
indra/newview/app_settings/shaders/class1/lighting/lightAlphaMaskF.glsl
+2
-2
2 additions, 2 deletions
...app_settings/shaders/class1/lighting/lightAlphaMaskF.glsl
with
3 additions
and
3 deletions
indra/llrender/llrendertarget.cpp
+
1
−
1
View file @
dc630617
...
@@ -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
)
{
{
...
...
This diff is collapsed.
Click to expand it.
indra/newview/app_settings/shaders/class1/lighting/lightAlphaMaskF.glsl
+
2
−
2
View file @
dc630617
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment