summaryrefslogtreecommitdiff
path: root/gfx/src/scene/mesh_impl.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2023-01-04 15:46:22 -0800
committer3gg <3gg@shellblade.net>2023-01-04 15:46:22 -0800
commit27ff505b6daaf5b0ec5f6af422f727a032f83c6b (patch)
treeca005986bfd02b760e2e8363627258f37f4de320 /gfx/src/scene/mesh_impl.h
parent1e3fcf5b38d67fb54102786be74af42be5c6792f (diff)
Move ShaderProgram from Material to Mesh in preparation for shader permutations.
Diffstat (limited to 'gfx/src/scene/mesh_impl.h')
-rw-r--r--gfx/src/scene/mesh_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/src/scene/mesh_impl.h b/gfx/src/scene/mesh_impl.h
index 858b147..560b77e 100644
--- a/gfx/src/scene/mesh_impl.h
+++ b/gfx/src/scene/mesh_impl.h
@@ -5,6 +5,7 @@
5typedef struct Mesh { 5typedef struct Mesh {
6 const Geometry* geometry; 6 const Geometry* geometry;
7 const Material* material; 7 const Material* material;
8 ShaderProgram* shader;
8} Mesh; 9} Mesh;
9 10
10// TODO: a mesh_render() that takes a transform, applies the material and the 11// TODO: a mesh_render() that takes a transform, applies the material and the