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
bbac7e9a
Commit
bbac7e9a
authored
13 years ago
by
David Parks
Browse files
Options
Downloads
Patches
Plain Diff
SH-2681 Fix for shader compiler error on GLSL 1.30 and later
parent
ab7a8560
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/llrender/llshadermgr.cpp
+1
-1
1 addition, 1 deletion
indra/llrender/llshadermgr.cpp
indra/newview/app_settings/shaders/class2/deferred/sunLightSSAOF.glsl
+1
-1
1 addition, 1 deletion
...w/app_settings/shaders/class2/deferred/sunLightSSAOF.glsl
with
2 additions
and
2 deletions
indra/llrender/llshadermgr.cpp
+
1
−
1
View file @
bbac7e9a
...
...
@@ -618,7 +618,7 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
//backwards compatibility with legacy texture lookup syntax
text
[
count
++
]
=
strdup
(
"#define textureCube texture
\n
"
);
text
[
count
++
]
=
strdup
(
"#define texture2DLod textureLod
\n
"
);
text
[
count
++
]
=
strdup
(
"#define shadow2D
texture
\n
"
);
text
[
count
++
]
=
strdup
(
"#define shadow2D
(a,b) vec2(
texture
(a,b))
\n
"
);
}
//copy preprocessor definitions into buffer
...
...
This diff is collapsed.
Click to expand it.
indra/newview/app_settings/shaders/class2/deferred/sunLightSSAOF.glsl
+
1
−
1
View file @
bbac7e9a
...
...
@@ -150,7 +150,7 @@ float pcfShadow(sampler2DShadow shadowMap, vec4 stc, float scl)
stc
.
xyz
/=
stc
.
w
;
stc
.
z
+=
spot_shadow_bias
*
scl
;
float
cs
=
shadow2D
(
shadowMap
,
stc
.
xyz
);
float
cs
=
shadow2D
(
shadowMap
,
stc
.
xyz
)
.
x
;
float
shadow
=
cs
;
vec2
off
=
1
.
5
/
proj_shadow_res
;
...
...
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