mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-09-26 20:11:28 +08:00
ebiten: clarify the same images size rule for DrawTrianglesShaderOptions (#3187)
Since it's not allowed to have differently-sized images for DrawTrianglesShaderOptions in pixels mode, the comment should be updated.
This commit is contained in:
3
image.go
3
image.go
@@ -638,7 +638,8 @@ type DrawTrianglesShaderOptions struct {
|
||||
Uniforms map[string]any
|
||||
|
||||
// Images is a set of the source images.
|
||||
// All the images' sizes must be the same.
|
||||
// In the texel mode, all the image sizes must be the same.
|
||||
// The pixel mode allows images of different sizes.
|
||||
Images [4]*Image
|
||||
|
||||
// FillRule indicates the rule how an overlapped region is rendered.
|
||||
|
Reference in New Issue
Block a user