From 9ad7fe5bed508d4e5cba0d6795653f0f65cd5004 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 23 Aug 2024 11:05:14 +0900 Subject: [PATCH] internal/shader: refactoring --- internal/shader/shader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/shader/shader.go b/internal/shader/shader.go index db76dc5be..142985f52 100644 --- a/internal/shader/shader.go +++ b/internal/shader/shader.go @@ -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 {