Hajime Hoshi
406edf28c2
graphics: Use 0.0 instead of type conversion; gofmt
2018-01-14 16:05:18 +09:00
seebs
0b7ba8e573
Do GeoM projection on CPU ( #477 )
...
Handling GeoM projection on CPU may seem like a weird choice, given
how fast GPU is, but it pays off:
* You only have to do a very small subset of the actual matrix
multiply.
* You don't have to construct a matrix in the vertex shader.
* Six fewer float32 values per vertex.
* You do still have to do the matrix computation for each vertex,
though.
Signed-off-by: Seebs <seebs@seebs.net>
2018-01-14 16:01:55 +09:00
Hajime Hoshi
d6878d6887
graphics: Remove one bound check from fragment shader ( #461 )
2017-12-16 01:33:35 +09:00
Hajime Hoshi
4744b461df
graphics: Handle non-well-formatted rectangle at DrawImageOptions
2017-12-14 11:52:19 +09:00
Hajime Hoshi
8e7e960b56
graphics: Limit source-rectangle range
...
Remove texture adjustment introduced due to #317
2017-12-02 23:13:44 +09:00
Hajime Hoshi
c62c195db3
graphics: Bug fix: Stop using texel adjustment on iOS ( #442 )
2017-10-07 15:01:33 +09:00
Hajime Hoshi
9399622127
graphics: Bug fix: Don't adjust texels on iOS Safari
2017-10-03 02:34:16 +09:00
Hajime Hoshi
1fb7e123c2
Remove dependencies on internal/graphics from ebiten
2017-08-06 21:34:24 +09:00
Hajime Hoshi
3b3179e33e
graphics: Add vertices backend
2017-05-28 00:49:44 +09:00
Hajime Hoshi
de7215f3fc
graphics: Add DrawImageOptions.SourceRect
2017-05-28 00:49:44 +09:00
Hajime Hoshi
6db994f0e8
graphics: Optimize GeoM
2017-05-24 00:57:57 +09:00
Hajime Hoshi
f05bf143f7
graphics: Unify vertices*.go
2017-05-21 23:49:56 +09:00
Hajime Hoshi
bf163b5617
graphics: Refactoring: Initialize 'quadFloat32Num' and reuse it
2017-05-01 23:23:58 +09:00
Hajime Hoshi
2358143eea
graphics: Give up to pass all tests on TravisCI
2017-02-11 04:15:14 +09:00
Hajime Hoshi
249b359e29
graphics: Try to make CI happy (3)
2017-02-11 04:04:51 +09:00
Hajime Hoshi
b8456094f2
graphics: Try to make CI happy (2)
2017-02-11 03:51:20 +09:00
Hajime Hoshi
9748b28c0e
graphics: Try to make CI happy
2017-02-11 03:44:33 +09:00
Hajime Hoshi
a07457902a
graphics: Optimize vertices for speed
2016-11-03 19:39:51 +09:00
Hajime Hoshi
6f97374326
graphics: Simplify vertices
2016-11-03 19:10:45 +09:00
Hajime Hoshi
50b2d8ee94
graphics: Use float values for vertices
2016-11-02 02:34:01 +09:00
Hajime Hoshi
5afe3225f3
graphics: Rename file vertices.go -> vertices_nojs.go
2016-11-02 00:04:46 +09:00
Hajime Hoshi
2c4dc3681a
graphics: Remove u/v functions
2016-10-27 12:59:25 +09:00
Hajime Hoshi
8c793ce53b
graphics: Use addition instead of multiplying in vertices
2016-10-27 03:33:19 +09:00
Hajime Hoshi
b77a28b208
graphics: Use shift instead of div
2016-10-27 02:47:10 +09:00
Hajime Hoshi
fb4ac5cd56
graphics: Bug fix: Add imports
2016-10-27 01:16:34 +09:00
Hajime Hoshi
d5ddd38ca9
graphics: Optimization for browsers ( #285 )
2016-10-26 23:35:29 +09:00
Hajime Hoshi
6cdcdd6d51
graphics: Optimize vertices function for browsers
2016-10-26 01:39:32 +09:00