FinishSurfaces()

From The DarkMod Wiki
Revision as of 16:01, 2 February 2011 by Tels (talk | contribs) (remove double headline)
Jump to navigationJump to search

This is a method inside the closed-source part of the idtech4 engine. It doubles two-sided surfaces and calculates the shadow hull.

twosided surfaces are simply get their data doubled, so they get rendered twice, once from front and once from back.

FinishSurfaces() doubles the data by doubling the entire surface, copying the data (flipped normals, tangents, reverse indices for each tris). and appending the surface at the end.

See also