C# 클래스 Nez.DeferredLighting.DeferredSpriteEffect

effect used to render sprites that take part in deferred lighting. A normal map is required. The normal map can optionally use the alpha channel for self illumination by setitng useNormalAlphaChannelForSelfIllumination to true. Note that you need to turn off premultiplied alpha in the Pipeline tool when using the alpha for self illumination!
상속: Microsoft.Xna.Framework.Graphics.Effect
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
DeferredSpriteEffect ( ) : System
setAlphaCutoff ( float alphaCutoff ) : DeferredSpriteEffect

alpha cutoff for the alpha test. defaults to 0.3

setNormalMap ( Microsoft.Xna.Framework.Graphics.Texture2D normalMap ) : DeferredSpriteEffect
setSelfIlluminationPower ( float selfIlluminationPower ) : DeferredSpriteEffect

controls the power of the self illumination where 0 is no contribution and 1 is fully self illuminated

setUseNormalAlphaChannelForSelfIllumination ( bool useNormalAlphaChannelForSelfIllumination ) : DeferredSpriteEffect

if true, the normal map alpha channel will be used for self illumination. Note that you need to turn off premultiplied alpha in the Pipeline tool when using the alpha for self illumination!

메소드 상세

DeferredSpriteEffect() 공개 메소드

public DeferredSpriteEffect ( ) : System
리턴 System

setAlphaCutoff() 공개 메소드

alpha cutoff for the alpha test. defaults to 0.3
public setAlphaCutoff ( float alphaCutoff ) : DeferredSpriteEffect
alphaCutoff float Alpha cutoff.
리턴 DeferredSpriteEffect

setNormalMap() 공개 메소드

public setNormalMap ( Microsoft.Xna.Framework.Graphics.Texture2D normalMap ) : DeferredSpriteEffect
normalMap Microsoft.Xna.Framework.Graphics.Texture2D
리턴 DeferredSpriteEffect

setSelfIlluminationPower() 공개 메소드

controls the power of the self illumination where 0 is no contribution and 1 is fully self illuminated
public setSelfIlluminationPower ( float selfIlluminationPower ) : DeferredSpriteEffect
selfIlluminationPower float Self illumination power.
리턴 DeferredSpriteEffect

setUseNormalAlphaChannelForSelfIllumination() 공개 메소드

if true, the normal map alpha channel will be used for self illumination. Note that you need to turn off premultiplied alpha in the Pipeline tool when using the alpha for self illumination!
public setUseNormalAlphaChannelForSelfIllumination ( bool useNormalAlphaChannelForSelfIllumination ) : DeferredSpriteEffect
useNormalAlphaChannelForSelfIllumination bool If set to true use normal alpha channel for self illumination.
리턴 DeferredSpriteEffect