-
Notifications
You must be signed in to change notification settings - Fork 0
Shaders
Daxode edited this page Oct 2, 2020
·
1 revision
Welp, plan wasn't to use costum shaders.. Yet here we are, but then again, kinda needed them, otherwise we would be talking seconds per frame instead of frames per second and i couldn't let that happen, so i learned shaders.
There are three different kinds of shaders used in this game, well, currently anyways.
- There are, vertex shaders, which deal with converting vertexes (duh), which are points in space, over to points on a screen.
- Then there are fragment shaders, which turn potential pixels into a given color based on screen position and other data given from the vertex shader.
- Last, but not least, there is compute shaders, which can handle computing a lot of data through the gpu, these are more versitile, however, can't be used for rendering.