excalibur
Version:
Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.
17 lines (16 loc) • 520 B
TypeScript
import { Shader } from '../Context/shader';
import { VertexLayout } from '../Context/vertex-layout';
/**
* 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
*/
export declare class ScreenShader {
private _shader;
private _buffer;
private _layout;
constructor(gl: WebGL2RenderingContext, fragmentSource: string);
getShader(): Shader;
getLayout(): VertexLayout;
}