Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OpenGL
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository 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
Show more breadcrumbs
C-Fu
OpenGL
Commits
49585945
Commit
49585945
authored
8 years ago
by
Anakin
Browse files
Options
Downloads
Patches
Plain Diff
fixed too high specular,
updated preview.jpg
parent
67657061
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
QtMeshViewer/Resources/fshader.glsl
+3
-3
3 additions, 3 deletions
QtMeshViewer/Resources/fshader.glsl
preview.jpg
+0
-0
0 additions, 0 deletions
preview.jpg
with
3 additions
and
3 deletions
QtMeshViewer/Resources/fshader.glsl
+
3
−
3
View file @
49585945
...
...
@@ -70,8 +70,8 @@ void main()
mat3
tbn
=
transpose
(
mat3
(
surfaceTangent
,
surfaceBitangent
,
surfaceNormal
));
normal
=
texture2D
(
tx1
,
v_surfaceUV
).
rgb
;
normal
=
normalize
(
normal
*
2
.
0
-
1
.
0
);
surfaceToLight
=
tbn
*
surfaceToLight
;
surfaceToCamera
=
tbn
*
surfaceToCamera
;
surfaceToLight
=
normalize
(
tbn
*
surfaceToLight
)
;
surfaceToCamera
=
normalize
(
tbn
*
surfaceToCamera
)
;
}
...
...
@@ -98,7 +98,7 @@ void main()
float
specularWeight
=
1
;
if
(
material
.
hasSpecularmap
)
specularWeight
=
surfaceColor
.
a
;
vec3
specColor
=
specularWeight
*
material
.
specularColor
;
vec3
specColor
=
specularWeight
*
1
/
255
*
material
.
specularColor
;
vec3
specular
=
specularCoefficient
*
specColor
*
light
.
intensities
;
...
...
This diff is collapsed.
Click to expand it.
preview.jpg
+
0
−
0
View replaced file @
67657061
View file @
49585945
49.6 KiB
|
W:
|
H:
45.9 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
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