mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
shaderir: Format
This commit is contained in:
parent
31a5905b8a
commit
c8fa937a0a
@ -121,6 +121,9 @@ func (p *Program) Glsl() (vertexShader, fragmentShader string) {
|
|||||||
fslines = append(fslines, fmt.Sprintf("varying %s;", p.glslVarDecl(&t, fmt.Sprintf("V%d", i))))
|
fslines = append(fslines, fmt.Sprintf("varying %s;", p.glslVarDecl(&t, fmt.Sprintf("V%d", i))))
|
||||||
}
|
}
|
||||||
for _, f := range p.Funcs {
|
for _, f := range p.Funcs {
|
||||||
|
if len(fslines) > 0 {
|
||||||
|
fslines = append(fslines, "")
|
||||||
|
}
|
||||||
fslines = append(fslines, p.glslFunc(&f)...)
|
fslines = append(fslines, p.glslFunc(&f)...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user