VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::GpuLightData Struct Reference

Per-light GPU data uploaded to the lighting uniform buffer. More...

#include <platform/graphics/graphicsDevice.h>

Public Attributes

float areaHalfHeight = 0.0f
float areaHalfWidth = 0.0f
Vector3 areaRight = Vector3(1.0f, 0.0f, 0.0f)
bool castShadows = false
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)
Vector3 direction = Vector3(0.0f, -1.0f, 0.0f)
bool falloffModeLinear = true
float innerConeCos = 1.0f
float intensity = 0.0f
float outerConeCos = 1.0f
Vector3 position = Vector3(0.0f)
float range = 0.0f
int shadowMapIndex = -1
GpuLightType type = GpuLightType::Directional

Detailed Description

Per-light GPU data uploaded to the lighting uniform buffer.

Definition at line 49 of file graphicsDevice.h.

Member Data Documentation

◆ areaHalfHeight

float visutwin::canvas::GpuLightData::areaHalfHeight = 0.0f

Definition at line 67 of file graphicsDevice.h.

◆ areaHalfWidth

float visutwin::canvas::GpuLightData::areaHalfWidth = 0.0f

Definition at line 66 of file graphicsDevice.h.

◆ areaRight

Vector3 visutwin::canvas::GpuLightData::areaRight = Vector3(1.0f, 0.0f, 0.0f)

Definition at line 68 of file graphicsDevice.h.

◆ castShadows

bool visutwin::canvas::GpuLightData::castShadows = false

Definition at line 60 of file graphicsDevice.h.

◆ color

Color visutwin::canvas::GpuLightData::color = Color(1.0f, 1.0f, 1.0f, 1.0f)

Definition at line 54 of file graphicsDevice.h.

◆ direction

Vector3 visutwin::canvas::GpuLightData::direction = Vector3(0.0f, -1.0f, 0.0f)

Definition at line 53 of file graphicsDevice.h.

◆ falloffModeLinear

bool visutwin::canvas::GpuLightData::falloffModeLinear = true

Definition at line 59 of file graphicsDevice.h.

◆ innerConeCos

float visutwin::canvas::GpuLightData::innerConeCos = 1.0f

Definition at line 57 of file graphicsDevice.h.

◆ intensity

float visutwin::canvas::GpuLightData::intensity = 0.0f

Definition at line 55 of file graphicsDevice.h.

◆ outerConeCos

float visutwin::canvas::GpuLightData::outerConeCos = 1.0f

Definition at line 58 of file graphicsDevice.h.

◆ position

Vector3 visutwin::canvas::GpuLightData::position = Vector3(0.0f)

Definition at line 52 of file graphicsDevice.h.

◆ range

float visutwin::canvas::GpuLightData::range = 0.0f

Definition at line 56 of file graphicsDevice.h.

◆ shadowMapIndex

int visutwin::canvas::GpuLightData::shadowMapIndex = -1

Definition at line 63 of file graphicsDevice.h.

◆ type

GpuLightType visutwin::canvas::GpuLightData::type = GpuLightType::Directional

Definition at line 51 of file graphicsDevice.h.


The documentation for this struct was generated from the following file: