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

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

Метод Описание
WaterReflectionPlane ( float width, float height ) : Microsoft.Xna.Framework.Graphics
render ( Graphics graphics, Camera camera ) : void

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

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

public WaterReflectionPlane ( float width, float height ) : Microsoft.Xna.Framework.Graphics
width float
height float
Результат Microsoft.Xna.Framework.Graphics

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

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