Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
4d9eb0a6
Commit
4d9eb0a6
authored
May 13, 2011
by
Alexander Wiebel
Browse files
[FIX] reenabled lighting from both sides. Thanks to Sebastian.
parent
449b70a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/modules/splineSurface/shaders/WMSplineSurface-fragment.glsl
...dules/splineSurface/shaders/WMSplineSurface-fragment.glsl
+2
-2
No files found.
src/modules/splineSurface/shaders/WMSplineSurface-fragment.glsl
View file @
4d9eb0a6
...
...
@@ -43,10 +43,10 @@ void main()
#endif
// do light
float
light
=
blinnPhongIlluminationIntensity
(
normalize
(
-
v_normal
)
);
float
light
=
blinnPhongIlluminationIntensity
(
normalize
(
viewAlign
(
v_normal
)
)
);
// opacity of the surface
//
col.rgb = light * col.rgb;
// TODO(wiebel): reenable lighting here
col
.
rgb
=
light
*
col
.
rgb
;
col
.
a
=
float
(
u_opacity
)
*
0
.
01
;
gl_FragColor
=
col
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment