class
MRectLightComponent
- Module
- Game
- Header
#include "Game/MRectLightComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
Vec3 | color | Default Vec3(1.0f, 1.0f, 1.0f). |
float | intensity | Default 1.0f. |
int32_t | intensityUnits | Default 0. |
float | colorTemperature | Default 0.0f. |
float | radius | Default 10.0f. |
int32_t | areaShape | Default 0. |
float | sourceWidth | Default 1.0f. |
float | sourceHeight | Default 1.0f. |
bool | twoSided | Default false. |
float | contactShadowLength | Default 0.0f. |
uint32_t | lightChannels | Default 1. |
bool | castShadows | Default false. |
float | shadowBias | Default 1.0f. |
int32_t | shadowResolutionBias | Default 0. |
float | shadowNearPlane | Default 0.1f. |
float | volumetricScattering | Default 1.0f. |
std::string | lightFunctionMaterial | A material evaluated every frame and projected through the light (LightComponent::lightFunctionMaterialPath). Empty = none. |
Constructors
| Signature | Name | Description |
|---|---|---|
MRectLightComponent() = default | MRectLightComponent | |
~MRectLightComponent() override = default | ~MRectLightComponent |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnRegister | |
void | RefreshMirror | |
void | PullFromMirror |
Function details
MRectLightComponent
C++
MRectLightComponent() = default~MRectLightComponent
C++
~MRectLightComponent() override = defaultOnRegister
C++
void OnRegister() overrideRefreshMirror
C++
void RefreshMirror() overridePullFromMirror
C++
void PullFromMirror(World* ecs, EntityID entity) overrideGenerated from Game/MRectLightComponent.h via game.json · Nov 5, 2026Version 1.0.0