projects
/
hair
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed the order of drawing (for blending) added the data files
[hair]
/
src
/
main.cc
diff --git
a/src/main.cc
b/src/main.cc
index
c409322
..
0c5561c
100644
(file)
--- a/
src/main.cc
+++ b/
src/main.cc
@@
-159,7
+159,12
@@
static void display()
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
*/
for(size_t i=0; i<meshes.size(); i++) {
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
*/
for(size_t i=0; i<meshes.size(); i++) {
- meshes[i]->draw();
+ if(!meshes[i]->mtl.tex || meshes[i]->mtl.tex_opaque)
+ meshes[i]->draw();
+ }
+ for(size_t i=0; i<meshes.size(); i++) {
+ if(meshes[i]->mtl.tex && !meshes[i]->mtl.tex_opaque)
+ meshes[i]->draw();
}
/*
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
}
/*
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);