From 6add0f74e9c8a0a1b1252a8bab01a2d677555e63 Mon Sep 17 00:00:00 2001 From: iurii Date: Thu, 5 Sep 2024 23:46:40 +0300 Subject: update shader to struct --- src/main.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.odin b/src/main.odin index a21a891..ea37cc0 100644 --- a/src/main.odin +++ b/src/main.odin @@ -399,11 +399,11 @@ main :: proc() { shader.use(lighting_shader) light_color := Vec3{1.0, 1.0, 1.0} - shader.set_vec3(lighting_shader, cstring("light_color"), &light_color) material_ambient := Vec3{1.0, 0.5, 0.31} material_diffuse := Vec3{1.0, 0.5, 0.31} material_specular := Vec3{0.5, 0.5, 0.5} + shader.set_vec3(lighting_shader, cstring("light_color"), &light_color) shader.set_vec3(lighting_shader, cstring("material.ambient"), &material_ambient) shader.set_vec3(lighting_shader, cstring("material.diffuse"), &material_diffuse) shader.set_vec3(lighting_shader, cstring("material.specular"), &material_specular) -- cgit 1.4.1-2-gfad0