mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-15 07:27:32 +01:00
50cd33ed9b
Fixes #1299
18 lines
235 B
Go
18 lines
235 B
Go
package main
|
|
|
|
func Vertex(position vec2) vec4 {
|
|
var v vec4
|
|
for i := 0.0; i < 4.0; i++ {
|
|
v.x += i * 0.01
|
|
}
|
|
return v
|
|
}
|
|
|
|
func Fragment(position vec4) vec4 {
|
|
var v vec4
|
|
for i := 0.0; i < 4.0; i++ {
|
|
v.x += i * 0.01
|
|
}
|
|
return v
|
|
}
|