bkaradzic 12 years ago
parent
commit
3dc932d599
2 changed files with 351 additions and 404 deletions
  1. 0 12
      examples/13-stencil/stencil.cpp
  2. 351 392
      examples/14-shadowvolumes/shadowvolumes.cpp

+ 0 - 12
examples/13-stencil/stencil.cpp

@@ -133,10 +133,6 @@ static const uint16_t s_planeIndices[s_numPlaneIndices] =
 	1, 3, 2,
 };
 
-//-------------------------------------------------
-// Helper functions
-//-------------------------------------------------
-
 static const char* s_shaderPath = NULL;
 static bool s_flipV = false;
 static uint32_t s_viewMask = 0;
@@ -216,10 +212,6 @@ static bgfx::ProgramHandle loadProgram(const char* _vsName, const char* _fsName)
 	return program;
 }
 
-//-------------------------------------------------
-// Math
-//-------------------------------------------------
-
 void mtxScaleRotateTranslate(float* _result
 							 , const float _scaleX
 							 , const float _scaleY
@@ -566,10 +558,6 @@ void submitMask(uint32_t _viewMask, int32_t _depth = 0)
 	s_viewMask |= _viewMask;
 }
 
-//-------------------------------------------------
-// Mesh
-//-------------------------------------------------
-
 struct Aabb
 {
 	float m_min[3];

File diff suppressed because it is too large
+ 351 - 392
examples/14-shadowvolumes/shadowvolumes.cpp


Some files were not shown because too many files changed in this diff