Skip to content

v0.3.0-alpha.3

Pre-release
Pre-release

Choose a tag to compare

@Redninja106 Redninja106 released this 09 Aug 18:05
· 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 a VertexShader (see the RenderCube example)
  • Compute shaders (via ComputeShader and Graphics.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