Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Friends | List of all members
castor3d::shader::SceneData Struct Reference

#include <SceneUbo.hpp>

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

Public Member Functions

 SceneData (sdw::ShaderWriter &writer, ast::expr::ExprPtr expr, bool enabled)
 
C3D_API sdw::Vec4 getBackgroundColour (Utils &utils, sdw::Float const gamma) const
 
C3D_API sdw::Vec4 getBackgroundColour (HdrConfigData const &hdrConfigData) const
 
C3D_API sdw::Vec4 computeAccumulation (Utils &utils, CameraData const &camera, sdw::Float const &depth, sdw::Vec3 const &colour, sdw::Float const &alpha, sdw::UInt const &accumulationOperator) const
 
auto ambientLight () const
 
auto backgroundColour () const
 
auto fogType () const
 
auto fogDensity () const
 

Friends

struct BillboardData
 
class Fog
 
class CommonFog
 

Constructor & Destructor Documentation

◆ SceneData()

castor3d::shader::SceneData::SceneData ( sdw::ShaderWriter & writer,
ast::expr::ExprPtr expr,
bool enabled )
inline

Member Function Documentation

◆ ambientLight()

auto castor3d::shader::SceneData::ambientLight ( ) const
inline

◆ backgroundColour()

auto castor3d::shader::SceneData::backgroundColour ( ) const
inline

◆ computeAccumulation()

C3D_API sdw::Vec4 castor3d::shader::SceneData::computeAccumulation ( Utils & utils,
CameraData const & camera,
sdw::Float const & depth,
sdw::Vec3 const & colour,
sdw::Float const & alpha,
sdw::UInt const & accumulationOperator ) const

◆ fogDensity()

auto castor3d::shader::SceneData::fogDensity ( ) const
inline

◆ fogType()

auto castor3d::shader::SceneData::fogType ( ) const
inline

◆ getBackgroundColour() [1/2]

C3D_API sdw::Vec4 castor3d::shader::SceneData::getBackgroundColour ( HdrConfigData const & hdrConfigData) const

◆ getBackgroundColour() [2/2]

C3D_API sdw::Vec4 castor3d::shader::SceneData::getBackgroundColour ( Utils & utils,
sdw::Float const gamma ) const

Friends And Related Symbol Documentation

◆ BillboardData

friend struct BillboardData
friend

◆ CommonFog

friend class CommonFog
friend

◆ Fog

friend class Fog
friend

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