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

#include <GlslLight.hpp>

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

Public Member Functions

C3D_API Light (sdw::ShaderWriter &writer, ast::expr::ExprPtr expr, bool enabled)
 
 SDW_DeclStructInstance (C3D_API, Light)
 
void updateShadowType (ShadowType type)
 

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

sdw::Vec3 colour
 
sdw::Vec2 intensity
 
sdw::Float farPlane
 
sdw::Int shadowType
 
sdw::Int index
 
sdw::UInt volumetricSteps
 
sdw::Float volumetricScattering
 
sdw::Vec2 rawShadowOffsets
 
sdw::Vec2 pcfShadowOffsets
 
sdw::Vec2 vsmShadowVariance
 

Friends

class LightingModel
 

Constructor & Destructor Documentation

◆ Light()

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

Member Function Documentation

◆ declare()

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

◆ makeType()

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

◆ SDW_DeclStructInstance()

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

◆ updateShadowType()

void castor3d::shader::Light::updateShadowType ( ShadowType  type)
inline

Friends And Related Function Documentation

◆ LightingModel

friend class LightingModel
friend

Member Data Documentation

◆ colour

sdw::Vec3 castor3d::shader::Light::colour

◆ farPlane

sdw::Float castor3d::shader::Light::farPlane

◆ index

sdw::Int castor3d::shader::Light::index

◆ intensity

sdw::Vec2 castor3d::shader::Light::intensity

◆ pcfShadowOffsets

sdw::Vec2 castor3d::shader::Light::pcfShadowOffsets

◆ rawShadowOffsets

sdw::Vec2 castor3d::shader::Light::rawShadowOffsets

◆ shadowType

sdw::Int castor3d::shader::Light::shadowType

◆ volumetricScattering

sdw::Float castor3d::shader::Light::volumetricScattering

◆ volumetricSteps

sdw::UInt castor3d::shader::Light::volumetricSteps

◆ vsmShadowVariance

sdw::Vec2 castor3d::shader::Light::vsmShadowVariance

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