C# Class Nez3D.Model3D

Model3D represents a normal 3D Model but it is rendered by a standard Nez Camera on the same plane as all the 2D sprites. For this reason, the Model is inflated by a scale of 80 by default. This keeps the Model at approximately the same scale as 2D sprites. You can adjust this via the Vector3s present in this class (which replace the 2D Transform) and the 3D Camera fields (which are all suffixed with "3D").
Inheritance: Nez.Renderable3D
Exibir arquivo Open project: prime31/Nez

Public Methods

Method Description
Model3D ( Model model, Microsoft.Xna.Framework.Graphics.Texture2D texture = null ) : Microsoft.Xna.Framework.Graphics
enableDefaultLighting ( ) : Model3D
render ( Graphics graphics, Camera camera ) : void

Method Details

Model3D() public method

public Model3D ( Model model, Microsoft.Xna.Framework.Graphics.Texture2D texture = null ) : Microsoft.Xna.Framework.Graphics
model Microsoft.Xna.Framework.Graphics.Model
texture Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics

enableDefaultLighting() public method

public enableDefaultLighting ( ) : Model3D
return Model3D

render() public method

public render ( Graphics graphics, Camera camera ) : void
graphics Nez.Graphics
camera Nez.Camera
return void