Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
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
JennaHuntsman
XDG Integration
Commits
47be24e4
Commit
47be24e4
authored
1 year ago
by
David Parks
Browse files
Options
Downloads
Patches
Plain Diff
SL-19835 Followup -- fix for emissive alpha objects blocking water rendering
parent
3305fbe1
No related branches found
Branches containing commit
No related tags found
2 merge requests
!3
Update to main branch
,
!2
Rebase onto current main branch
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/app_settings/shaders/class3/deferred/materialF.glsl
+0
-19
0 additions, 19 deletions
...wview/app_settings/shaders/class3/deferred/materialF.glsl
indra/newview/lldrawpoolalpha.cpp
+1
-3
1 addition, 3 deletions
indra/newview/lldrawpoolalpha.cpp
with
1 addition
and
22 deletions
indra/newview/app_settings/shaders/class3/deferred/materialF.glsl
+
0
−
19
View file @
47be24e4
...
...
@@ -353,24 +353,6 @@ void main()
float
glare
=
0
.
0
;
#if 0 //wrong implementation
if (glossiness > 0.0) // specular reflection
{
float sa = dot(normalize(refnormpersp), light_dir.xyz);
vec3 dumbshiny = sunlit_linear * shadow * (texture(lightFunc, vec2(sa, glossiness)).r);
// add the two types of shiny together
vec3 spec_contrib = dumbshiny * spec.rgb;
bloom = dot(spec_contrib, spec_contrib) / 6;
glare = max(spec_contrib.r, spec_contrib.g);
glare = max(glare, spec_contrib.b);
color += spec_contrib;
applyGlossEnv(color, glossenv, spec, pos.xyz, norm.xyz);
}
#else
//right implementation ported from pointLightF.glsl
if
(
glossiness
>
0
.
0
)
{
vec3
lv
=
light_dir
.
xyz
;
...
...
@@ -395,7 +377,6 @@ void main()
// add radiance map
applyGlossEnv
(
color
,
glossenv
,
spec
,
pos
.
xyz
,
norm
.
xyz
);
}
#endif
color
=
mix
(
color
.
rgb
,
legacy_adjust_fullbright
(
diffcol
.
rgb
),
emissive
);
...
...
This diff is collapsed.
Click to expand it.
indra/newview/lldrawpoolalpha.cpp
+
1
−
3
View file @
47be24e4
...
...
@@ -649,8 +649,6 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask, bool depth_only, bool rigged)
bool
is_particle_or_hud_particle
=
group
->
getSpatialPartition
()
->
mPartitionType
==
LLViewerRegion
::
PARTITION_PARTICLE
||
group
->
getSpatialPartition
()
->
mPartitionType
==
LLViewerRegion
::
PARTITION_HUD_PARTICLE
;
bool
draw_glow_for_this_partition
=
mShaderLevel
>
0
;
// no shaders = no glow.
bool
disable_cull
=
is_particle_or_hud_particle
;
LLGLDisable
cull
(
disable_cull
?
GL_CULL_FACE
:
0
);
...
...
@@ -818,7 +816,7 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask, bool depth_only, bool rigged)
}
// 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.
if
(
draw_glow_for_this_partition
&&
if
(
getType
()
!=
LLDrawPool
::
POOL_ALPHA_PRE_WATER
&&
params
.
mVertexBuffer
->
hasDataType
(
LLVertexBuffer
::
TYPE_EMISSIVE
))
{
if
(
params
.
mAvatar
!=
nullptr
)
...
...
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