
Public Member Functions | |
| PtTriSMesh2 () | |
| void | Init (ref Vertex3f v0, ref Vertex3f v1, ref Vertex3f v2, float extrFactor, bool isGLData) |
| void | BuildShadowVolumeVerticesVBO (ref float[] renderVertices, ref float[] normals, ref int index, ref int nIndex) |
| void | CalcShadowVolume (Vertex3f lightPos, ref float extrusionFac) |
| void | RenderShadowVolume (PtLight light) |
Static Public Attributes | |
| static byte[] | ShadowTriangleIndices |
| Powertek.OpenGl.PtTriSMesh2.PtTriSMesh2 | ( | ) |
| void Powertek.OpenGl.PtTriSMesh2.BuildShadowVolumeVerticesVBO | ( | ref float[] | renderVertices, | |
| ref float[] | normals, | |||
| ref int | index, | |||
| ref int | nIndex | |||
| ) |
BuildShadowVolumeVerticesVBO.
| renderVertices | ||
| normals | ||
| index | ||
| nIndex |
| void Powertek.OpenGl.PtTriSMesh2.CalcShadowVolume | ( | Vertex3f | lightPos, | |
| ref float | extrusionFac | |||
| ) |
CalcShadowVolume normal update for this.render, this only works if we dont rotate or move the object...
| lightPos | ||
| extrusionFac |
| void Powertek.OpenGl.PtTriSMesh2.Init | ( | ref Vertex3f | v0, | |
| ref Vertex3f | v1, | |||
| ref Vertex3f | v2, | |||
| float | extrFactor, | |||
| bool | isGLData | |||
| ) |
Init.
| v0 | ||
| v1 | ||
| v2 | ||
| extrFactor | ||
| isGLData |
| void Powertek.OpenGl.PtTriSMesh2.RenderShadowVolume | ( | PtLight | light | ) |
RenderShadowVolume normal render > note we dont need to call this if we use the gpu extrusion.
| light |
byte [] Powertek.OpenGl.PtTriSMesh2.ShadowTriangleIndices [static] |
Initial value:
{
2, 1, 0,
5, 4, 1,
2, 5, 1,
2, 0, 3,
5, 2, 3,
0, 1, 4,
3, 0, 4,
3, 4, 5}
1.5.7.1