Blender GLSL Export to THREE.js

1.5k views Asked by At

I'm looking to use this plugin for blender to generate GLSL code for import into three.js.

I'm not that familiar with GLSL and don't really know where to begin as to what variables need to be renamed to get this to work.

Here is example of the fragment and vertex shaders

As you can see from the demo I'm already getting lots of errors...

Any help would be greatly appreciated. Thanks in advance!

1

There are 1 answers

0
pietro909 On

as long as I can see at a first sight, you are facing using _gl_ClipVertex_ which is not implemented in WebGL as it is not present in OpenGL ES.

source: http://web.eecs.umich.edu/~sugih/courses/eecs487/common/notes/APITables.xml