aframeFrogShaders icon indicating copy to clipboard operation
aframeFrogShaders copied to clipboard

"Cannot read property 'x' of undefined" Errors Thrown by Many Shaders

Open HulloImJay opened this issue 8 years ago • 0 comments

Many (although not all) shaders I've been testing from ShaderFrog throw the following error or one very like it. Not knowing the code of the shaders myself I can't say what the common denominator is.

I've set up a test here, copying the provided example and simply swapping out the shader: http://www.jasonrtbond.ca/assets/shaders/basic.html

The shader used above is exported from here: http://shaderfrog.com/app/view/441

Contents of the error message: aframe-master.self-774642d….js?body=1:5703 Uncaught TypeError: Cannot read property 'x' of undefined at SingleUniform.setValue2fv [as setValue] (aframe-master.self-774642d….js?body=1:5703) at Function.WebGLUniforms.upload (aframe-master.self-774642d….js?body=1:6079) at setProgram (aframe-master.self-774642d….js?body=1:22591) at WebGLRenderer.renderBufferDirect (aframe-master.self-774642d….js?body=1:21337) at renderObjects (aframe-master.self-774642d….js?body=1:22160) at WebGLRenderer.render (aframe-master.self-774642d….js?body=1:21897) at THREE.VREffect.render (aframe-master.self-774642d….js?body=1:68582) at HTMLElement.value (aframe-master.self-774642d….js?body=1:64572) at bound (aframe-master.self-774642d….js?body=1:67155) setValue2fv @ aframe-master.self-774642d….js?body=1:5703 WebGLUniforms.upload @ aframe-master.self-774642d….js?body=1:6079 setProgram @ aframe-master.self-774642d….js?body=1:22591 WebGLRenderer.renderBufferDirect @ aframe-master.self-774642d….js?body=1:21337 renderObjects @ aframe-master.self-774642d….js?body=1:22160 WebGLRenderer.render @ aframe-master.self-774642d….js?body=1:21897 render @ aframe-master.self-774642d….js?body=1:68582 value @ aframe-master.self-774642d….js?body=1:64572 bound @ aframe-master.self-774642d….js?body=1:67155

HulloImJay avatar Jan 31 '17 16:01 HulloImJay