msj121 / aframefrogshaders Goto Github PK
View Code? Open in Web Editor NEWImport Frog Shaders into AFrame
Import Frog Shaders into AFrame
The following shader doesn't work:
Enter_The_Matrix.json
Uncaught TypeError: Cannot read property 'x' of undefined(…)
s @ three.js:31441
THREE.WebGLUniforms.U.upload @ three.js:31820
b @ three.js:26727
renderBufferDirect @ three.js:25522
y @ three.js:26289
render @ three.js:26042
render @ VREffect.js:376
value @ a-scene.js:424
(anonymous function) @ bind.js:12
https://rawgit.com/msj121/aframeFrogShaders/master/examples/error.html
Steps to Reproduce:
Change the provided example to use A-Frame 0.4.0:
<script src="https://aframe.io/releases/0.4.0/aframe.min.js"></script>
Object renders as white. Observe the following error in the console.
Uncaught (in promise) TypeError: Cannot read property 'XHRLoader' of undefined
at o (https://rawgit.com/msj121/aframeFrogShaders/master/aframe-shader-frog.js:1:1298)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.