C# Class Nez.WaterReflectionPlane

adds a water reflection effect designed to be placed on the bottom of the screen. Note that transform.position is the top-left point in the water plane. Usage is as follows: - create a Renderer that renders after all of your other renderers and renders only renderLayer WATER_LAYER (you choose the int value) - put the WaterReflectionPlane on renderLayer WATER_LAYER and ensure no other Renderers are rendering WATER_LAYER - configure the material (you can fetch it via component.getMaterial()). Be sure to set the normalMap property.
Inheritance: RenderableComponent
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
WaterReflectionPlane ( float width, float height ) : Microsoft.Xna.Framework.Graphics
render ( Graphics graphics, Camera camera ) : void

Method Details

WaterReflectionPlane() public méthode

public WaterReflectionPlane ( float width, float height ) : Microsoft.Xna.Framework.Graphics
width float
height float
Résultat Microsoft.Xna.Framework.Graphics

render() public méthode

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
Résultat void