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
1a6eee4e
Commit
1a6eee4e
authored
2 years ago
by
David Parks
Browse files
Options
Downloads
Patches
Plain Diff
SL-17321 Fix for some particle systems with custom blend functions not rendering.
parent
da6f4204
No related branches found
No related tags found
1 merge request
!83
Merge Linden 6.6.7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/lldrawpoolalpha.cpp
+15
-0
15 additions, 0 deletions
indra/newview/lldrawpoolalpha.cpp
with
15 additions
and
0 deletions
indra/newview/lldrawpoolalpha.cpp
+
15
−
0
View file @
1a6eee4e
...
...
@@ -717,6 +717,16 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask, bool depth_only, bool rigged)
LLGLEnableFunc
stencil_test
(
GL_STENCIL_TEST
,
params
.
mSelected
,
&
LLGLCommonFunc
::
selected_stencil_test
);
gGL
.
blendFunc
((
LLRender
::
eBlendFactor
)
params
.
mBlendFuncSrc
,
(
LLRender
::
eBlendFactor
)
params
.
mBlendFuncDst
,
mAlphaSFactor
,
mAlphaDFactor
);
bool
reset_minimum_alpha
=
false
;
if
(
!
LLPipeline
::
sImpostorRender
&&
params
.
mBlendFuncDst
!=
LLRender
::
BF_SOURCE_ALPHA
&&
params
.
mBlendFuncSrc
!=
LLRender
::
BF_SOURCE_ALPHA
)
{
// this draw call has a custom blend function that may require rendering of "invisible" fragments
current_shader
->
setMinimumAlpha
(
0.
f
);
reset_minimum_alpha
=
true
;
}
U32
drawMask
=
mask
;
if
(
params
.
mFullbright
)
{
...
...
@@ -729,6 +739,11 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask, bool depth_only, bool rigged)
params
.
mVertexBuffer
->
setBufferFast
(
drawMask
);
params
.
mVertexBuffer
->
drawRangeFast
(
params
.
mDrawMode
,
params
.
mStart
,
params
.
mEnd
,
params
.
mCount
,
params
.
mOffset
);
if
(
reset_minimum_alpha
)
{
current_shader
->
setMinimumAlpha
(
MINIMUM_ALPHA
);
}
}
// If this alpha mesh has glow, then draw it a second time to add the destination-alpha (=glow). Interleaving these state-changing calls is expensive, but glow must be drawn Z-sorted with alpha.
...
...
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