From d2c4c385df2594a5d4369f2af2f6a7b5d66bdd8c Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 5 Jan 2025 17:57:08 +1100 Subject: basic pbr --- c2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'c2.cpp') diff --git a/c2.cpp b/c2.cpp index 32a0d41..b19c238 100644 --- a/c2.cpp +++ b/c2.cpp @@ -429,19 +429,19 @@ extern "C" int entrypoint() { monkey->transform = m4f::translate( m4f::identity(), v3f(0.0f, 0.0f, 0.0f) - )/* * m4f::rotate( + ) * m4f::rotate( m4f::identity(), rot, raxis - )*/; + ); monkey2->transform = m4f::translate( m4f::identity(), v3f(2.0f, 0.0f, 2.0f) - )/* * m4f::rotate( + ) * m4f::rotate( m4f::identity(), rot * 2.0f, v3f(1.0f, 0.0f, 0.0f) - )*/; + ); camera.asp = (float)bb.w / (float)bb.h; camera.update(*app); scene.update(camera, dev); @@ -469,7 +469,7 @@ extern "C" int entrypoint() { ctx.debug_pop(); r += 10; - rot += 5.0f * app->dt; + rot += 1.0f * app->dt; frame++; dev->present(); app->end(); -- cgit v1.2.3-54-g00ecf