Castor3D 0.12.0
Multiplatform 3D engine
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
castor3d::shader::DirectionalLight Struct Reference

#include <GlslLight.hpp>

Inheritance diagram for castor3d::shader::DirectionalLight:
Inheritance graph
[legend]
Collaboration diagram for castor3d::shader::DirectionalLight:
Collaboration graph
[legend]

Public Member Functions

C3D_API DirectionalLight (sdw::ShaderWriter &writer, ast::expr::ExprPtr expr, bool enabled)
 
 SDW_DeclStructInstance (C3D_API, DirectionalLight)
 

Static Public Member Functions

static C3D_API ast::type::BaseStructPtr makeType (ast::type::TypesCache &cache)
 
static C3D_API std::unique_ptr< sdw::Struct > declare (sdw::ShaderWriter &writer)
 

Public Attributes

Light base
 
sdw::Vec4 splitDepths
 
sdw::Vec4 splitScales
 
sdw::Array< sdw::Mat4 > transforms
 
sdw::Vec3 direction
 
sdw::UInt cascadeCount
 

Friends

class LightingModel
 

Constructor & Destructor Documentation

◆ DirectionalLight()

C3D_API castor3d::shader::DirectionalLight::DirectionalLight ( sdw::ShaderWriter &  writer,
ast::expr::ExprPtr  expr,
bool  enabled 
)

Member Function Documentation

◆ declare()

static C3D_API std::unique_ptr< sdw::Struct > castor3d::shader::DirectionalLight::declare ( sdw::ShaderWriter &  writer)
static

◆ makeType()

static C3D_API ast::type::BaseStructPtr castor3d::shader::DirectionalLight::makeType ( ast::type::TypesCache &  cache)
static

◆ SDW_DeclStructInstance()

castor3d::shader::DirectionalLight::SDW_DeclStructInstance ( C3D_API  ,
DirectionalLight   
)

Friends And Related Function Documentation

◆ LightingModel

friend class LightingModel
friend

Member Data Documentation

◆ base

Light castor3d::shader::DirectionalLight::base

◆ cascadeCount

sdw::UInt castor3d::shader::DirectionalLight::cascadeCount

◆ direction

sdw::Vec3 castor3d::shader::DirectionalLight::direction

◆ splitDepths

sdw::Vec4 castor3d::shader::DirectionalLight::splitDepths

◆ splitScales

sdw::Vec4 castor3d::shader::DirectionalLight::splitScales

◆ transforms

sdw::Array< sdw::Mat4 > castor3d::shader::DirectionalLight::transforms

The documentation for this struct was generated from the following file: