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
Mostra file Open project: prime31/Nez

Public Methods

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

Method Details

WaterReflectionPlane() public method

public WaterReflectionPlane ( float width, float height ) : Microsoft.Xna.Framework.Graphics
width float
height float
return Microsoft.Xna.Framework.Graphics

render() public method

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