oframe / ogl

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

Add a simple fresnel example #95

Closed michaeldll closed 3 years ago

michaeldll commented 3 years ago

Hello,

Here's a simple fresnel shader example, might be useful ?

EDIT: Here's how it should look :

Screenshot

gordonnl commented 3 years ago

Thanks a lot @michaeldll ! I edited it slightly to use the Color class.

michaeldll commented 3 years ago

Great ! Glad I could help a little bit :)