C# 클래스 Nez.DeferredLighting.PointLight

PointLights radiate light in a circle. Note that PointLights are affected by Transform.scale. The Transform.scale.X value is multiplied by the lights radius when sent to the GPU. It is expected that scale will be linear.
상속: DeferredLight
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
intensity float
zPosition float

보호된 프로퍼티들

프로퍼티 타입 설명
_radius float

공개 메소드들

메소드 설명
PointLight ( ) : Microsoft.Xna.Framework
PointLight ( Microsoft.Xna.Framework.Color color ) : Microsoft.Xna.Framework
debugRender ( Graphics graphics ) : void

renders the bounds only if there is no collider. Always renders a square on the origin.

setIntensity ( float intensity ) : PointLight

brightness of the light

setRadius ( float radius ) : PointLight

how far does this light reach

setZPosition ( float z ) : PointLight

메소드 상세

PointLight() 공개 메소드

public PointLight ( ) : Microsoft.Xna.Framework
리턴 Microsoft.Xna.Framework

PointLight() 공개 메소드

public PointLight ( Microsoft.Xna.Framework.Color color ) : Microsoft.Xna.Framework
color Microsoft.Xna.Framework.Color
리턴 Microsoft.Xna.Framework

debugRender() 공개 메소드

renders the bounds only if there is no collider. Always renders a square on the origin.
public debugRender ( Graphics graphics ) : void
graphics Graphics Graphics.
리턴 void

setIntensity() 공개 메소드

brightness of the light
public setIntensity ( float intensity ) : PointLight
intensity float Intensity.
리턴 PointLight

setRadius() 공개 메소드

how far does this light reach
public setRadius ( float radius ) : PointLight
radius float Radius.
리턴 PointLight

setZPosition() 공개 메소드

public setZPosition ( float z ) : PointLight
z float
리턴 PointLight

프로퍼티 상세

_radius 보호되어 있는 프로퍼티

protected float _radius
리턴 float

intensity 공개적으로 프로퍼티

brightness of the light
public float intensity
리턴 float

zPosition 공개적으로 프로퍼티

"height" above the scene in the z direction
public float zPosition
리턴 float