mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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,
|
||||
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
|
||||
p.Uniforms[2] = shaderir.Type{
|
||||
p.Uniforms[4] = shaderir.Type{
|
||||
Main: shaderir.Array,
|
||||
Length: graphics.ShaderImageNum - 1,
|
||||
Sub: []shaderir.Type{{Main: shaderir.Vec2}},
|
||||
}
|
||||
// Source region origin
|
||||
p.Uniforms[3] = shaderir.Type{Main: shaderir.Vec2}
|
||||
p.Uniforms[5] = shaderir.Type{Main: shaderir.Vec2}
|
||||
// Source region size
|
||||
p.Uniforms[4] = shaderir.Type{Main: shaderir.Vec2}
|
||||
p.Uniforms[6] = shaderir.Type{Main: shaderir.Vec2}
|
||||
return p
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user