Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
8994e8fd
Commit
8994e8fd
authored
Nov 23, 2017
by
Weizhen Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clamped shinines value to 128
parent
1275ee2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libs_required/ACG/GL/GLState.cc
libs_required/ACG/GL/GLState.cc
+3
-3
No files found.
libs_required/ACG/GL/GLState.cc
View file @
8994e8fd
...
@@ -758,13 +758,13 @@ void GLState::set_overlay_color(const Vec4f& _col)
...
@@ -758,13 +758,13 @@ void GLState::set_overlay_color(const Vec4f& _col)
void
GLState
::
set_shininess
(
float
_shininess
)
void
GLState
::
set_shininess
(
float
_shininess
)
{
{
shininess_
=
_shininess
;
shininess_
=
_shininess
;
if
(
updateGL_
&&
compatibilityProfile_
)
if
(
updateGL_
&&
compatibilityProfile_
)
{
{
makeCurrent
();
makeCurrent
();
glMaterialf
(
GL_FRONT_AND_BACK
,
GL_SHININESS
,
_shininess
);
glMaterialf
(
GL_FRONT_AND_BACK
,
GL_SHININESS
,
std
::
min
(
128.
f
,
_shininess
)
)
;
}
}
}
}
...
...
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