载入中...
搜索中...
未找到
eve::graphics::Light3D类 参考
Declarative 3D light. Collected by RenderSystem3D (max 8 per frame). type: "point" | "dir" (≤15 chars). 更多...
#include <Light.h>
类 eve::graphics::Light3D 继承关系图:
类 | |
| struct | Data |
Public 成员函数 | |
| void | release () override |
| 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 | setEnabled (bool enabled) |
| bool | isEnabled () |
| void | setCastShadow (bool cast) |
| bool | getCastShadow () |
| void | setShadowBias (float bias) |
| float | getShadowBias () |
| void | setShadowStrength (float strength) |
| float | getShadowStrength () |
| void | setVolumetric (bool enabled) |
| bool | getVolumetric () |
| void | setVolumetricIntensity (float intensity) |
| float | getVolumetricIntensity () |
静态 Public 成员函数 | |
| static Light3D * | createLight (const std::string &type="point") |
详细描述
Declarative 3D light. Collected by RenderSystem3D (max 8 per frame). type: "point" | "dir" (≤15 chars).
成员函数说明
◆ createLight()
|
static |
◆ getCastShadow()
◆ getDirX()
◆ getDirY()
◆ getDirZ()
◆ getRadius()
◆ getShadowBias()
◆ getShadowStrength()
◆ getType()
◆ getVolumetric()
◆ getVolumetricIntensity()
◆ getX()
◆ getY()
◆ getZ()
◆ isEnabled()
◆ release()
◆ setCastShadow()
◆ setColor()
| void eve::graphics::Light3D::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | intensity = 1.f |
||
| ) |
◆ setDirection()
| void eve::graphics::Light3D::setDirection | ( | float | dx, |
| float | dy, | ||
| float | dz | ||
| ) |
◆ setEnabled()
| void eve::graphics::Light3D::setEnabled | ( | bool | enabled | ) |
◆ setPosition()
| void eve::graphics::Light3D::setPosition | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
◆ setRadius()
| void eve::graphics::Light3D::setRadius | ( | float | radius | ) |
◆ setShadowBias()
◆ setShadowStrength()
◆ setType()
| void eve::graphics::Light3D::setType | ( | const std::string & | type | ) |
◆ setVolumetric()
| void eve::graphics::Light3D::setVolumetric | ( | bool | enabled | ) |
◆ setVolumetricIntensity()
| void eve::graphics::Light3D::setVolumetricIntensity | ( | float | intensity | ) |
该类的文档由以下文件生成: