From fa934b45f4d17495952303c2981dc1e21cb978f1 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 5 Oct 2024 12:52:04 +1000 Subject: Remove more examples --- examples/example_scene.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 examples/example_scene.h (limited to 'examples/example_scene.h') diff --git a/examples/example_scene.h b/examples/example_scene.h deleted file mode 100644 index eb0be18..0000000 --- a/examples/example_scene.h +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once -#include "render_types.h" - -const vec3 pointlight_positions[4] = { - { 0.7, 0.2, 2.0 }, - { 2.3, -3.3, -4.0 }, - { -4.0, 2.0, -12.0 }, - { 0.0, 0.0, -3.0 }, -}; -static point_light point_lights[4]; - -static scene make_default_scene() { - directional_light dir_light = { .direction = (vec3){ -0.2, -1.0, -0.3 }, - .ambient = (vec3){ 0.2, 0.2, 0.2 }, - .diffuse = (vec3){ 0.5, 0.5, 0.5 }, - .specular = (vec3){ 1.0, 1.0, 1.0 } }; - - for (int i = 0; i < 4; i++) { - point_lights[i].position = pointlight_positions[i]; - point_lights[i].ambient = (vec3){ 0.05, 0.05, 0.05 }; - point_lights[i].diffuse = (vec3){ 0.8, 0.8, 0.8 }; - point_lights[i].specular = (vec3){ 1.0, 1.0, 1.0 }; - point_lights[i].constant = 1.0; - point_lights[i].linear = 0.09; - point_lights[i].quadratic = 0.032; - } - - scene our_scene = { .dir_light = dir_light, .n_point_lights = 4 }; - memcpy(&our_scene.point_lights, &point_lights, sizeof(point_light[4])); - return our_scene; -} \ No newline at end of file -- cgit v1.2.3-70-g09d2