Hajime Hoshi
84dd1679e3
examples/shader: remove the CRT example for license incompatibility
2022-11-17 22:47:02 +09:00
divVerent
21207f827c
do not require installing file2byteslice to update go generate'd files. ( #2221 )
...
The tool is already referenced in go.mod, so it is trivial to just go run it -
that way, go generate can use it without the user explicitly installing it first.
2022-07-29 20:43:23 +09:00
Hajime Hoshi
bd72ca971e
examples/shader: bug fix: the CRT example crashed
2022-07-09 22:29:59 +09:00
Bertrand Jung
2453f8f0df
examples/shader: add CRT shader example ( #2012 )
...
Closes #2008
2022-03-10 00:02:07 +09:00
Hajime Hoshi
07c8cb0e23
examples: Misspelling (//go:generated -> //go:generate)
2021-09-20 15:23:43 +09:00
Hajime Hoshi
537bdb29f8
examples: Update comments
2021-09-20 15:16:09 +09:00
Hajime Hoshi
a615be69c7
examples: Add //go:build
2021-06-24 21:49:37 +09:00
Hajime Hoshi
81ef20ddd0
examples: Use the new keys
...
Updates #1394
2021-04-18 01:13:20 +09:00
Hajime Hoshi
d46b0c5b49
examples/shader: Use const
...
Closes #1192
2021-04-09 02:02:03 +09:00
Hajime Hoshi
ede16afd30
examples/shader: Add a new example 'texel'
2020-12-09 23:33:59 +09:00
Hajime Hoshi
75158feccf
examples/shader: Add build tags for the generated files
2020-10-17 22:38:45 +09:00
Hajime Hoshi
47065f5f2c
Remove supporting jsgo
...
Updates #1129
2020-10-07 00:46:07 +09:00
Hajime Hoshi
1b816eb249
ebiten: Remove the error returning value from NewImageFromImage
...
Updates #1380
2020-10-06 01:03:33 +09:00
Hajime Hoshi
fe97e7b0a5
ebiten: Remove the filter argument from NewImage and NewImageFromImage
...
Updates #503
2020-10-05 01:40:44 +09:00
Hajime Hoshi
8f00c8fbf5
ebiten: Remove the argument from Update
...
Fixes #1260
2020-10-04 19:33:10 +09:00
Hajime Hoshi
bf515bb594
Update version to v2.0.0-alpha
2020-10-04 04:30:40 +09:00
Hajime Hoshi
e406ebb1aa
ebiten: Rename imageSrcTextureRegion -> imageSrcRegionOnTexture
...
Updates #1325
2020-09-19 19:36:53 +09:00
Hajime Hoshi
9f7d6962ff
ebiten: Rename shader functions to get colors from textures
...
Updates #1325
2020-09-19 19:01:05 +09:00
Hajime Hoshi
850303b770
ebiten: Change the type of Uniforms to map[string]interface{}
...
Fixes #1324
2020-09-06 21:02:30 +09:00
Hajime Hoshi
d2cfed7558
examples/shader: Remove an unused variable
...
Updates #1328
2020-09-01 23:50:19 +09:00
Hajime Hoshi
dd7b0d81ae
ebiten: Rename shader builtin functions
...
* imageSrcTextureSourceRegion -> imageSrcTextureRegion
* image[N]TextureAt -> imageSrc[N]At
* image[N]TextureBoundsAt -> imageSrc[N]BoundsAt
Updates #1325
2020-09-01 21:31:50 +09:00
Hajime Hoshi
05a1c2faa1
examples/shader: Always use 1 for an alpha
...
This is necessary to keep the color pre-multiplied
2020-08-16 02:34:21 +09:00
Hajime Hoshi
06ed4f5444
shader: Implement len function
...
Fixes #1279
2020-08-16 02:07:39 +09:00
Hajime Hoshi
a1d278b097
examples/shader: Add water.go
...
Updates #1284
2020-08-15 21:36:13 +09:00
Hajime Hoshi
a1c7c18788
examples/shader: Regenerate files with the latest file2byteslice
2020-08-13 03:03:27 +09:00
Magnus
95022ff1a5
examples/shader: dissolve shader ( #1291 )
...
Updates #1284
2020-08-12 00:43:07 +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
Hajime Hoshi
8bfe406470
examples/shader: Make the chromatic berration example more readable
2020-08-10 21:58:49 +09:00
Hajime Hoshi
8aa90e60d2
examples/shader: Regenerate bytes
2020-08-10 21:52:58 +09:00
Hajime Hoshi
f282a57a69
Revert "examples/shader: Merge generate.go and main.go"
...
This reverts commit fec9cae66a
.
Reason: go generate failed without the build tag
2020-08-10 21:52:18 +09:00
Hajime Hoshi
fec9cae66a
examples/shader: Merge generate.go and main.go
2020-08-10 21:12:34 +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
Hajime Hoshi
2fb5108bbe
shader: Rename viewportSize to textureDstSize
...
Updates #1239
2020-07-26 00:03:55 +09:00
Hajime Hoshi
2bdbcd724d
ebiten: Rename Draw*WithShader -> Draw*Shader
...
Updates #1168
2020-07-25 23:15:11 +09:00
Hajime Hoshi
c567a7b507
ebiten: Add DrawRectangleWithShader
...
Updates #1168
2020-07-20 22:48:22 +09:00
Hajime Hoshi
1217db3b1e
ebiten: Remove user-defined vertex shaders
...
Fixes #1253
2020-07-20 10:07:55 +09:00
Hajime Hoshi
a3f62559c6
examples/shader: Add lighting example
...
Fixes #1234
2020-07-19 15:42:35 +09:00
Hajime Hoshi
e0d5763a60
shader: Use the fixed number of images for shaders
...
This changes uses arrays rather than slices in order to avoid heap
allocations.
Updates #1193
2020-07-18 18:27:47 +09:00
Hajime Hoshi
7f70797a6d
ebiten: Rename DrawTriaglesWithShaderOptions.Textures to Images
2020-07-15 03:49:05 +09:00
Hajime Hoshi
d217bc6033
ebiten: Sparate textures from uniforms at DrawTrianglesWithShader
...
Updates #1193
Updates #1239
2020-07-09 01:59:21 +09:00
Hajime Hoshi
4021c24534
shader: Separate uniform variables and texture variabls
...
Textures cannot be treated as a regular variable, then they should
be treated differently from other uniform variables.
Add a new function texture0At replacing texture2D.
Updates #1239
2020-07-08 01:12:07 +09:00
Hajime Hoshi
ebb3bcfeb5
examples/shader: Refactoring
2020-06-24 02:47:51 +09:00
Hajime Hoshi
545342262f
examples/shader: Show an image
2020-06-24 01:41:27 +09:00