Skip to content

Shaders

Daxode edited this page Oct 2, 2020 · 1 revision

Overview

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.

Types

There are three different kinds of shaders used in this game, well, currently anyways.

  1. There are, vertex shaders, which deal with converting vertexes (duh), which are points in space, over to points on a screen.
  2. 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.
  3. 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.

Clone this wiki locally