elm-community / webgl

Moved to elm-explorations/webgl
https://package.elm-lang.org/packages/elm-explorations/webgl/latest
BSD 3-Clause "New" or "Revised" License
131 stars 18 forks source link

2.0 #38

Closed w0rm closed 7 years ago

w0rm commented 7 years ago

Finally this is happening! Here is a list of changes:

  1. support setting WebGL context attributes (by setting depth, stencil, antialiasing, alpha with premultipliedAlpha options)
  2. a new indexedTriangles geometry has been added, that allows to specify indices separately
  3. each render operation now starts with clean environment, the only shared information between them are the color, depth and stencil buffers
  4. all capabilities (depth test, stencil test, blend, etc.) are toggled automatically when the corresponding Settings is used
  5. Blend, DepthTest and StencilTest settings were extracted into separate modules
  6. Texture API was improved, e.g. it now fails the Task, when trying to load non-power-of-two textures with wrong options
  7. Texture performance was improved, because there is no need to generate mipmaps, if the texture filter is not using them
  8. Renamed Drawable to Mesh, Renderable to Entity
  9. Improved the documentation with more use cases, and even some ascii art