문제

what am trying to accomplish is to to put a different pixel data as the material of each particle, this is my train of thought: set a canvas as texture of a PlaneGeometry, get pixel chunks of data from PlaneGeometry through fragment shader and put different chunks of that pixel data on any particle I want through the particlesystem's fragment shader, is this posible?

도움이 되었습니까?

해결책

Yes, you can use a custom THREE.ShaderMaterial with THREE.ParticleSystems. Also worth noting is that if you simply want to use a canvas as a texture, you don't need to go through PlaneGeometry.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top