You can easily add particles to a scene - but how do you color each particle? In the shader node, you can get each particle instance using the 'object info' - this gives you the position, index and so on - which you can use to calculate the color. A simple example, is to use the 'location' as the base color - so you'll see red, green and blue particles based on their x, y and z world location. For this example though, we'll get the color to match the texture coordinates (put a texture onto a plane and have hte particle cover it and match).
Using a chequered texture pattern as a test - we can show the example working using the simple script.
Visitor:
Copyright (c) 2002-2025 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.