Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Black Dragon Viewer
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
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
NiranV
Black Dragon Viewer
Commits
a164daad
Commit
a164daad
authored
5 years ago
by
Michael Pohoreski (Ptolemy Linden)
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup comments
parent
bd761b08
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/app_settings/shaders/class1/deferred/materialF.glsl
+5
-4
5 additions, 4 deletions
...wview/app_settings/shaders/class1/deferred/materialF.glsl
with
5 additions
and
4 deletions
indra/newview/app_settings/shaders/class1/deferred/materialF.glsl
+
5
−
4
View file @
a164daad
...
...
@@ -276,7 +276,11 @@ void main()
final_color
.
a
=
max
(
final_color
.
a
,
emissive_brightness
);
// SL-11406 Fullbright: Object > Texture > Shininess > Environment Intensity = 1
// Texture
// [x] Full Bright Object
// Shininess (specular)
// [X] Texture
// Environment Intensity = 1
// NOTE: There are two shaders that are used depending on the EI byte value:
// EI = 0 fullbright
// EI > 0 .. 255 material
...
...
@@ -329,9 +333,6 @@ void main()
float
da
=
dot
(
norm
.
xyz
,
normalize
(
light_dir
.
xyz
));
// Dot product is guaranteed to be in -1 <= da <= +1 range for normalized vectors
// da = clamp(da, -1.0, 1.0);
float
final_da
=
clamp
(
da
,
0
.
0
,
1
.
0
);
float
ambient
=
da
;
...
...
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