mayognaise / aframe-gif-shader

A shader to display GIF for A-Frame VR.
https://mayognaise.github.io/aframe-gif-shader/basic
MIT License
107 stars 44 forks source link

compatibility issue on aframe version 1.3.0 #21

Open eggybot opened 2 years ago

eggybot commented 2 years ago

Got this error Uncaught TypeError: THREE.Math.nearestPowerOfTwo is not a function when I use the latest version of aframe.

It works before on v1.2.0 but on the latest version 1.3.0 it has a compatibility. Any idea on how to fixed this issue?

twice7713 commented 1 year ago

THREE.Math.nearestPowerOfTwo is instead of THREE.MathUtils.nearestPowerOfTwo you can see(https://threejs.org/docs/?q=math#api/en/math/MathUtils)

gloomcheng commented 11 months ago

I have made modifications to support aframe version 1.3.0 and above in the aframe-gif-shader. You can find the updated code at https://github.com/gloomcheng/aframe-gif-shader.