Skip to main content
This object is new and subject to change; keep up with the documentation in case of changes.

Things to keep in mind

  • Create must be called every time after you change the Vertex and Pixel shaders.
  • The entry points for the Vertex and Pixel shaders are called “main”, you cannot change this.
  • If Size is not set, the shader will take up the maximum available space of the game window.

Tips

  • To access the extra globals that Potassium gives to the GPU, define them as follows in your Pixel shader:

Wavey Sine Shader Example