craff / gles3

ocaml bindings for gles3
GNU Lesser General Public License v3.0
4 stars 0 forks source link

put some shaders in the library ? #4

Open craff opened 3 years ago

craff commented 3 years ago

Maybe in could be a good idea to put some shaders in the library ?

Typically:

rlepigre commented 3 years ago

That is probably a good idea, not everyone may want (or know how) to write shaders. However, I'm not sure if this is something we should do right now. Maybe we should first try to have a DSL for shaders using OCaml types (GADTs and whatever else we may need to get a reasonable subset), and then provide shaders implemented encoded using these types and compiled from them. A good test for that language would be to see if the examples of shaders you propose to integrate can be expressed.