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
90c2be46
Commit
90c2be46
authored
11 years ago
by
David Parks
Browse files
Options
Downloads
Patches
Plain Diff
NORSPEC-145 Fix for improper rendering of glow pass for rigged meshes.
parent
73404da2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/app_settings/shaders/class1/objects/emissiveSkinnedV.glsl
+2
-0
2 additions, 0 deletions
...app_settings/shaders/class1/objects/emissiveSkinnedV.glsl
indra/newview/lldrawpoolavatar.cpp
+24
-15
24 additions, 15 deletions
indra/newview/lldrawpoolavatar.cpp
with
26 additions
and
15 deletions
indra/newview/app_settings/shaders/class1/objects/emissiveSkinnedV.glsl
+
2
−
0
View file @
90c2be46
...
@@ -48,6 +48,8 @@ void main()
...
@@ -48,6 +48,8 @@ void main()
mat
=
modelview_matrix
*
mat
;
mat
=
modelview_matrix
*
mat
;
vec3
pos
=
(
mat
*
vec4
(
position
.
xyz
,
1
.
0
)).
xyz
;
vec3
pos
=
(
mat
*
vec4
(
position
.
xyz
,
1
.
0
)).
xyz
;
vertex_color
=
emissive
;
calcAtmospherics
(
pos
.
xyz
);
calcAtmospherics
(
pos
.
xyz
);
gl_Position
=
projection_matrix
*
vec4
(
pos
,
1
.
0
);
gl_Position
=
projection_matrix
*
vec4
(
pos
,
1
.
0
);
...
...
This diff is collapsed.
Click to expand it.
indra/newview/lldrawpoolavatar.cpp
+
24
−
15
View file @
90c2be46
...
@@ -252,10 +252,11 @@ void LLDrawPoolAvatar::beginPostDeferredPass(S32 pass)
...
@@ -252,10 +252,11 @@ void LLDrawPoolAvatar::beginPostDeferredPass(S32 pass)
case
4
:
case
4
:
beginRiggedFullbrightAlpha
();
beginRiggedFullbrightAlpha
();
break
;
break
;
case
5
:
case
9
:
beginRiggedGlow
();
beginRiggedGlow
();
break
;
default:
default:
beginDeferredRiggedMaterialAlpha
(
pass
-
6
);
beginDeferredRiggedMaterialAlpha
(
pass
-
5
);
break
;
break
;
}
}
}
}
...
@@ -368,14 +369,14 @@ void LLDrawPoolAvatar::renderPostDeferred(S32 pass)
...
@@ -368,14 +369,14 @@ void LLDrawPoolAvatar::renderPostDeferred(S32 pass)
13
,
//rigged glow
13
,
//rigged glow
};
};
pass
=
actual_pass
[
pass
];
S32
p
=
actual_pass
[
pass
];
if
(
LLPipeline
::
sImpostorRender
)
if
(
LLPipeline
::
sImpostorRender
)
{
//HACK for impostors so actual pass ends up being proper pass
{
//HACK for impostors so actual pass ends up being proper pass
p
ass
-=
2
;
p
-=
2
;
}
}
render
(
p
ass
);
render
(
p
);
}
}
...
@@ -1299,20 +1300,28 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
...
@@ -1299,20 +1300,28 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
return
;
return
;
}
}
S32
p
=
0
;
if
(
LLPipeline
::
sRenderDeferred
)
switch
(
pass
)
{
{
case
9
:
p
=
1
;
break
;
S32
p
=
0
;
case
10
:
p
=
5
;
break
;
switch
(
pass
)
case
11
:
p
=
9
;
break
;
{
case
12
:
p
=
13
;
break
;
case
9
:
p
=
1
;
break
;
}
case
10
:
p
=
5
;
break
;
case
11
:
p
=
9
;
break
;
case
12
:
p
=
13
;
break
;
}
{
LLGLEnable
blend
(
GL_BLEND
);
renderDeferredRiggedMaterial
(
avatarp
,
p
);
}
return
;
}
else
if
(
pass
==
9
)
{
{
LLGLEnable
blend
(
GL_BLEND
);
renderRiggedGlow
(
avatarp
);
re
nderDeferredRiggedMaterial
(
avatarp
,
p
)
;
re
turn
;
}
}
return
;
}
}
if
(
pass
==
13
)
if
(
pass
==
13
)
...
...
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