Work on passes/pipeline, render targets

This commit is contained in:
2026-01-26 20:45:29 +01:00
parent 6b2d76bd8a
commit bd4b81d434
7 changed files with 764 additions and 160 deletions

View File

@@ -1,7 +1,16 @@
package renderer
Material :: struct {
shader_program: Shader_Program,
texture: Texture, // Diffuse, normal etc later.
// 'Name'?
shader_program: ^Shader_Program,
texture: ^Texture, // Diffuse, normal etc later.
// uniforms, textures, etc.
}
create_material :: proc(program: ^Shader_Program, texture0: ^Texture) -> (Material, bool) {
m: Material
m.shader_program = program
m.texture = texture0
return m, true
}