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
5cfc336b
Commit
5cfc336b
authored
2 years ago
by
David Parks
Browse files
Options
Downloads
Patches
Plain Diff
Fix for 2-bit errors in writing to and reading from norm.w
parent
7e901e55
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
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llrender/llshadermgr.cpp
+3
-3
3 additions, 3 deletions
indra/llrender/llshadermgr.cpp
with
3 additions
and
3 deletions
indra/llrender/llshadermgr.cpp
+
3
−
3
View file @
5cfc336b
...
...
@@ -791,9 +791,9 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
// Use alpha float to store bit flags
// See: C++: addDeferredAttachment(), shader: frag_data[2]
extra_code_text
[
extra_code_count
++
]
=
strdup
(
"#define GBUFFER_FLAG_SKIP_ATMOS 0.0
\n
"
);
// atmo kill
extra_code_text
[
extra_code_count
++
]
=
strdup
(
"#define GBUFFER_FLAG_HAS_ATMOS 0.
25
\n
"
);
// bit 0
extra_code_text
[
extra_code_count
++
]
=
strdup
(
"#define GBUFFER_FLAG_HAS_PBR 0.
50
\n
"
);
// bit 1
extra_code_text
[
extra_code_count
++
]
=
strdup
(
"#define GET_GBUFFER_FLAG(flag) (
mod(floor
(norm.w
/
flag)
,2.0)>
0.
5
)
\n
"
);
extra_code_text
[
extra_code_count
++
]
=
strdup
(
"#define GBUFFER_FLAG_HAS_ATMOS 0.
34
\n
"
);
// bit 0
extra_code_text
[
extra_code_count
++
]
=
strdup
(
"#define GBUFFER_FLAG_HAS_PBR 0.
67
\n
"
);
// bit 1
extra_code_text
[
extra_code_count
++
]
=
strdup
(
"#define GET_GBUFFER_FLAG(flag) (
abs
(norm.w
-
flag)
<
0.
1
)
\n
"
);
if
(
defines
)
{
...
...
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