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
KennethVanhoey
CGoGN
Commits
f4446e0d
Commit
f4446e0d
authored
May 13, 2011
by
Kenneth Vanhoey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction bug dans shaderVectorPerVertex (glUniform3f à la place de 4f)
parent
e55ac7a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Utils/shaderVectorPerVertex.cpp
src/Utils/shaderVectorPerVertex.cpp
+1
-1
No files found.
src/Utils/shaderVectorPerVertex.cpp
View file @
f4446e0d
...
...
@@ -110,7 +110,7 @@ void ShaderVectorPerVertex::setScale(float scale)
void
ShaderVectorPerVertex
::
setColor
(
const
Geom
::
Vec4f
&
color
)
{
bind
();
glUniform
3
fv
(
m_uniform_color
,
1
,
color
.
data
());
glUniform
4
fv
(
m_uniform_color
,
1
,
color
.
data
());
m_color
=
color
;
}
...
...
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