|
| void | release () override |
| | Entity.
|
| |
| void | setType (const std::string &type) |
| |
| std::string | getType () |
| |
| void | setPosition (float x, float y, float z) |
| |
| float | getX () |
| |
| float | getY () |
| |
| float | getZ () |
| |
| void | setDirection (float dx, float dy, float dz) |
| |
| float | getDirX () |
| |
| float | getDirY () |
| |
| float | getDirZ () |
| |
| void | setColor (float r, float g, float b, float intensity=1.f) |
| |
| void | setRadius (float radius) |
| |
| float | getRadius () |
| |
| void | setSpotAngle (float degrees) |
| | Outer half-angle of a 3D spot cone in degrees (clamped to (0, 89]).
|
| |
| float | getSpotAngle () |
| | Current spot outer half-angle in degrees.
|
| |
| void | setSpotSoftness (float softness) |
| | Softness of the spot penumbra in [0, 1].
|
| |
| float | getSpotSoftness () |
| | Current spot softness in [0, 1].
|
| |
| void | setEnabled (bool enabled) |
| |
| bool | isEnabled () |
| |
| void | setCastShadow (bool cast) |
| |
| bool | getCastShadow () |
| |
| void | setShadowMethod (const std::string &method) |
| | Request a shadow technique: auto, none, csm, perspective, cube. Invalid names leave the previous method unchanged.
|
| |
| std::string | getShadowMethod () |
| | Current shadow method name (auto / none / csm / perspective / cube).
|
| |
| void | setShadowBias (float bias) |
| |
| float | getShadowBias () |
| |
| void | setShadowStrength (float strength) |
| |
| float | getShadowStrength () |
| |
| void | setVolumetric (bool enabled) |
| |
| bool | getVolumetric () |
| |
| void | setVolumetricIntensity (float intensity) |
| |
| float | getVolumetricIntensity () |
| |
| void | setVolumetricOnly (bool enabled) |
| |
| bool | getVolumetricOnly () |
| |
Declarative 3D light. Collected by RenderSystem3D (max 8 per frame). type: "point" | "dir" | "spot" (≤15 chars).
在文件 Light.h 第 191 行定义.
| Light3D * eve::graphics::Light3D::createEmissiveProxy |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
intensity = 1.f, |
|
|
float |
radius = 8.f |
|
) |
| |
|
static |
Create a volumetric-only point glow proxy for emissive props. Pair with a PBR emissive material + bloom for the surface look; this light drives froxel / raymarch shafts without double-lighting the mesh. @ownership ECS owns the result. @lifetime Valid until ECS destroys the entity.
在文件 Light.cpp 第 98 行定义.
引用了 b, createLight(), g, r, radius, setCastShadow(), setColor(), setPosition(), setRadius(), setVolumetric(), setVolumetricIntensity(), setVolumetricOnly(), x, y , 以及 z.
| void eve::graphics::Light3D::setShadowMethod |
( |
const std::string & |
method | ) |
|
Request a shadow technique: auto, none, csm, perspective, cube. Invalid names leave the previous method unchanged.
在文件 Light.cpp 第 170 行定义.
引用了 a, b, method , 以及 value.