mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 06:54:28 +01:00
shaderir: Update comments
This commit is contained in:
parent
47f415fe5a
commit
3ed9f8ee3b
@ -45,8 +45,9 @@ type VertexFunc struct {
|
|||||||
Block Block
|
Block Block
|
||||||
}
|
}
|
||||||
|
|
||||||
// FragmentFunc takes pseudo in-params, and the number is len(varyings) + 1.
|
// FragmentFunc takes pseudo in-params, and the number is len(varyings) + 2.
|
||||||
// The last param represents the coordinate of the fragment (gl_FragCoord in GLSL)
|
// 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 {
|
type FragmentFunc struct {
|
||||||
Block Block
|
Block Block
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user