0.4.0 • Published 7 years ago
canvas-toy v0.4.0
CanvasToy.js
Lightweight WebGL/WenGL2 rendering engine
roadmap before 1.0:
About advanced rendering:
- Both TBDR(Tile Based Deferred Rendering) and Common Forward Rendering pipeline
- BRDF distribution via StandardMaterial
- Fully WebGL2 support.
- Read and display .gltf files
About basic rendering:
- Lights
- Point lights
- Directional lights
- Spot lights
- Shadow
- Shadow mapping
- Transforms
- Basic object transforms
- Bones system
- Animation Parsing
- Texture mappings
- Diffuse texture
- Normal texture
- Skybox via cube texture
- Noise texture && generation
- LightMap baking
- Render color, depth, stencil component to texture
- Reflection && refraction support
About models parsing
Planning filetypes:
- .obj .mtl
- .fbx
- .blend (not sure)
- .max (not sure)
About network:
- Automatically handle async resources loading, including models, images and videos. You don't need to write some code like image.onload = ...
About Engineering
- More than 95% test cover
- Using github workflow
- Build && test using pure node.js and typescript compiler, without gulp or grunt, webpack and bash , etc.
- Generate a typescript declaration file .d.ts to support both javascript and typescript.
Contribute:
See CONTRIBUTING.md.
License
The MIT license.