projects
/
summerhack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed multiple insertions of the same texture
[summerhack]
/
src
/
parts
/
temple.cpp
diff --git
a/src/parts/temple.cpp
b/src/parts/temple.cpp
index
e2a58e1
..
5db2eca
100644
(file)
--- a/
src/parts/temple.cpp
+++ b/
src/parts/temple.cpp
@@
-139,7
+139,6
@@
static void make_skycube(Scene *scene) {
for(int i=0; i<6; i++) {
Material *mat = face[i]->get_material_ptr();
mat->emissive_color = 1.0;
- add_texture(tex[i]);
mat->set_texture(tex[i], TEXTYPE_DIFFUSE);
face[i]->set_texture_addressing(TEXADDR_CLAMP);
scene->add_object(face[i]);