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
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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