C# 클래스 Nez.DeferredLighting.AreaLight

AreaLights work like DirLights except they only affect a specific area specified by the width/height. Note that Transform.scale will affect the size of an AreaLight.
상속: DeferredLight
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
direction Vector3
intensity float

공개 메소드들

메소드 설명
AreaLight ( float width, float height ) : Microsoft.Xna.Framework
setDirection ( Vector3 direction ) : AreaLight
setHeight ( float height ) : AreaLight
setIntensity ( float intensity ) : AreaLight
setWidth ( float width ) : AreaLight

메소드 상세

AreaLight() 공개 메소드

public AreaLight ( float width, float height ) : Microsoft.Xna.Framework
width float
height float
리턴 Microsoft.Xna.Framework

setDirection() 공개 메소드

public setDirection ( Vector3 direction ) : AreaLight
direction Vector3
리턴 AreaLight

setHeight() 공개 메소드

public setHeight ( float height ) : AreaLight
height float
리턴 AreaLight

setIntensity() 공개 메소드

public setIntensity ( float intensity ) : AreaLight
intensity float
리턴 AreaLight

setWidth() 공개 메소드

public setWidth ( float width ) : AreaLight
width float
리턴 AreaLight

프로퍼티 상세

direction 공개적으로 프로퍼티

direction of the light
public Vector3 direction
리턴 Vector3

intensity 공개적으로 프로퍼티

brightness of the light
public float intensity
리턴 float