mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
testing: Bug fix: Lack of uniform variables
This commit is contained in:
parent
718273c2d7
commit
692460c5aa
@ -233,16 +233,20 @@ func defaultProgram() shaderir.Program {
|
|||||||
Length: graphics.ShaderImageNum,
|
Length: graphics.ShaderImageNum,
|
||||||
Sub: []shaderir.Type{{Main: shaderir.Vec2}},
|
Sub: []shaderir.Type{{Main: shaderir.Vec2}},
|
||||||
}
|
}
|
||||||
|
// Destination region origin
|
||||||
|
p.Uniforms[2] = shaderir.Type{Main: shaderir.Vec2}
|
||||||
|
// Destination region size
|
||||||
|
p.Uniforms[3] = shaderir.Type{Main: shaderir.Vec2}
|
||||||
// Source texture offsets
|
// Source texture offsets
|
||||||
p.Uniforms[2] = shaderir.Type{
|
p.Uniforms[4] = shaderir.Type{
|
||||||
Main: shaderir.Array,
|
Main: shaderir.Array,
|
||||||
Length: graphics.ShaderImageNum - 1,
|
Length: graphics.ShaderImageNum - 1,
|
||||||
Sub: []shaderir.Type{{Main: shaderir.Vec2}},
|
Sub: []shaderir.Type{{Main: shaderir.Vec2}},
|
||||||
}
|
}
|
||||||
// Source region origin
|
// Source region origin
|
||||||
p.Uniforms[3] = shaderir.Type{Main: shaderir.Vec2}
|
p.Uniforms[5] = shaderir.Type{Main: shaderir.Vec2}
|
||||||
// Source region size
|
// Source region size
|
||||||
p.Uniforms[4] = shaderir.Type{Main: shaderir.Vec2}
|
p.Uniforms[6] = shaderir.Type{Main: shaderir.Vec2}
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user