Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top