Allowed setting uniforms in shader
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user