mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-03 22:44:28 +01:00
shaderir: Update comments
This commit is contained in:
parent
47f415fe5a
commit
3ed9f8ee3b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user