Allowed setting uniforms in shader

This commit is contained in:
2026-02-03 09:37:56 +01:00
parent 991d394098
commit 32a6d498b9
6 changed files with 267 additions and 48 deletions

View File

@@ -11,6 +11,8 @@ Material :: struct {
textures: [MATERIAL_MAX_TEXTURES]^Texture,
texture_count: u8,
uv_scale: [2]f32, // TODO: SS - Move?
}
create_material :: proc(program: ^Shader_Program, textures: []^Texture) -> (Material, bool) {
@@ -37,5 +39,7 @@ create_material :: proc(program: ^Shader_Program, textures: []^Texture) -> (Mate
// TODO: SS - Should we return false here?
}
m.uv_scale = { 2.0, 2.0 } // NOTE: SS - Hardcoded.
return m, true
}