载入中...
搜索中...
未找到
eve::graphics::Light2D::Data结构体 参考

Data public API. 更多...

#include <Light.h>

Public 属性

std::string type = "point"
 
float x = 0.f
 
float y = 0.f
 
float dx = 0.f
 
float dy = -1.f
 
float r = 1.f
 
float g = 1.f
 
float b = 1.f
 
float intensity = 1.f
 
float radius = 200.f
 
float spotAngleDeg = 30.f
 Spot outer half-angle in degrees (flashlight cone aperture / 2).
 
float spotSoftness = 0.35f
 Spot penumbra: 0 = hard edge, 1 = soft falloff from axis to rim.
 
bool enabled = true
 
bool volumetric = false
 Contribute as volumetric shaft source when collecting occlusion maps.
 
float volumetricIntensity = 1.f
 
bool volumetricOnly = false
 When true with volumetric, skip lit2d surface packing and only drive screenspace shafts (emissive-glow proxy for neon/sprites).
 
Canvas * canvas = nullptr
 
Light2D * entity = nullptr
 

详细描述

Data public API.

在文件 Light.h 第 73 行定义.

类成员变量说明

◆ b

float eve::graphics::Light2D::Data::b = 1.f

在文件 Light.h 第 79 行定义.

◆ canvas

Canvas* eve::graphics::Light2D::Data::canvas = nullptr

在文件 Light.h 第 95 行定义.

◆ dx

float eve::graphics::Light2D::Data::dx = 0.f

在文件 Light.h 第 77 行定义.

◆ dy

float eve::graphics::Light2D::Data::dy = -1.f

在文件 Light.h 第 78 行定义.

◆ enabled

bool eve::graphics::Light2D::Data::enabled = true

在文件 Light.h 第 86 行定义.

◆ entity

Light2D* eve::graphics::Light2D::Data::entity = nullptr

在文件 Light.h 第 96 行定义.

◆ g

float eve::graphics::Light2D::Data::g = 1.f

在文件 Light.h 第 79 行定义.

◆ intensity

float eve::graphics::Light2D::Data::intensity = 1.f

在文件 Light.h 第 80 行定义.

◆ r

float eve::graphics::Light2D::Data::r = 1.f

在文件 Light.h 第 79 行定义.

◆ radius

float eve::graphics::Light2D::Data::radius = 200.f

在文件 Light.h 第 81 行定义.

◆ spotAngleDeg

float eve::graphics::Light2D::Data::spotAngleDeg = 30.f

Spot outer half-angle in degrees (flashlight cone aperture / 2).

在文件 Light.h 第 83 行定义.

◆ spotSoftness

float eve::graphics::Light2D::Data::spotSoftness = 0.35f

Spot penumbra: 0 = hard edge, 1 = soft falloff from axis to rim.

在文件 Light.h 第 85 行定义.

◆ type

std::string eve::graphics::Light2D::Data::type = "point"

在文件 Light.h 第 74 行定义.

◆ volumetric

bool eve::graphics::Light2D::Data::volumetric = false

Contribute as volumetric shaft source when collecting occlusion maps.

在文件 Light.h 第 88 行定义.

◆ volumetricIntensity

float eve::graphics::Light2D::Data::volumetricIntensity = 1.f

在文件 Light.h 第 89 行定义.

◆ volumetricOnly

bool eve::graphics::Light2D::Data::volumetricOnly = false

When true with volumetric, skip lit2d surface packing and only drive screenspace shafts (emissive-glow proxy for neon/sprites).

在文件 Light.h 第 94 行定义.

◆ x

float eve::graphics::Light2D::Data::x = 0.f

在文件 Light.h 第 75 行定义.

◆ y

float eve::graphics::Light2D::Data::y = 0.f

在文件 Light.h 第 76 行定义.


该结构体的文档由以下文件生成: