diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-11 23:12:59 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-11 23:12:59 +1000 |
commit | 3a151b1d1f99b59dfd6d98c1e7520b48b57d6f5e (patch) | |
tree | aecbe2462529eae01dc16b54d529548e8ae870e9 /examples | |
parent | b03bde3d412148cd573f5f14012cdd270f309947 (diff) |
plane,cube,sphere
Diffstat (limited to 'examples')
-rw-r--r-- | examples/game_demo/game_demo.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 |