Exemplo n.º 1
0
 public void bind()
 {
     myViewport.apply();
     if (myIsDebugging == true)
     {
         DebugRenderer.addFrustum(myClipMatrix, Color4.White, false, 0.0);
         Renderer.device.bindUniformBuffer(myDebugCamera.myCameraUniformBuffer.id, 0);                 //camera is always ubo 0
     }
     else
     {
         Renderer.device.bindUniformBuffer(myCameraUniformBuffer.id, 0);                 //camera is always ubo 0
     }
 }
Exemplo n.º 2
0
 public void debugFrustum()
 {
     DebugRenderer.addFrustum(myClipMatrix, Color4.White, false, 60.0);
 }