diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2025-01-21 16:03:25 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2025-01-21 16:03:25 -0600 |
| commit | 89a8f94ac0206412c1a2d7b8766d97dbdbd36253 (patch) | |
| tree | c9ddc23d31d3c5058d3465dabb68aae7b8209138 /src/shaders/world.moon | |
| parent | 0370d64b3bd7914be55358817e52bbc8a529a7d3 (diff) | |
| download | ggj25-89a8f94ac0206412c1a2d7b8766d97dbdbd36253.tar.gz ggj25-89a8f94ac0206412c1a2d7b8766d97dbdbd36253.tar.bz2 ggj25-89a8f94ac0206412c1a2d7b8766d97dbdbd36253.zip | |
work
Diffstat (limited to 'src/shaders/world.moon')
| -rw-r--r-- | src/shaders/world.moon | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/shaders/world.moon b/src/shaders/world.moon index e9ddcc9..9fffe7a 100644 --- a/src/shaders/world.moon +++ b/src/shaders/world.moon @@ -16,7 +16,7 @@ s_mv = mat4( 1, 0, 0, 0, 0, aspect, 0, 0, 0, 0, 1, 0, - -0.5, 0.5, 0, 4 + -0.0, 0.5, 0, 4 ) p_mv = mat4( 1 / ((win.width / win.height) * math.tan(view_angle / 2)), 0, 0, 0, @@ -236,8 +236,10 @@ node = shader_shim.world\append(am.depth_test("less")\append(am.cull_face("front node\action(() => bind = self("bind") bind.time = am.current_time! - bind.world_x = math.sin(am.current_time!) * 2 - bind.world_y = math.cos(am.current_time!) * 2 + --bind.world_x = math.sin(am.current_time!) * 2 + --bind.world_y = math.cos(am.current_time!) * 2 + bind.world_x = world.world_x + bind.world_y = world.world_y ) { node: node |
