HDK
|
#include <RE_Light.h>
Public Types | |
enum | RE_HQLightType { HQLIGHT_AMBIENT, HQLIGHT_DIR, HQLIGHT_ENV, HQLIGHT_POINT, HQLIGHT_SPOT, HQLIGHT_AREA, HQLIGHT_AREA_SPOT, NUM_HQLIGHT_TYPES } |
Static Public Member Functions | |
static void | clearLight (RE_Shader *sh, int index) |
Protected Member Functions | |
void | invalidateShadowMap (bool purge_map=false) |
void | createEnvMap () |
void | getAreaLightProjection (UT_Matrix4 &mat) const |
Definition at line 93 of file RE_Light.h.
Enumerator | |
---|---|
HQLIGHT_AMBIENT | |
HQLIGHT_DIR | |
HQLIGHT_ENV | |
HQLIGHT_POINT | |
HQLIGHT_SPOT | |
HQLIGHT_AREA | |
HQLIGHT_AREA_SPOT | |
NUM_HQLIGHT_TYPES |
Definition at line 374 of file RE_Light.h.
RE_Light::RE_Light | ( | const char * | n = nullptr | ) |
|
virtual |
void RE_Light::attachUserData | ( | RE_LightData * | data, |
int | index | ||
) |
Allows data, like shadow maps, to be stored with the light Attaching data to the light gives it ownership, meaning that it will be deleted when the light is deleted, or when a different data chunk is assigned to the same index. To avoid it being deleted, detach the chunk.
bool RE_Light::beginShadowRender | ( | RE_Render * | r, |
RE_TextureCubeFace | face = RE_TEXTURE_CUBE_POS_X , |
||
int | area_index = 0 |
||
) |
|
inline |
Definition at line 305 of file RE_Light.h.
|
protected |
RE_LightData* RE_Light::detachUserData | ( | int | index | ) |
Allows data, like shadow maps, to be stored with the light Attaching data to the light gives it ownership, meaning that it will be deleted when the light is deleted, or when a different data chunk is assigned to the same index. To avoid it being deleted, detach the chunk.
|
inline |
Definition at line 102 of file RE_Light.h.
void RE_Light::endShadowRender | ( | RE_Render * | r, |
RE_TextureCubeFace | face = RE_TEXTURE_CUBE_POS_X , |
||
int | area_index = 0 |
||
) |
|
inline |
Definition at line 296 of file RE_Light.h.
|
inline |
Definition at line 151 of file RE_Light.h.
|
protected |
|
inline |
Definition at line 154 of file RE_Light.h.
|
inline |
Definition at line 152 of file RE_Light.h.
RE_LightData* RE_Light::getAttachedUserData | ( | int | index | ) | const |
Allows data, like shadow maps, to be stored with the light Attaching data to the light gives it ownership, meaning that it will be deleted when the light is deleted, or when a different data chunk is assigned to the same index. To avoid it being deleted, detach the chunk.
Definition at line 215 of file RE_Light.h.
RE_Texture* RE_Light::getAttenuationRamp | ( | RE_Render * | r | ) |
Definition at line 227 of file RE_Light.h.
Definition at line 220 of file RE_Light.h.
|
inline |
Definition at line 125 of file RE_Light.h.
|
inline |
Definition at line 126 of file RE_Light.h.
|
inline |
Definition at line 207 of file RE_Light.h.
|
inline |
Definition at line 208 of file RE_Light.h.
|
inline |
Definition at line 209 of file RE_Light.h.
|
inline |
Definition at line 307 of file RE_Light.h.
|
inline |
Definition at line 116 of file RE_Light.h.
|
inline |
Definition at line 167 of file RE_Light.h.
|
inline |
Definition at line 658 of file RE_Light.h.
RE_TextureHolder RE_Light::getEnvironmentMap | ( | RE_Render * | r, |
int | max_width | ||
) |
|
inline |
Definition at line 299 of file RE_Light.h.
|
inline |
Definition at line 295 of file RE_Light.h.
|
inline |
Definition at line 300 of file RE_Light.h.
|
inline |
Definition at line 301 of file RE_Light.h.
|
inline |
Definition at line 302 of file RE_Light.h.
const UT_BoundingBoxF& RE_Light::getIlluminationBounds | ( | ) |
|
inline |
Definition at line 130 of file RE_Light.h.
|
inline |
Definition at line 390 of file RE_Light.h.
|
inline |
Definition at line 391 of file RE_Light.h.
|
inline |
Definition at line 395 of file RE_Light.h.
|
inline |
Definition at line 250 of file RE_Light.h.
|
inline |
Definition at line 304 of file RE_Light.h.
bool RE_Light::getLinearShadowMap | ( | ) | const |
|
inline |
Definition at line 99 of file RE_Light.h.
|
inline |
Definition at line 298 of file RE_Light.h.
int RE_Light::getNumAreaMaps | ( | ) | const |
|
inline |
Definition at line 123 of file RE_Light.h.
|
inline |
Definition at line 297 of file RE_Light.h.
|
inline |
Definition at line 112 of file RE_Light.h.
RE_Texture2DMap* RE_Light::getProjectMap | ( | RE_Render * | r | ) |
|
inline |
Definition at line 246 of file RE_Light.h.
|
inline |
Definition at line 247 of file RE_Light.h.
|
inline |
Definition at line 245 of file RE_Light.h.
RE_Texture* RE_Light::getShadowMap | ( | int | area_index = 0 | ) |
RE_ShadowMap* RE_Light::getShadowMap | ( | ) |
Accessor to underlaying shadow map object Each light may have a shadow map object. Turning off shadows on the light will delete the map, so do not cache the pointer. If a shadow map does not exist, this will create a new one.
|
inline |
Definition at line 249 of file RE_Light.h.
fpreal RE_Light::getShadowMapTime | ( | ) | const |
int64 RE_Light::getShadowMapVersion | ( | ) | const |
|
inline |
Definition at line 253 of file RE_Light.h.
|
inline |
Definition at line 248 of file RE_Light.h.
|
inline |
Definition at line 153 of file RE_Light.h.
|
inline |
Definition at line 132 of file RE_Light.h.
|
inline |
Definition at line 133 of file RE_Light.h.
|
inlinevirtual |
Can be used by OP_Node::lookupNode() to return the light object this light is attached to.
Definition at line 171 of file RE_Light.h.
|
inlinevirtual |
Definition at line 164 of file RE_Light.h.
|
inline |
Definition at line 294 of file RE_Light.h.
RE_HQLightType RE_Light::hqLightType | ( | ) | const |
|
protected |
|
inline |
Definition at line 144 of file RE_Light.h.
|
inline |
Definition at line 150 of file RE_Light.h.
|
inline |
Definition at line 155 of file RE_Light.h.
|
inline |
Definition at line 156 of file RE_Light.h.
|
inline |
Definition at line 142 of file RE_Light.h.
|
inline |
Definition at line 158 of file RE_Light.h.
|
inline |
Definition at line 103 of file RE_Light.h.
|
inline |
Definition at line 146 of file RE_Light.h.
|
inline |
Definition at line 148 of file RE_Light.h.
|
inline |
Definition at line 110 of file RE_Light.h.
|
inline |
Definition at line 143 of file RE_Light.h.
bool RE_Light::isLightContributing | ( | ) | const |
|
inline |
Definition at line 145 of file RE_Light.h.
|
inline |
Definition at line 147 of file RE_Light.h.
|
inline |
Definition at line 161 of file RE_Light.h.
|
inline |
Definition at line 159 of file RE_Light.h.
Definition at line 529 of file RE_Light.h.
Definition at line 807 of file RE_Light.h.
|
inline |
Definition at line 564 of file RE_Light.h.
|
inline |
Definition at line 723 of file RE_Light.h.
void RE_Light::setAreaSamplePoints | ( | const UT_Vector3FArray & | pos, |
const UT_Vector3FArray & | dir | ||
) |
void RE_Light::setAreaShape | ( | RE_LightAreaShape | shape | ) |
|
inline |
Definition at line 634 of file RE_Light.h.
|
inline |
Definition at line 734 of file RE_Light.h.
Definition at line 694 of file RE_Light.h.
Definition at line 711 of file RE_Light.h.
Definition at line 862 of file RE_Light.h.
|
inline |
Definition at line 489 of file RE_Light.h.
Definition at line 547 of file RE_Light.h.
Definition at line 194 of file RE_Light.h.
Definition at line 309 of file RE_Light.h.
Definition at line 767 of file RE_Light.h.
|
inline |
Definition at line 117 of file RE_Light.h.
|
inline |
Definition at line 594 of file RE_Light.h.
Definition at line 647 of file RE_Light.h.
void RE_Light::setEnvironmentFormat | ( | RE_TextureCompress | format | ) |
void RE_Light::setEnvironmentMap | ( | const char * | name, |
const char * | relativeTo | ||
) |
void RE_Light::setEnvironmentMipmap | ( | bool | onoff | ) |
Definition at line 674 of file RE_Light.h.
Definition at line 797 of file RE_Light.h.
Definition at line 291 of file RE_Light.h.
Definition at line 288 of file RE_Light.h.
|
inline |
Definition at line 615 of file RE_Light.h.
|
inline |
Definition at line 109 of file RE_Light.h.
Definition at line 511 of file RE_Light.h.
Definition at line 500 of file RE_Light.h.
Definition at line 844 of file RE_Light.h.
Definition at line 837 of file RE_Light.h.
|
inline |
Definition at line 393 of file RE_Light.h.
Definition at line 238 of file RE_Light.h.
void RE_Light::setLinearShadowMap | ( | bool | linear | ) |
void RE_Light::setMultiMap | ( | bool | m | ) |
|
inline |
Definition at line 100 of file RE_Light.h.
Definition at line 664 of file RE_Light.h.
|
inline |
Definition at line 756 of file RE_Light.h.
|
inline |
Definition at line 119 of file RE_Light.h.
Definition at line 817 of file RE_Light.h.
|
inline |
Definition at line 583 of file RE_Light.h.
|
inline |
Definition at line 113 of file RE_Light.h.
void RE_Light::setProjectMap | ( | const char * | name, |
const char * | relativeTo | ||
) |
void RE_Light::setProjectMapFormat | ( | RE_TextureCompress | format | ) |
void RE_Light::setProjectMapMipmap | ( | bool | onoff | ) |
Definition at line 850 of file RE_Light.h.
void RE_Light::setSceneBounds | ( | const UT_BoundingBox & | scene | ) |
Definition at line 235 of file RE_Light.h.
Definition at line 236 of file RE_Light.h.
void RE_Light::setShadowed | ( | bool | onoff | ) |
Definition at line 234 of file RE_Light.h.
|
inline |
Definition at line 684 of file RE_Light.h.
Definition at line 237 of file RE_Light.h.
Definition at line 777 of file RE_Light.h.
Definition at line 745 of file RE_Light.h.
Definition at line 856 of file RE_Light.h.
|
inline |
Definition at line 827 of file RE_Light.h.
void RE_Light::setViewFrustum | ( | UT_Vector3FArray & | pnts, |
UT_Vector3F & | cam | ||
) |
Definition at line 787 of file RE_Light.h.
void RE_Light::updateAreaLightingBlock | ( | RE_Render * | r, |
RE_UniformBlock * | block, | ||
int | light_index, | ||
const char * | light_pref | ||
) | const |
void RE_Light::updateBasicBlock | ( | RE_UniformBlock * | lighting_block, |
int | light_index, | ||
const char * | light_prefix | ||
) |
void RE_Light::updateHQLightingBlock | ( | RE_Render * | r, |
RE_UniformBlock * | block, | ||
int | light_index, | ||
const char * | light_prefix | ||
) | const |
|
protected |
Definition at line 410 of file RE_Light.h.
|
protected |
Definition at line 440 of file RE_Light.h.
|
protected |
Definition at line 420 of file RE_Light.h.
|
protected |
Definition at line 461 of file RE_Light.h.
|
protected |
Definition at line 485 of file RE_Light.h.
|
protected |
Definition at line 465 of file RE_Light.h.
|
protected |
Definition at line 466 of file RE_Light.h.
|
protected |
Definition at line 448 of file RE_Light.h.
|
protected |
Definition at line 464 of file RE_Light.h.
|
protected |
Definition at line 403 of file RE_Light.h.
|
protected |
Definition at line 403 of file RE_Light.h.
|
protected |
Definition at line 463 of file RE_Light.h.
|
protected |
Definition at line 478 of file RE_Light.h.
|
protected |
Definition at line 425 of file RE_Light.h.
|
protected |
Definition at line 455 of file RE_Light.h.
|
protected |
Definition at line 456 of file RE_Light.h.
|
protected |
Definition at line 459 of file RE_Light.h.
|
protected |
Definition at line 458 of file RE_Light.h.
|
protected |
Definition at line 457 of file RE_Light.h.
|
protected |
Definition at line 426 of file RE_Light.h.
|
protected |
Definition at line 482 of file RE_Light.h.
|
protected |
Definition at line 475 of file RE_Light.h.
|
protected |
Definition at line 476 of file RE_Light.h.
|
protected |
Definition at line 479 of file RE_Light.h.
|
protected |
Definition at line 403 of file RE_Light.h.
|
protected |
Definition at line 452 of file RE_Light.h.
|
protected |
Definition at line 415 of file RE_Light.h.
|
protected |
Definition at line 419 of file RE_Light.h.
|
protected |
Definition at line 419 of file RE_Light.h.
|
protected |
Definition at line 419 of file RE_Light.h.
|
protected |
Definition at line 403 of file RE_Light.h.
|
protected |
Definition at line 403 of file RE_Light.h.
|
protected |
Definition at line 414 of file RE_Light.h.
|
protected |
Definition at line 473 of file RE_Light.h.
|
protected |
Definition at line 430 of file RE_Light.h.
|
protected |
Definition at line 429 of file RE_Light.h.
|
protected |
Definition at line 423 of file RE_Light.h.
|
protected |
Definition at line 420 of file RE_Light.h.
|
protected |
Definition at line 468 of file RE_Light.h.
|
protected |
Definition at line 469 of file RE_Light.h.
|
protected |
Definition at line 470 of file RE_Light.h.
|
protected |
Definition at line 402 of file RE_Light.h.
|
protected |
Definition at line 483 of file RE_Light.h.
|
protected |
Definition at line 418 of file RE_Light.h.
|
protected |
Definition at line 449 of file RE_Light.h.
|
protected |
Definition at line 412 of file RE_Light.h.
|
protected |
Definition at line 447 of file RE_Light.h.
|
protected |
Definition at line 472 of file RE_Light.h.
|
protected |
Definition at line 431 of file RE_Light.h.
|
protected |
Definition at line 427 of file RE_Light.h.
|
protected |
Definition at line 411 of file RE_Light.h.
|
protected |
Definition at line 422 of file RE_Light.h.
|
protected |
Definition at line 403 of file RE_Light.h.
|
protected |
Definition at line 416 of file RE_Light.h.
|
protected |
Definition at line 421 of file RE_Light.h.
|
protected |
Definition at line 413 of file RE_Light.h.
|
protected |
Definition at line 439 of file RE_Light.h.
|
protected |
Definition at line 435 of file RE_Light.h.
|
protected |
Definition at line 437 of file RE_Light.h.
|
protected |
Definition at line 436 of file RE_Light.h.
|
protected |
Definition at line 433 of file RE_Light.h.
|
protected |
Definition at line 434 of file RE_Light.h.
|
protected |
Definition at line 438 of file RE_Light.h.
|
protected |
Definition at line 450 of file RE_Light.h.
|
protected |
Definition at line 442 of file RE_Light.h.
|
protected |
Definition at line 484 of file RE_Light.h.
|
protected |
Definition at line 443 of file RE_Light.h.
|
protected |
Definition at line 441 of file RE_Light.h.
|
protected |
Definition at line 454 of file RE_Light.h.
|
protected |
Definition at line 445 of file RE_Light.h.
|
protected |
Definition at line 446 of file RE_Light.h.
|
protected |
Definition at line 444 of file RE_Light.h.
|
protected |
Definition at line 462 of file RE_Light.h.
|
protected |
Definition at line 451 of file RE_Light.h.
|
protected |
Definition at line 417 of file RE_Light.h.
|
protected |
Definition at line 403 of file RE_Light.h.
|
protected |
Definition at line 424 of file RE_Light.h.
|
protected |
Definition at line 428 of file RE_Light.h.