Chris wrote:
As an aside, I wonder what NiStencilProperty's effect is supposed to be. The stencil buffer's purpose tends to be rather tightly bound to the rendering pipeline, and different rendering methods may use the stencil buffer differently. ...
This property's main use is to control triangle culling via FaceDrawMode rather than any kind of stencil operations. Plant geometry widely uses two-sided triangle rendering, and modded meshes may use a different culling direction for effects. Actual stencil use can be safely ignored as Morrowind does not require a stencil buffer to run.
While Morrowind supports rendering two-sided geometry, it doesn't perform two-sided lighting correctly; one side will have incorrect normals for the lighting. Many plant replacers will work around this by duplicating the leaf geometry, and instead of two-sided rendering, will invert the normals and the cull direction (via NiStencilProperty) on the duplicate.