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
fb451f14
Commit
fb451f14
authored
3 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix macOS shader linking for alpha blend materials
parent
e0e1e9fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/app_settings/shaders/class1/deferred/materialV.glsl
+8
-0
8 additions, 0 deletions
...wview/app_settings/shaders/class1/deferred/materialV.glsl
with
8 additions
and
0 deletions
indra/newview/app_settings/shaders/class1/deferred/materialV.glsl
+
8
−
0
View file @
fb451f14
...
...
@@ -39,6 +39,10 @@ uniform mat4 modelview_projection_matrix;
#if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_BLEND)
// forwards
void
setAtmosAttenuation
(
vec3
c
);
void
setAdditiveColor
(
vec3
c
);
#if !defined(HAS_SKIN)
uniform
mat4
modelview_matrix
;
#endif
...
...
@@ -137,6 +141,10 @@ vary_normal = n;
vertex_color
=
diffuse_color
;
#if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_BLEND)
// appease OSX GLSL compiler/linker by touching all the varyings we said we would
setAtmosAttenuation
(
vec3
(
1
));
setAdditiveColor
(
vec3
(
0
));
#if !defined(HAS_SKIN)
vary_position
=
(
modelview_matrix
*
vec4
(
position
.
xyz
,
1
.
0
)).
xyz
;
#endif
...
...
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