ericeisaman / aframe-shaderfrog-component Goto Github PK
View Code? Open in Web Editor NEWUse shaders designed at shaderfrog.com in your A-Frame applications.
Use shaders designed at shaderfrog.com in your A-Frame applications.
Hello,
I have tried to implement a shader from shaderfrog using your solution but it shows an error and fails, what am I doing wrong?
the shader : https://shaderfrog.com/app/view/164
glitch remix : https://glitch.com/edit/#!/shaderfrogcustom?path=src%2Fshaders%2FREADME.md%3A1%3A0
usage :
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Bubbles</title>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="Who dont want to pop bubbles ?">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="./aframe-shaderfrog-component-custom.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<img id="skymap" src="./roof_garden_2k_background.png">
<img id="skyenvmap" src="./roof_garden_2k_envmap.png">
</a-assets>
<a-sphere position="0 1.2 -4" shader-frog="name:Bubble_shader" material="sherical-env-map:#skyenvmap"></a-sphere>
<a-sphere position="0 0 -4" shader-frog="name:GOO_shader"></a-sphere>
<a-sky src="#skymap"></a-sky>
</a-scene>
</body>
</html>
Error :
core:a-node:error Failure loading node: TypeError: Cannot read property 'fragment' of undefined
at d.add (aframe-shaderfrog-component-custom.min.js:1)
at i.update (aframe-shaderfrog-component-custom.min.js:1)
at initComponent (component.js:330)
at i.updateProperties (component.js:302)
at i.module.exports.Component (component.js:78)
at new i (component.js:662)
at HTMLElement.initComponent (a-entity.js:332)
at HTMLElement.updateComponent (a-entity.js:495)
at HTMLElement.updateComponents (a-entity.js:463)
at a-entity.js:249
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.