Skip to content

Three.js version is broken #13

@blaze33

Description

@blaze33

three.js example does not work.

console output:

Uncaught TypeError: AFRAME.registerShader is not a function
    at Object.<anonymous> (aframe-effects.js:2463)
    at __webpack_require__ (aframe-effects.js:20)
    at Object.<anonymous> (aframe-effects.js:237)
    at __webpack_require__ (aframe-effects.js:20)
    at Component (aframe-effects.js:40)
    at aframe-effects.js:43

https://github.com/wizgrav/aframe-effects/blob/master/shaders/index.js#L46 does call a registerSahder function that should be defined by AFRAME but that ain't present when using Three.js.

I have some experience with three.js but none with Aframe so I'm having some trouble debugging this...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions