shaderir: Format

This commit is contained in:
Hajime Hoshi 2020-07-20 02:12:31 +09:00
parent 31a5905b8a
commit c8fa937a0a

View File

@ -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))))
}
for _, f := range p.Funcs {
if len(fslines) > 0 {
fslines = append(fslines, "")
}
fslines = append(fslines, p.glslFunc(&f)...)
}