Giter Club home page Giter Club logo

aframe-shaderfrog-component's People

Contributors

dependabot[bot] avatar ericeisaman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

technologyarts

aframe-shaderfrog-component's Issues

Failure loading node: TypeError: Cannot read property 'fragment' of undefined

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.