Hajime Hoshi
06ed4f5444
shader: Implement len function
...
Fixes #1279
2020-08-16 02:07:39 +09:00
Hajime Hoshi
08270ee729
shader: Enable to parse ... in an array type
2020-08-11 23:51:22 +09:00
Hajime Hoshi
70acb9c1f6
shader: Rename shader bultin functions
...
Renamed image0TextureSize to imageSrcTextureSize, and removed the
other texture-size functions.
As texture-coordinates are always in image0's texture texels,
calculations with texels are always done with image0's texture texels.
Then, other texture-size functions are useless. To avoid confusion,
let's remove the functions and leave the necessary funciton.
2020-08-11 05:02:22 +09:00
Hajime Hoshi
b95195ab71
examples/shader: Fix some API usages
2020-08-11 04:25:20 +09:00
Hajime Hoshi
69f87d5fd1
ebiten: Add new shader builtin functions: image[N]TextureBoundAt
...
Fixes #1287
2020-08-11 03:24:54 +09:00
Hajime Hoshi
bc930ed0ec
Revert "examples/shader: Rename ScreenSize -> ImageSize"
...
This reverts commit 3893f9cdbe
.
Reason: The screen size and the image size can be different.
2020-08-11 02:16:16 +09:00
Hajime Hoshi
68ca0c634e
ebiten: Rename builtin shader functions
...
* textureDstSize -> imageDstTextureSize
* texture[N]Size -> image[N]TextureSize
* texture[N]At -> image[N]TextureAt
Updates #1287
2020-08-11 02:07:53 +09:00
Hajime Hoshi
3893f9cdbe
examples/shader: Rename ScreenSize -> ImageSize
2020-08-11 01:52:16 +09:00
Tom Lister
6e5a9a4534
examples/shader: Add the chromatic aberration example ( #1288 )
...
Updates #1284
2020-08-10 21:08:53 +09:00
Hajime Hoshi
8dec91db43
examples/shader: Add the radial blur example
...
Updates #1284
2020-08-10 05:16:44 +09:00