Polygon-mode, better shader-compile-error log, material variable 'casts_shadow'
This commit is contained in:
@@ -14,10 +14,11 @@ Material :: struct {
|
||||
|
||||
uniforms: []Uniform,
|
||||
|
||||
casts_shadow: bool,
|
||||
uv_scale: [2]f32, // TODO: SS - Move?
|
||||
}
|
||||
|
||||
create_material :: proc(program: ^Shader_Program, textures: []^Texture, uniforms: []Uniform) -> (Material, bool) {
|
||||
create_material :: proc(program: ^Shader_Program, textures: []^Texture, uniforms: []Uniform, casts_shadow: bool) -> (Material, bool) {
|
||||
m: Material
|
||||
m.shader_program = program
|
||||
|
||||
@@ -43,6 +44,7 @@ create_material :: proc(program: ^Shader_Program, textures: []^Texture, uniforms
|
||||
|
||||
|
||||
m.uniforms = uniforms
|
||||
m.casts_shadow = casts_shadow
|
||||
m.uv_scale = { 1.0, 1.0 } // NOTE: SS - Hardcoded.
|
||||
|
||||
return m, true
|
||||
|
||||
Reference in New Issue
Block a user