Fyrestar/THREE.extendMaterial

i cant get this example to work :o please

RollsChris opened this issue · 4 comments

Hi I'm hoping someone here can help, I'm trying to use this library.. I have tried two methods using the CDN and pulling in the class that I want.. but nothing seems to be working :( ..
weirdly everything works locally

Sandbox

image

I don't use codesandbox or parcel, you should also import it from "three" then it's right, but codesandbox does all kind of crazy things, one time it works, refreshing nothing changing suddenly it breaks something.

image

If you open this, adding this line below the imports from "three" and remove the extendMaterial from the "three" import.
import extendMaterial from "./extend.js";
https://codesandbox.io/s/suspicious-morning-2miu4y?file=/js/app.js

It will faill, then you undo that all and it will work, but if you refresh it fails again. It's some issue parcel or codesandbox causes i suppose.

I fixed the OrbitControls source for the codepen Demo btw.

Wow thanks, that has just put me off codesandbox for life lol, I just tried Replit and it worked without no issues, i guess ill be switching... what's your favourite online code editor? seems a pain to share or embed Replit

I only work locally, for editable demos and such i use codepen or my own server

ok thanks for the insight :)