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

#include <GlslLight.hpp>

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

Public Member Functions

C3D_API PointLight (sdw::ShaderWriter &writer, ast::expr::ExprPtr expr, bool enabled)
 
 SDW_DeclStructInstance (C3D_API, PointLight)
 
C3D_API sdw::Float getAttenuationFactor (sdw::Float const &distance) const
 

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::Vec3 position
 

Friends

class LightingModel
 

Constructor & Destructor Documentation

◆ PointLight()

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

Member Function Documentation

◆ declare()

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

◆ getAttenuationFactor()

C3D_API sdw::Float castor3d::shader::PointLight::getAttenuationFactor ( sdw::Float const &  distance) const

◆ makeType()

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

◆ SDW_DeclStructInstance()

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

Friends And Related Function Documentation

◆ LightingModel

friend class LightingModel
friend

Member Data Documentation

◆ base

Light castor3d::shader::PointLight::base

◆ position

sdw::Vec3 castor3d::shader::PointLight::position

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