Control material properties by geo properties
You can use properties of geometric objects to control material definition properties. For example, you can set a material's base_ color
to a particle system's point_velocity
for diagnostic purposes, or use custom geo properties to drive any number of material properties to achieve artistic results.
This procedure works only with material definitions. Referenced materials are not supported.
Add a material definition, such as
standard_surface_mat
orconstant_surface_material
, to your graph.Connect its output to the
material_definition
port of aset_geo_property_reference
node.Set
material_property
to the name of the material property to control, such asbase_color
.Set
geo_property
to the name of the property on the geometric object to use to control the material property.Connect the output of
set_geo_property_reference
to one of the material inputs of anassign_material
node.Connect the geometric object into the
geometry
port of theassign_material
node. Output the result to the scene, or modify it further in the graph.