Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
Type-OpenMesh
Commits
99088161
Commit
99088161
authored
Sep 25, 2017
by
Martin Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only use old phon shader implementation, when compatibility context is used
parent
8698692f
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 @
99088161
...
...
@@ -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