From 1a721b98caf7559f4a18baa8d3b92269e8f1f6ce Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Fri, 30 Jan 2026 19:12:03 -0600 Subject: Add basic block textures - Remove the code that sent colors through uniform variables, instead send texture data - Each vertex now has a texture coordinate - struct texture is a easy way to represent textures, can be extended later - Shaders updated to use textures --- src/engine.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/engine.h') diff --git a/src/engine.h b/src/engine.h index 92689dd..3248d40 100644 --- a/src/engine.h +++ b/src/engine.h @@ -15,6 +15,7 @@ struct engine { struct window* window; struct shader* shader; struct camera* camera; + struct texture* texture; int game_loop; int curr_chunk[2]; struct world* world; -- cgit