Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Type-OpenVolumeMesh
Commits
8271a682
Commit
8271a682
authored
Jan 12, 2018
by
David Bommes
Browse files
enabled twosidedlighting for face coloring with flat shading
parent
3c2f82bc
Changes
1
Show whitespace changes
Inline
Side-by-side
ObjectTypes/VolumeMeshObject/VolumeMeshNodeT.cc
View file @
8271a682
...
...
@@ -656,6 +656,9 @@ void VolumeMeshNodeT<VolumeMeshT>::draw(GLState& _state, const DrawModes::DrawMo
// edge based draw mode (except edges on cells) and irregular edges
edgeDrawMode
|=
_drawMode
&
(
drawModes_
.
irregularInnerEdges
|
drawModes_
.
irregularOuterEdges
);
// enable twosided lighting for per_face_flat_shaded
if
(
faceDrawMode
&
(
drawModes_
.
facesColoredPerFaceFlatShaded
))
_state
.
set_twosided_lighting
(
true
);
if
(
cellDrawMode
)
drawCells
(
_state
,
cellDrawMode
);
...
...
Write
Preview
Supports
Markdown
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