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
Type-OpenMesh
Commits
75898782
Commit
75898782
authored
Mar 21, 2018
by
Jan Möbius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'featureCoreProfile' into 'master'
Core Profile support See merge request
!2
parents
8698692f
99088161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
ObjectTypes/MeshObject/MeshObjectT.cc
ObjectTypes/MeshObject/MeshObjectT.cc
+7
-6
No files found.
ObjectTypes/MeshObject/MeshObjectT.cc
View file @
75898782
...
...
@@ -226,12 +226,13 @@
std
::
string
shaderDirectory
=
std
::
string
(
shaderDir
.
toUtf8
()
);
shaderNode_
->
setShaderDir
(
shaderDirectory
);
if
(
QFile
(
shaderDir
+
"Phong/Vertex.glsl"
).
exists
()
&&
QFile
(
shaderDir
+
"Phong/Fragment.glsl"
).
exists
()
)
shaderNode_
->
setShader
(
ACG
::
SceneGraph
::
DrawModes
::
SOLID_PHONG_SHADED
,
"Phong/Vertex.glsl"
,
"Phong/Fragment.glsl"
);
else
std
::
cerr
<<
"Shader Files for Phong not found!"
<<
std
::
endl
;
if
(
!
OpenFlipper
::
Options
::
coreProfile
())
{
if
(
QFile
(
shaderDir
+
"Phong/Vertex.glsl"
).
exists
()
&&
QFile
(
shaderDir
+
"Phong/Fragment.glsl"
).
exists
()
)
shaderNode_
->
setShader
(
ACG
::
SceneGraph
::
DrawModes
::
SOLID_PHONG_SHADED
,
"Phong/Vertex.glsl"
,
"Phong/Fragment.glsl"
);
else
std
::
cerr
<<
"Shader Files for Phong not found!"
<<
std
::
endl
;
}
// Node showing selection
statusNode_
=
new
ACG
::
SceneGraph
::
SelectionNodeT
<
MeshT
>
(
*
mesh_
,
0
,
"NEW StatusNode for mesh "
);
...
...
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