Explorar el Código

Merge branch 'master' of github.com:bkaradzic/bgfx

Branimir Karadžić hace 10 años
padre
commit
e00a3264ef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/16-shadowmaps/shadowmaps.cpp

+ 1 - 1
examples/16-shadowmaps/shadowmaps.cpp

@@ -1960,7 +1960,7 @@ int _main_(int _argc, char** _argv)
 	const float camNear    = 0.1f;
 	const float camFar     = 2000.0f;
 	const float projHeight = 1.0f/tanf(bx::toRad(camFovy)*0.5f);
-	const float projWidth  = projHeight * 1.0f/camAspect;
+	const float projWidth  = projHeight * camAspect;
 	bx::mtxProj(viewState.m_proj, camFovy, camAspect, camNear, camFar);
 	cameraGetViewMtx(viewState.m_view);