#include <ATerrainSection.h>
Definition at line 14 of file ATerrainSection.h.
◆ ModelNodeFlags
◆ ModelNodeFlags_
◆ ModelNode()
ATerrainSection::ModelNode::ModelNode |
( |
| ) |
|
Definition at line 392 of file ATerrainSection.cpp.
394{
396}
AWorldMaterial * m_pAnimatedMaterial
char m_szType[TYPE_NAME_MAX_SIZE+1]
◆ ~ModelNode()
ATerrainSection::ModelNode::~ModelNode |
( |
| ) |
|
Definition at line 398 of file ATerrainSection.cpp.
399{
401
403 {
405 }
406}
#define TIMPLEMENT_D(DESC)
Toshi::TSceneObject * m_pSceneObject
◆ GetAnimatedMaterial()
AWorldMaterial * ATerrainSection::ModelNode::GetAnimatedMaterial |
( |
| ) |
const |
|
inline |
◆ IsUsingLighting()
TBOOL ATerrainSection::ModelNode::IsUsingLighting |
( |
| ) |
const |
|
inline |
◆ Render()
void ATerrainSection::ModelNode::Render |
( |
| ) |
|
Definition at line 408 of file ATerrainSection.cpp.
409{
411 {
413
414 if ( pAnimatedMaterial )
415 {
417
419
422 }
423
425 AWorldShaderHAL* pShader =
TSTATICCAST( AWorldShaderHAL, AWorldShader::GetSingleton() );
426
429
432
435 }
436}
#define TSTATICCAST(POINTERTYPE, VALUE)
#define TDYNAMICCAST(T, OBJECT)
TSystemManager g_oSystemManager
TFLOAT GetCurrentDeltaTime() const
TScheduler * GetScheduler() const
void AddUVOffsetY(TUINT a_uiTextureIndex, TFLOAT a_fOffset)
TFLOAT GetUVOffsetY(TUINT a_uiTextureIndex)
void SetColours(const Toshi::TVector4 &a_rShadowColour, const Toshi::TVector4 a_rAmbientColour)
const Toshi::TVector4 & GetDefaultAmbientColor() const
const Toshi::TVector4 & GetLitShadowColor() const
const Toshi::TVector4 & GetLitAmbientColor() const
const Toshi::TVector4 & GetDefaultShadowColor() const
friend class ATerrainInterface
◆ SetGlow()
void ATerrainSection::ModelNode::SetGlow |
( |
TBOOL | a_bIsGlow | ) |
|
Definition at line 446 of file ATerrainSection.cpp.
447{
448 if ( a_bIsGlow )
450 else
452
454 {
456
457 for (
TINT i = 0; i < pModel->GetNumLODs(); i++ )
458 {
459 auto& rLOD = pModel->GetLOD( i );
460
461 for (
TINT k = 0; k < rLOD.iNumMeshes; k++ )
462 {
463 auto pMesh = rLOD.ppMeshes[ k ];
464 auto pMaterial =
TSTATICCAST( AWorldMaterial, pMesh->GetMaterial() );
465
468 pMaterial->SetBlendMode( 3 );
469 }
470 }
471 }
472}
◆ SetUseLighting()
void ATerrainSection::ModelNode::SetUseLighting |
( |
TBOOL | a_bUseLighting | ) |
|
◆ m_bCreated
TBOOL ATerrainSection::ModelNode::m_bCreated |
◆ m_eFlags
◆ m_ModelRef
Toshi::TManagedModel ATerrainSection::ModelNode::m_ModelRef |
◆ m_pAnimatedMaterial
◆ m_pSceneObject
Toshi::TSceneObject* ATerrainSection::ModelNode::m_pSceneObject |
◆ m_szType
◆ m_WorldVis
AWorldVis ATerrainSection::ModelNode::m_WorldVis |
◆ TYPE_NAME_MAX_SIZE
TUINT ATerrainSection::ModelNode::TYPE_NAME_MAX_SIZE = 14 |
|
staticconstexpr |
The documentation for this class was generated from the following files: