There are no other built-in attributes you can use with thin instances. You can create others yourself, but you will need custom shader code to handle them.
For eg:
Here’s a little PG that demonstrates using a custom attribute with instances (this is more a proof of concept than anything else):
https://playground.babylonjs.com/#ZTTZJ3#1
Instances are using the new thin instance support (Use Thin Instances - Babylon.js Documentation ) and the custom attribute is used to vary the metallic and roughness properties of the sphere.
A node material is used as the basis material, and a custom NodeMaterialBlock class is created to handle the custom attribute and i…
No, as all thin instances are using the same material than their master mesh.
If you want to use different texture parts depending on the thin instance, you will have to make a custom shader with a custom attribute to pass the u/v offset (and possibly width/height) of the texture part.
See for eg: thinInstance multiple materials for usage of a texture atlas with thin instances.
1 Like