载入中...
搜索中...
未找到
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 Light3DcreateLight (const std::string &type="point")
 

详细描述

Declarative 3D light. Collected by RenderSystem3D (max 8 per frame). type: "point" | "dir" (≤15 chars).

在文件 Light.h101 行定义.

成员函数说明

◆ createLight()

Light3D * eve::graphics::Light3D::createLight ( const std::string &  type = "point")
static

在文件 Light.cpp63 行定义.

引用了 setType() , 以及 type.

被这些函数引用 eve::daynight::DayNight::addFirefly() , 以及 eve::daynight::DayNight::init().

◆ getCastShadow()

bool eve::graphics::Light3D::getCastShadow ( )

在文件 Light.cpp118 行定义.

引用了 data.

◆ getDirX()

float eve::graphics::Light3D::getDirX ( )

在文件 Light.cpp99 行定义.

引用了 data.

◆ getDirY()

float eve::graphics::Light3D::getDirY ( )

在文件 Light.cpp100 行定义.

引用了 data.

◆ getDirZ()

float eve::graphics::Light3D::getDirZ ( )

在文件 Light.cpp101 行定义.

引用了 data.

◆ getRadius()

float eve::graphics::Light3D::getRadius ( )

在文件 Light.cpp112 行定义.

引用了 data.

◆ getShadowBias()

float eve::graphics::Light3D::getShadowBias ( )

在文件 Light.cpp121 行定义.

引用了 data.

◆ getShadowStrength()

float eve::graphics::Light3D::getShadowStrength ( )

在文件 Light.cpp126 行定义.

引用了 data.

◆ getType()

std::string eve::graphics::Light3D::getType ( )

在文件 Light.cpp79 行定义.

引用了 data.

◆ getVolumetric()

bool eve::graphics::Light3D::getVolumetric ( )

在文件 Light.cpp129 行定义.

引用了 data.

◆ getVolumetricIntensity()

float eve::graphics::Light3D::getVolumetricIntensity ( )

在文件 Light.cpp134 行定义.

引用了 data.

◆ getX()

float eve::graphics::Light3D::getX ( )

在文件 Light.cpp88 行定义.

引用了 data.

◆ getY()

float eve::graphics::Light3D::getY ( )

在文件 Light.cpp89 行定义.

引用了 data.

◆ getZ()

float eve::graphics::Light3D::getZ ( )

在文件 Light.cpp90 行定义.

引用了 data.

◆ isEnabled()

bool eve::graphics::Light3D::isEnabled ( )

在文件 Light.cpp115 行定义.

引用了 data.

◆ release()

void eve::graphics::Light3D::release ( )
inlineoverride

在文件 Light.h105 行定义.

◆ setCastShadow()

void eve::graphics::Light3D::setCastShadow ( bool  cast)

在文件 Light.cpp117 行定义.

引用了 data.

◆ setColor()

void eve::graphics::Light3D::setColor ( float  r,
float  g,
float  b,
float  intensity = 1.f 
)

在文件 Light.cpp103 行定义.

引用了 b, d , 以及 data.

被这些函数引用 eve::daynight::DayNight::addFirefly(), eve::daynight::DayNight::init() , 以及 eve::daynight::DayNight::setFirePosition().

◆ setDirection()

void eve::graphics::Light3D::setDirection ( float  dx,
float  dy,
float  dz 
)

在文件 Light.cpp92 行定义.

引用了 d , 以及 data.

被这些函数引用 eve::daynight::DayNight::init() , 以及 eve::daynight::DayNight::update().

◆ setEnabled()

void eve::graphics::Light3D::setEnabled ( bool  enabled)

在文件 Light.cpp114 行定义.

引用了 data , 以及 enabled.

被这些函数引用 eve::daynight::DayNight::addFirefly(), eve::daynight::DayNight::init() , 以及 eve::daynight::DayNight::update().

◆ setPosition()

void eve::graphics::Light3D::setPosition ( float  x,
float  y,
float  z 
)

◆ setRadius()

void eve::graphics::Light3D::setRadius ( float  radius)

◆ setShadowBias()

void eve::graphics::Light3D::setShadowBias ( float  bias)

在文件 Light.cpp120 行定义.

引用了 data.

◆ setShadowStrength()

void eve::graphics::Light3D::setShadowStrength ( float  strength)

在文件 Light.cpp123 行定义.

引用了 data.

◆ setType()

void eve::graphics::Light3D::setType ( const std::string &  type)

在文件 Light.cpp71 行定义.

引用了 d, data , 以及 type.

被这些函数引用 createLight().

◆ setVolumetric()

void eve::graphics::Light3D::setVolumetric ( bool  enabled)

在文件 Light.cpp128 行定义.

引用了 data , 以及 enabled.

◆ setVolumetricIntensity()

void eve::graphics::Light3D::setVolumetricIntensity ( float  intensity)

在文件 Light.cpp131 行定义.

引用了 data.


该类的文档由以下文件生成: