From b9a7166d9a7e2b0eed948353c134e72dfa86ab58 Mon Sep 17 00:00:00 2001 From: Omniscient Date: Sun, 9 Jun 2024 16:51:46 +1000 Subject: fix texture on cube with opengl --- examples/cube/ex_cube.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'examples/cube') diff --git a/examples/cube/ex_cube.c b/examples/cube/ex_cube.c index e85b5c1..8789b00 100644 --- a/examples/cube/ex_cube.c +++ b/examples/cube/ex_cube.c @@ -142,11 +142,7 @@ int main() { mvp_uniforms mvp_data = { .model = model, .view = view, .projection = proj }; my_shader_bind_group shader_bind_data = { .mvp = mvp_data, .tex = texture }; mvp_uniforms_data.data = &shader_bind_data; - /* encode_bind_shader_data(enc, 0, &mvp_uniforms_data); */ - - uniform_mat4f(enc->pipeline->shader_id, "model", &model); - uniform_mat4f(enc->pipeline->shader_id, "view", &view); - uniform_mat4f(enc->pipeline->shader_id, "projection", &proj); + encode_bind_shader_data(enc, 0, &mvp_uniforms_data); // Record draw calls draw_mesh(&cube, &model); -- cgit v1.2.3-70-g09d2