MeshExpression
A mesh producer that filters an incoming mesh with an expression.
This component can only be used in the Mesh.Producers property.
Example usage: See "BoidMesh" in Steering sample project.
Properties
Expression
An expression that is called once for every vertex in the mesh. The special read/write property "V" holds the current vertex. Modify this value to change the vertex. Example of a valid expression: "this.V.X*=2;". The read/write property "N" holds the current normal. The write-only property "C" allows writing to the current vertex color if VertexColors is on.
AutoNormals
If this property is on all normals will be automatically regenerated after a the MeshExpression is executed. Turn off this if you want to modify normals in the expression.
VertexColors
If this property is on then the expression can set vertex colors.