From 638c775707240d365432ed910a88a3cbf545a130 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 23 May 2024 20:22:08 +0200 Subject: refactor(engine): pass vertex data as struct to calc_point_light --- engine/vertex_data.glsl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 engine/vertex_data.glsl (limited to 'engine/vertex_data.glsl') diff --git a/engine/vertex_data.glsl b/engine/vertex_data.glsl new file mode 100644 index 0000000..486d445 --- /dev/null +++ b/engine/vertex_data.glsl @@ -0,0 +1,11 @@ +#ifndef VERTEX_DATA_GLSL +#define VERTEX_DATA_GLSL + +struct VertexData +{ + vec2 texture_coords; + vec3 world_space_pos; + vec3 world_space_normal; +}; + +#endif -- cgit v1.2.3-18-g5258