oframe / ogl

Minimal WebGL Library
https://oframe.github.io/ogl/examples
3.71k stars 211 forks source link

Alternative to Three.js's onBeforeCompile function? #187

Closed monolithMktg closed 1 year ago

monolithMktg commented 1 year ago

Not exactly an issue, but I seek some help.

I want to use onBeforeCompile's alternative for mimicking this tutorial: https://tympanus.net/codrops/2019/11/13/high-speed-light-trails-in-three-js/

repalash commented 1 year ago

There are no materials in ogl like in three.js. A Program can be created with any shader source you like and used as a material

monolithMktg commented 1 year ago

Thank you very much. Makes sense.