| 1 |
From: Morten Kjeldgaard <[email protected]> |
| 2 |
Subject: modification to source code |
| 3 |
|
| 4 |
|
| 5 |
--- a/src/ShadowMap.cpp |
| 6 |
+++ b/src/ShadowMap.cpp |
| 7 |
@@ -178,7 +178,7 @@ |
| 8 |
glDisable(GL_BLEND); |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
+ glActiveTextureARB(GL_TEXTURE0_ARB); glDisable(GL_TEXTURE_2D); |
| 13 |
glActiveTextureARB(GL_TEXTURE1_ARB); glEnable(GL_TEXTURE_2D); |
| 14 |
glBindTexture(GL_TEXTURE_2D, shadowTexture);*/ |
| 15 |
// glBindTexture(GL_TEXTURE_2D, shadowTexture); |
| 16 |
@@ -367,7 +367,7 @@ |
| 17 |
glDisable(GL_TEXTURE_2D); |
| 18 |
|
| 19 |
glBegin(GL_QUADS); |
| 20 |
|
| 21 |
+ for (int i=0; i < (int)atom.size(); i++) |
| 22 |
atom[i].DrawOnTexture(); |
| 23 |
glEnd(); |
| 24 |
|
| 25 |
@@ -380,7 +380,7 @@ |
| 26 |
//glDisable(GL_BLEND); |
| 27 |
//glDisable(GL_FRAGMENT_PROGRAM_ARB); |
| 28 |
glBegin(GL_QUADS); |
| 29 |
|
| 30 |
+ for (int i=0; i < (int)bond.size(); i++) bond[i].DrawOnTexture(); |
| 31 |
glEnd(); |
| 32 |
//glEnable(GL_FRAGMENT_PROGRAM_ARB); |
| 33 |
} |