C# Класс Nez.DeferredLighting.SpotLight

Наследование: PointLight
Показать файл Открыть проект Примеры использования класса

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

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

Открытые методы

Метод Описание
SpotLight ( ) : System
SpotLight ( Color color ) : System
setConeAngle ( float coneAngle ) : SpotLight
setDirection ( Vector2 direction ) : SpotLight

wrapper for entity.transform.rotation to ease in setting up direction of spots to point at specific locations

setIntensity ( float intensity ) : SpotLight

brightness of the light

setRadius ( float radius ) : SpotLight

how far does this light reach

setZPosition ( float z ) : SpotLight

Описание методов

SpotLight() публичный Метод

public SpotLight ( ) : System
Результат System

SpotLight() публичный Метод

public SpotLight ( Color color ) : System
color Color
Результат System

setConeAngle() публичный Метод

public setConeAngle ( float coneAngle ) : SpotLight
coneAngle float
Результат SpotLight

setDirection() публичный Метод

wrapper for entity.transform.rotation to ease in setting up direction of spots to point at specific locations
public setDirection ( Vector2 direction ) : SpotLight
direction Vector2 Direction.
Результат SpotLight

setIntensity() публичный Метод

brightness of the light
public setIntensity ( float intensity ) : SpotLight
intensity float Intensity.
Результат SpotLight

setRadius() публичный Метод

how far does this light reach
public setRadius ( float radius ) : SpotLight
radius float Radius.
Результат SpotLight

setZPosition() публичный Метод

public setZPosition ( float z ) : SpotLight
z float
Результат SpotLight

Описание свойств

coneAngle публичное свойство

angle in degrees of the cone
public float coneAngle
Результат float