Property | Type | Description | |
---|---|---|---|
edgeGroups | EdgeGroupList | ||
triangles | TriangleList |
Method | Description | |
---|---|---|
DebugLog ( Log log ) : void | ||
UpdateFaceNormals ( int vertexSet, |
Updates the face normals for this edge list based on (changed) position information, useful for animated objects.
|
|
UpdateTriangleLightFacing ( Vector4 lightPos ) : void |
Calculate the light facing state of the triangles in this edge list. This is normally the first stage of calculating a silhouette, ie establishing which tris are facing the light and which are facing away. This state is stored in the 'lightFacing' flag in each Triangle. |
public UpdateFaceNormals ( int vertexSet, |
||
vertexSet | int | The vertex set we are updating. |
positionBuffer | The updated position buffer, must contain ONLY xyz. | |
return | void |
public UpdateTriangleLightFacing ( Vector4 lightPos ) : void | ||
lightPos | Vector4 | /// 4D position of the light in object space, note that /// for directional lights (which have no position), the w component /// is 0 and the x/y/z position are the direction. /// |
return | void |