Recent Changes - Search:

ZGameEditor

Documentation

Community

Edit sidebar

MeshExpression

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. The read/write property "TexCoord" holds the current texture coordinate.

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.

HasTexCoords

If this property is on then the expression can set texture coordinates.

Edit - History - Print - Recent Changes - Search
Page last modified on February 25, 2010, at 05:00 pm