jeudi 10 octobre 2013

ShaderToy 2

After having a look at this great article on Fabien Sanglard's blog, I tried to implement the business card ray tracer. There is still room for improvement but it begins to look quite good. I added a little animation to show that it is real-time contrary the CPU which takes more or less 20 seconds per frame. Unfortunately, this shader seems to work only if webgl implementation is based on OpenGL (OSX, Android, Linux..).

   On Windows there is a problem when ANGLE unrolls the main loop and translates it to HLSL. I posted a more basic version of that shader which works on all platforms. Feel free to help me finding a correction ...




Without the noise :



Aucun commentaire:

Enregistrer un commentaire