public override void Render(Mesh3D m, Visualizer v) { m.Material.Bind(); if (Light3D.Active != null) { Light3D.Active.ShadowFB.Cube.Bind(2); } if (FXG.FXOverride != null) { FXG.FXOverride.Bind(); } else { fx.Bind(); } v.SetMesh(m); v.Bind(); v.Visualize(); v.Release(); if (FXG.FXOverride != null) { FXG.FXOverride.Release(); } else { fx.Release(); } if (Light3D.Active != null) { Light3D.Active.ShadowFB.Cube.Release(2); } m.Material.Release(); }
public override void Render(Mesh3D m, Visualizer v) { m.Mat.Bind( ); if (Lighting.Light3D.Active != null) { Lighting.Light3D.Active.ShadowFB.Cube.Bind(2); } if (FXG.FXOverride != null) { FXG.FXOverride.Bind( ); } else { fx.Bind( ); } v.SetMesh(m); v.Bind( ); for (int i = 0; i < m.Subs.Count; i++) { v.Visualize(i); } v.Release( ); if (FXG.FXOverride != null) { FXG.FXOverride.Release( ); } else { fx.Release( ); } if (Lighting.Light3D.Active != null) { Lighting.Light3D.Active.ShadowFB.Cube.Release(2); } m.Mat.Release( ); }