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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
intensity float
zPosition float

Защищенные свойства (Protected)

Свойство Тип Описание
_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