summaryrefslogtreecommitdiff
path: root/src/example/03_texture.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-12-15 18:43:39 +0800
committerchai <chaifix@163.com>2019-12-15 18:43:39 +0800
commit6d5afcc8380ee9159d3e6c406c9184b22f14e81d (patch)
tree868a0b01bf7589af123de803e2c7cb58744f8f05 /src/example/03_texture.c
parent7da5ed50d803e94518fcb6acdd8083710e0eb77e (diff)
*misc
Diffstat (limited to 'src/example/03_texture.c')
-rw-r--r--src/example/03_texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/example/03_texture.c b/src/example/03_texture.c
index 50a96a1..781bf6b 100644
--- a/src/example/03_texture.c
+++ b/src/example/03_texture.c
@@ -111,12 +111,12 @@ void ondrawtexture(void*data) {
ssr_bindvertices(mech_mesh->vertices, mech_mesh->verts_count, mech_mesh->triangles, mech_mesh->tris_count);
ssr_draw(PRIMITIVE_TRIANGLE);
- ssr_setuniformtex(0, yingham_albedo);
- ssr_bindvertices(yingham_mesh->vertices, yingham_mesh->verts_count, yingham_mesh->triangles, yingham_mesh->tris_count);
- ssr_draw(PRIMITIVE_TRIANGLE);
-
ssr_setuniformtex(0, ground_albedo);
ssr_bindvertices(ground_mesh->vertices, ground_mesh->verts_count, ground_mesh->triangles, ground_mesh->tris_count);
ssr_draw(PRIMITIVE_TRIANGLE);
+ ssr_setuniformtex(0, yingham_albedo);
+ ssr_bindvertices(yingham_mesh->vertices, yingham_mesh->verts_count, yingham_mesh->triangles, yingham_mesh->tris_count);
+ ssr_draw(PRIMITIVE_TRIANGLE);
+
}