shaderir: Update comments

This commit is contained in:
Hajime Hoshi 2020-05-24 02:07:57 +09:00
parent 47f415fe5a
commit 3ed9f8ee3b

View File

@ -45,8 +45,9 @@ type VertexFunc struct {
Block Block
}
// FragmentFunc takes pseudo in-params, and the number is len(varyings) + 1.
// The last param represents the coordinate of the fragment (gl_FragCoord in GLSL)
// FragmentFunc takes pseudo in-params, and the number is len(varyings) + 2.
// If index == len(varyings), the param represents the coordinate of the fragment (gl_FragCoord in GLSL).
// If index == len(varyings)+1, the param is an out-param representing the color of the pixel (gl_FragColor in GLSL).
type FragmentFunc struct {
Block Block
}