C# Класс 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").
Наследование: Nez.Renderable3D
Показать файл Открыть проект

Открытые методы

Метод Описание
Model3D ( Model model, Microsoft.Xna.Framework.Graphics.Texture2D texture = null ) : Microsoft.Xna.Framework.Graphics
enableDefaultLighting ( ) : Model3D
render ( Graphics graphics, Camera camera ) : void

Описание методов

Model3D() публичный Метод

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
Результат Microsoft.Xna.Framework.Graphics

enableDefaultLighting() публичный Метод

public enableDefaultLighting ( ) : Model3D
Результат Model3D

render() публичный Метод

public render ( Graphics graphics, Camera camera ) : void
graphics Nez.Graphics
camera Nez.Camera
Результат void