diff options
author | quou <quou@disroot.org> | 2025-01-05 17:57:08 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-05 17:57:08 +1100 |
commit | d2c4c385df2594a5d4369f2af2f6a7b5d66bdd8c (patch) | |
tree | ed0ee1316cfdf783c05dbd245990807332ed0a46 /c2.cpp | |
parent | 12173bbc77b233997afcc96dede9b292babc7911 (diff) |
basic pbr
Diffstat (limited to 'c2.cpp')
-rw-r--r-- | c2.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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(); |