This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Режимы вывода изображения
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
API Samples
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
Унифицированный язык шейдеров UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine::LightLensFlare Class

Header: #include <UnigineLights.h>

This class is used to manage billboards used for the per-light lens flares effect.

Notice
The lens flare effect must be enabled for the light source. This feature is available only for: Omni Lights, Projected Lights and World Lights.

See Also#

Description of lens flare settings.

LightLensFlare Class

Members


void setName ( const char * name ) #

Sets a new name for the lens flare billboard.

Arguments

  • const char * name - Billboard name to be set.

const char * getName ( ) #

Returns the current name of the lens flare billboard.

Return value

Current billboard name.

void setColor ( const Math::vec4 & color ) #

Sets a new color for the lens flare billboard.

Arguments

  • const Math::vec4 & color - Billboard color to be set.

Math::vec4 getColor ( ) #

Returns the current color of the lens flare billboard.

Return value

Current billboard color.

void setSize ( float size ) #

Sets a new size for the lens flare billboard.

Arguments

  • float size - Billboard size to be set.

float getSize ( ) #

Returns the current size of the lens flare billboard.

Return value

Current billboard size.

void setIntensity ( float intensity ) #

Sets a new intensity value for the lens flare billboard.

Arguments

  • float intensity - Billboard intensity to be set. The color of the billboard is multiplied by this value. The higher the value, the brighter the flare will be.

float getIntensity ( ) #

Returns the current intensity of the lens flare billboard.

Return value

Current billboard intensity. The color of the billboard is multiplied by this value. The higher the value, the brighter the flare will be.

void setOffset ( float offset ) #

Sets a new offset value for the lens flare billboard. The offset determines the distance from the light source along the vector oriented from the light source to the screen center.

Arguments

  • float offset - Billboard offset value to be set. The lower the absolute value is, the closer to the light source the billboard will be. Negative values indicate that the distance is measured in the opposite direction.

float getOffset ( ) #

Returns the current offset value for the lens flare billboard. It is the offset from the light source along the direction of the light ray.

Return value

Current billboard offset value. The lower the absolute value is, the closer to the light source the billboard will be. Negative values indicate that the distance is measured in the opposite direction.

void setOffsetScale ( float scale ) #

Sets the offset-dependent scale factor for the lens flare billboard.

Arguments

  • float scale - Scale factor to be used. As the offset from the light source increases:
    • values less than 1.0f will make the billboard shrink.
    • values greater than 1.0f will make the billboard grow.

float getOffsetScale ( ) #

Returns the current offset-dependent scale factor for the lens flare billboard.

Return value

Current scale factor. As the offset from the light source increases:
  • values less than 1.0f will make the billboard shrink.
  • values greater than 1.0f will make the billboard grow.

void setUVLowerLeft ( const Math::vec2 & left ) #

Sets the UV texture coordinates of the lower left corner of the lens flare billboard.

Arguments

  • const Math::vec2 & left - UV texture coordinates of the lower left corner of the lens flare billboard.

Math::vec2 getUVLowerLeft ( ) #

Returns the current UV texture coordinates of the lower left corner of the lens flare billboard.

Return value

Current UV texture coordinates of the lower left corner of the lens flare billboard.

void setUVUpperRight ( const Math::vec2 & right ) #

Sets the UV texture coordinates of the upper right corner of the lens flare billboard.

Arguments

  • const Math::vec2 & right - UV texture coordinates of the the upper right corner of the lens flare billboard.

Math::vec2 getUVUpperRight ( ) #

Returns the current UV texture coordinates of the upper rightcorner of the lens flare billboard.

Return value

Current UV texture coordinates of the the upper right corner of the lens flare billboard.

void setRotate ( int rotate ) #

Enables or disables rotation of the lens flare billboard. When enabled the top of the billboard will always face the center of the screen.

Arguments

  • int rotate - 1 to rotation of the lens flare billboard, 0 to disable. The default value is 0.

int isRotate ( ) #

Returns a value indicating if rotation of the lens flare billboard is enabled. When enabled the top of the billboard will always face the center of the screen.

Return value

1 if rotation of the lens flare billboard is enabled; otherwise, 0.
Last update: 17.02.2021
Build: ()