Changeset 2814 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 07/04/08 01:32:30 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2813 r2814 98 98 99 99 // rendertexture 100 //const static int texWidth = 1024;101 //const static int texHeight = 768;102 const static int texWidth = 2048;103 const static int texHeight = 2048;100 const static int texWidth = 1024; 101 const static int texHeight = 768; 102 //const static int texWidth = 2048; 103 //const static int texHeight = 2048; 104 104 105 105 int renderedObjects = 0; … … 1802 1802 #else 1803 1803 void CreateNoiseTex2D() 1804 {int w=256; 1805 int h=256; 1804 { 1806 1805 GLubyte *data = new GLubyte[texWidth * texHeight * 4]; 1807 1806 … … 1812 1811 const float theta = 2.0f * acos(sqrt(1.0f - rx)); 1813 1812 1814 data[i + 0] = (GLubyte)(( sin(theta) * 0.5f + 0.5f) * 255.0f);1815 data[i + 1] = (GLubyte)(( cos(theta) * 0.5f + 0.5f) * 255.0f);1813 data[i + 0] = (GLubyte)((cos(theta) * 0.5f + 0.5f) * 255.0f); 1814 data[i + 1] = (GLubyte)((sin(theta) * 0.5f + 0.5f) * 255.0f); 1816 1815 data[i + 2] = 0; 1817 1816 data[i + 3] = 255;
Note: See TracChangeset
for help on using the changeset viewer.