MiniGL

A 2d WebGL renderer,

case

shader uniform

the uniform below will be auto append to shader

    uniform mat3 transform; // model transform matrix
    uniform mat3 modelView; // modelView matrix
    uniform float pixelRatio; //
    uniform float ratio; // canvas width/height

such as:

    vec3 mPosition = transform * modelView * vec3(position,1.);

you can use config.z to change the order of meshes

    vec3 mPosition = transform * modelView * vec3(position,z);

develope

npm i
npm run start

doc

doc

future

maybe it will be a new origin webgl skia-like lib