diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-23 20:22:08 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-23 20:53:25 +0200 |
commit | 638c775707240d365432ed910a88a3cbf545a130 (patch) | |
tree | f8656d0ff8c7074764fab353c81b02f449c6e3fe /engine/vertex_data.glsl | |
parent | eb270458de24c7346adc1ab0a4fe1c409a2008ae (diff) |
refactor(engine): pass vertex data as struct to calc_point_light
Diffstat (limited to 'engine/vertex_data.glsl')
-rw-r--r-- | engine/vertex_data.glsl | 11 |
1 files changed, 11 insertions, 0 deletions
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 |