mirror of
https://github.com/visgl/luma.gl.git
synced 2026-02-01 14:33:49 +00:00
486 B
486 B
Shader
Usage
Create a pair of shaders
const fs = new VertexShader(gl, {});
const fs = new FragmentShader(gl, {});
Members
handle- holds the underlyingWebGLShaderobject
Methods
constructor
Remarks
- Shader sources: A Program needs to be constructed with two strings containing source code for vertex and fragment shaders.
- Default Shaders: luma.gl comes with a set of default shaders that can be used for basic rendering and picking.