Thank you! ⭐ #2
Replies: 1 comment
-
|
(Oops, I forgot to enable discussions on this repository...) Yeah, well, it's a tricky thing to explain properly. The short version is that under the hood, everything are triangles, and when drawing shaders, triangle vertex coordinates and triangle texture coordinates are different sets of values. This There are two documents that give the full context and actually explain all this in detail, but they are long.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I discovered these tutorials quite by accident through the Ebiten website, and just wanted to say thank you! They're really well-written and I greatly enjoyed going through them and learning about Kage and shaders in general.
The only bit of feedback I'd like to give is that I'm still not sure what the second parameter in
Fragment(vec2) is for; it doesn't seem to be covered in the intro tutorials. I see on the Ebitengine page that it's calledtexCoord, but not sure what that means - still experimenting to try and figure it out :)Beta Was this translation helpful? Give feedback.
All reactions