v0.3.0-alpha.3
Pre-release
Pre-release
·
50 commits
to canvas-shader
since this release
Added:
- Custom vertex shaders:
DrawTriangles<T>(draws triangles with a custom vertex type)ICanvas.Fill()overloads which accept aVertexShader(see the RenderCube example)
- Compute shaders (via
ComputeShaderandGraphics.Dispatch) - Vertex shaders accept custom vertex data via a field with a
VertexDataAttribute - Vertex shaders can pass values to the canvas shader (fragment shader) via a field with a
VertexShaderOutputAttribute
Fixed:
- Reimplemented gradients as canvas shaders
- Shader array alignment issues
- Various other bugs and crashes
Known Issues:
- anti aliasing doesn't work when rendering to a texture
- jump statements cause shader compilation errors (early returns, continue, break, etc)
- Texture saving is not yet supported
- Self-Intersecting polygons are not triangulated properly