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
8de09e47
Commit
8de09e47
authored
11 years ago
by
Graham Linden
Browse files
Options
Downloads
Plain Diff
Merge
parents
62011c28
be6007e1
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/newview/lldrawpoolalpha.cpp
+22
-5
22 additions, 5 deletions
indra/newview/lldrawpoolalpha.cpp
indra/newview/lldrawpoolalpha.h
+1
-1
1 addition, 1 deletion
indra/newview/lldrawpoolalpha.h
with
23 additions
and
6 deletions
indra/newview/lldrawpoolalpha.cpp
+
22
−
5
View file @
8de09e47
...
...
@@ -105,7 +105,7 @@ void LLDrawPoolAlpha::beginPostDeferredPass(S32 pass)
}
else
{
simple_shader
=
&
gDeferredAlphaProgram
;
simple_shader
=
&
gDeferredAlphaProgram
;
fullbright_shader
=
&
gDeferredFullbrightProgram
;
}
...
...
@@ -287,11 +287,11 @@ void LLDrawPoolAlpha::render(S32 pass)
if
(
mVertexShaderLevel
>
0
)
{
renderAlpha
(
getVertexDataMask
()
|
LLVertexBuffer
::
MAP_TEXTURE_INDEX
|
LLVertexBuffer
::
MAP_TANGENT
|
LLVertexBuffer
::
MAP_TEXCOORD1
|
LLVertexBuffer
::
MAP_TEXCOORD2
);
renderAlpha
(
getVertexDataMask
()
|
LLVertexBuffer
::
MAP_TEXTURE_INDEX
|
LLVertexBuffer
::
MAP_TANGENT
|
LLVertexBuffer
::
MAP_TEXCOORD1
|
LLVertexBuffer
::
MAP_TEXCOORD2
,
pass
);
}
else
{
renderAlpha
(
getVertexDataMask
());
renderAlpha
(
getVertexDataMask
()
,
pass
);
}
gGL
.
setColorMask
(
true
,
false
);
...
...
@@ -363,7 +363,7 @@ void LLDrawPoolAlpha::renderAlphaHighlight(U32 mask)
}
}
void
LLDrawPoolAlpha
::
renderAlpha
(
U32
mask
)
void
LLDrawPoolAlpha
::
renderAlpha
(
U32
mask
,
S32
pass
)
{
BOOL
initialized_lighting
=
FALSE
;
BOOL
light_enabled
=
TRUE
;
...
...
@@ -396,6 +396,23 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask)
continue
;
}
// Fix for bug - NORSPEC-271
// If the face is more than 90% transparent, then don't update the Depth buffer for Dof
// We don't want the nearly invisible objects to cause of DoF effects
if
(
pass
==
1
)
{
LLFace
*
face
=
params
.
mFace
;
if
(
face
)
{
const
LLTextureEntry
*
tep
=
face
->
getTextureEntry
();
if
(
tep
)
{
if
(
tep
->
getColor
().
mV
[
3
]
<
0.1
f
)
continue
;
}
}
}
LLRenderPass
::
applyModelMatrix
(
params
);
LLMaterial
*
mat
=
NULL
;
...
...
@@ -559,7 +576,7 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask)
gPipeline
.
addTrianglesDrawn
(
params
.
mCount
,
params
.
mDrawMode
);
// If this alpha mesh has glow, then draw it a second time to add the destination-alpha (=glow). Interleaving these state-changing calls could be expensive, but glow must be drawn Z-sorted with alpha.
if
(
current_shader
&&
if
(
current_shader
&&
!
LLPipeline
::
sImpostorRender
&&
draw_glow_for_this_partition
&&
params
.
mVertexBuffer
->
hasDataType
(
LLVertexBuffer
::
TYPE_EMISSIVE
))
...
...
This diff is collapsed.
Click to expand it.
indra/newview/lldrawpoolalpha.h
+
1
−
1
View file @
8de09e47
...
...
@@ -63,7 +63,7 @@ class LLDrawPoolAlpha: public LLRenderPass
/*virtual*/
void
prerender
();
void
renderGroupAlpha
(
LLSpatialGroup
*
group
,
U32
type
,
U32
mask
,
BOOL
texture
=
TRUE
);
void
renderAlpha
(
U32
mask
);
void
renderAlpha
(
U32
mask
,
S32
pass
);
void
renderAlphaHighlight
(
U32
mask
);
static
BOOL
sShowDebugAlpha
;
...
...
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