mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/shader: refactoring
This commit is contained in:
parent
d3d42b3263
commit
9ad7fe5bed
@ -363,9 +363,8 @@ func (cs *compileState) parse(f *ast.File) {
|
||||
|
||||
if cs.ir.VertexFunc.Block != nil {
|
||||
// TODO: Check that these params are not arrays or structs
|
||||
// The 0th argument is a special variable for position and is not included in varying variables.
|
||||
cs.ir.Varyings = append(cs.ir.Varyings, cs.vertexOutParams[1:]...)
|
||||
} else if cs.ir.FragmentFunc.Block != nil {
|
||||
cs.ir.Varyings = append(cs.ir.Varyings, cs.fragmentInParams[1:]...)
|
||||
}
|
||||
|
||||
if len(cs.errs) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user