From 3a151b1d1f99b59dfd6d98c1e7520b48b57d6f5e Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 11 Aug 2024 23:12:59 +1000 Subject: plane,cube,sphere --- examples/game_demo/game_demo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/game_demo/game_demo.c b/examples/game_demo/game_demo.c index 22af64e..1b86028 100644 --- a/examples/game_demo/game_demo.c +++ b/examples/game_demo/game_demo.c @@ -106,8 +106,10 @@ int main() { ModelExtractRenderEnts(render_entities, cube_handle, affine, REND_ENT_CASTS_SHADOWS); // Shadow_Run(entities, entity_count); - Quat rot = quat_from_axis_angle(VEC3_X, HALF_PI, true); - Immdraw_Sphere(transform_create(VEC3_ZERO, rot, 1.0), 1.0, vec4(1.0, 0.0, 0.0, 1.0), false); + // Quat rot = quat_from_axis_angle(VEC3_X, HALF_PI, true); + Immdraw_Sphere(transform_create(VEC3_ZERO, quat_ident(), 0.5), vec4(1.0, 0.0, 0.0, 1.0), false); + Immdraw_Cuboid(transform_create(vec3(2.0, 0.0, 0.0), quat_ident(), 1.0), + vec4(1.0, 0.0, 0.0, 1.0), false); // if (draw_debug) { // // draw the player model with shadows -- cgit v1.2.3-70-g09d2