Hajime Hoshi
Hajime Hoshi
https://caniuse.com/webgl2 WebGL2 is already supported by all the modern browsers. Safari 15 is the latest.
See also #2111
``` package main func Fragment(position vec4, texCoord vec2, color vec4) vec4 { d := vec3(vec2(0, 0)) // originally found while passing color.xy, texCoord.xy to vec3() return vec4(d, 1) } ```...
Inspired by https://twitter.com/seanbax/status/1286018968172494849
`ReplacePixels` is hard to use as it takes a byte slice. What about `ReplaceByImage(image image.Image)`? The cost is still not obvious but is more friendly. /CC @eihigh
``` func (g *Game) HandleInput(input Input) { // input.IsKeyPressed(...) } ``` This can reduce the global functions for inputting.
Reported by @mikenye at https://github.com/plane-watch/pw-slippymap/commit/5182463952d10dae78eda3e8956fed4426df0bc0#commitcomment-72461124 ``` go run -race main.go --aircraftpburl http://192.168.1.1:8079/data/aircraft.pb ``` ``` 2022-04-29 11:58:45.301 main[93268:5315135] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1677.104/Foundation/Misc.subproj/NSUndoManager.m:363 2022-04-29 11:58:45.303 main[93268:5315135] *** Terminating app...