Skip to main content

ScreenShader

Helper that defines a whole screen renderer, just provide a fragment source!

Currently supports 1 varying

  • vec2 a_texcoord between 0-1 which corresponds to screen position

Index

Constructors

constructor

  • new ScreenShader(gl: WebGL2RenderingContext, fragmentSource: string): ScreenShader
  • Parameters

    • gl: WebGL2RenderingContext
    • fragmentSource: string

    Returns ScreenShader

Methods

publicgetLayout

publicgetShader

Page Options