bkaradzic 12 年之前
父節點
當前提交
3dc932d599
共有 2 個文件被更改,包括 351 次插入404 次删除
  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];

文件差異過大導致無法顯示
+ 351 - 392
examples/14-shadowvolumes/shadowvolumes.cpp


部分文件因文件數量過多而無法顯示