سؤال

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