- Timestamp:
- 10/10/08 09:13:32 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3019 r3020 1293 1293 1294 1294 const float minKey = 0.09f; 1295 const float maxKey = 0. 45f;1295 const float maxKey = 0.36f; 1296 1296 1297 1297 const float lightIntensity = DotProd(-light->GetDirection(), Vector3::UNIT_Z()); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Polyhedron.h
r2929 r3020 37 37 ~Polyhedron(); 38 38 /** Computes the intersection of the polyhedron with the given plane 39 and returns it as another polyhedron 39 40 @returns NULL if the geometry is not split by this plane 40 41 */ … … 42 43 /** Adds a polygon to the polyhedron. 43 44 */ 45 //void Add(const Polygon3 &poly); 46 44 47 void Add(Polygon3 *poly); 48 45 49 /** Computes bounding box of the geometry. 46 50 */ … … 70 74 */ 71 75 void CollectVertices(VertexArray &vertices) const; 72 73 inline friend std::ostream &operator<<(std::ostream &s, const Polyhedron &a);74 75 76 /** Computes polyhedron from a couple of intersecting planes and a bounding box. 76 77 */ 77 78 static Polyhedron *CreatePolyhedron(const std::vector<Plane3> &planes, const AxisAlignedBox3 &box); 79 80 inline friend std::ostream &operator<<(std::ostream &s, const Polyhedron &a); 81 78 82 79 83 protected: -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.h
r3019 r3020 10 10 11 11 12 #define _CRTDBG_MAP_ALLOC13 12 14 13 class igzstream; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SkyPreetham.cpp
r3017 r3020 344 344 345 345 // diffuse component should be more saturated (and less blueish) for high sun positions 346 diffuse.x *= 1. 2f;347 diffuse.z *= 0. 8f;346 diffuse.x *= 1.3f; 347 diffuse.z *= 0.7f; 348 348 349 349 // scale diffuse component in order to make sky look less bright in relation to -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3019 r3020 1771 1771 DEL_PTR(renderQueue); 1772 1772 DEL_PTR(perfGraph); 1773 1774 1773 DEL_PTR(fbo); 1775 1774 DEL_PTR(ssaoShader); 1776 1777 1775 DEL_PTR(light); 1778 1776 DEL_PTR(visCamera); 1779 1780 1777 DEL_PTR(preetham); 1781 1782 if (sCgMrtVertexProgram) 1778 DEL_PTR(shadowMap); 1779 DEL_PTR(shadowTraverser); 1780 1781 if (sCgMrtVertexProgram) 1783 1782 cgDestroyProgram(sCgMrtVertexProgram); 1783 1784 1784 if (RenderState::sCgMrtFragmentProgram) 1785 1785 cgDestroyProgram(RenderState::sCgMrtFragmentProgram); 1786 1786 1787 if (RenderState::sCgMrtFragmentTexProgram) 1787 1788 cgDestroyProgram(RenderState::sCgMrtFragmentTexProgram);
Note: See TracChangeset
for help on using the changeset viewer.