C# 클래스 Nez.DeferredLighting.DirLight

directional light with a shortended name to avoid clashes with the XNA DirectionalLight. This light type has only a direction and is never culled. It is a global light and the only light that produces specular highlights.
상속: DeferredLight
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
direction Vector3
specularIntensity float
specularPower float

공개 메소드들

메소드 설명
DirLight ( ) : Microsoft.Xna.Framework
DirLight ( Color color ) : Microsoft.Xna.Framework
DirLight ( Color color, Vector3 lightDirection ) : Microsoft.Xna.Framework
debugRender ( Graphics graphics ) : void

we dont want to render our bounds so we just render a direction

setDirection ( Vector3 direction ) : DirLight
setSpecularIntensity ( float specularIntensity ) : DirLight
setSpecularPower ( float specularPower ) : DirLight

메소드 상세

DirLight() 공개 메소드

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

DirLight() 공개 메소드

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

DirLight() 공개 메소드

public DirLight ( Color color, Vector3 lightDirection ) : Microsoft.Xna.Framework
color Color
lightDirection Vector3
리턴 Microsoft.Xna.Framework

debugRender() 공개 메소드

we dont want to render our bounds so we just render a direction
public debugRender ( Graphics graphics ) : void
graphics Graphics Graphics.
리턴 void

setDirection() 공개 메소드

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

setSpecularIntensity() 공개 메소드

public setSpecularIntensity ( float specularIntensity ) : DirLight
specularIntensity float
리턴 DirLight

setSpecularPower() 공개 메소드

public setSpecularPower ( float specularPower ) : DirLight
specularPower float
리턴 DirLight

프로퍼티 상세

direction 공개적으로 프로퍼티

direction of the light
public Vector3 direction
리턴 Vector3

specularIntensity 공개적으로 프로퍼티

specular intensity. 0 - 1 range
public float specularIntensity
리턴 float

specularPower 공개적으로 프로퍼티

specular power. this is the exponent passed to pow() of the projection from 0,0,-1 to the light-to-normal
public float specularPower
리턴 float