mrdoob/three.js — Issue #712: Flag to Debug Three.JS WebGLRenderer Shader Code
Author: zz85
Created: 2011-10-31 16:17:11+00:00
State: open

Just wondering if there's anyway to debug the shader code that three.js combines before sending it to webgl..

Perhaps add a console.log to getShader() in WebGLRenderer? (I currently check whats going on is to introduce a GLSL error so that the code would be dumped)

It could be useful for when writing MeshShader to see what's being passed on to Webgl and knowing what variables are introduced automatically with three.js eg.

`
uniform mat4 modelViewMatrix;
uniform mat4 projectionMatrix;
uniform mat4 viewMatrix;
`