mini-gl - v2.0.1

MiniGL

A 2d WebGL renderer,

  • support point,line,face,instanceMesh and custom shader
  • support canvas transform & controller
  • support webGL2.0
  • use glMatrix as matrix library
  • support DragonBones animation

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

Generated using TypeDoc