Twosided

From The DarkMod Wiki
Revision as of 08:43, 1 July 2011 by Tels (talk | contribs) (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Surfaces with the twosided keyword in their shader simply get their data doubled, so they get rendered twice, once from front and once from back. Here is a visual explanation.

Twosided pane.png Twosided cylinder.png


The surfaces are doubled by FinishSurfaces() during model load. This means that if you have a model with a two-sided surface and a skin that switches to a one-sided surface, the surface will still be two-sided (as skin changes do not change the model). Likewise, if the surface is one-sided, but the skin surface is two-sided, the model will stay one-sided. This is tracked as bug #2297.

See also