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?

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top