Closed ianmackenzie closed 5 years ago
Sample implementation of shadow volumes in JS, links courtesy of @architectcodes:
Initial experimentation with shadow volumes in Elm: https://github.com/w0rm/elm-webgl-playground/compare/shadow-volume
Looks like you can close this.
Right you are! =) Would be cool to investigate shadow maps in the future but that will require changes to elm-explorations/webgl
.
Either using traditional shadow maps or perhaps something clever/specialized like sets of analytical occluders (spheres, boxes etc.).
One cool approach would be to dynamically generate GLSL code for a given set of occluders; this could include hardcoded R-tree-like culling logic to quickly determine which occluders may affect a given light/ray.