summaryrefslogtreecommitdiff
path: root/c2.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-05 17:57:08 +1100
committerquou <quou@disroot.org>2025-01-05 17:57:08 +1100
commitd2c4c385df2594a5d4369f2af2f6a7b5d66bdd8c (patch)
treeed0ee1316cfdf783c05dbd245990807332ed0a46 /c2.cpp
parent12173bbc77b233997afcc96dede9b292babc7911 (diff)
basic pbr
Diffstat (limited to 'c2.cpp')
-rw-r--r--c2.cpp10
1 files changed, 5 insertions, 5 deletions
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();