Castor3D 0.17.0
Multiplatform 3D engine
Public Member Functions | Public Attributes | List of all members
castor3d::shader::DirectLighting Struct Reference

#include <GlslOutputComponents.hpp>

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

Public Member Functions

C3D_API DirectLighting (sdw::ShaderWriter &writer, sdw::expr::ExprPtr expr, bool enabled)
 
C3D_API DirectLighting (sdw::ShaderWriter &writer)
 
C3D_API void attenuate (sdw::Float const attenuation, bool withScattering, bool withDiffuse)
 
C3D_API void registerDebug (DebugOutputCategory const &debugOutput) const
 
C3D_API DirectLightingoperator+= (DirectLighting const &rhs)
 
C3D_API DirectLightingoperator*= (sdw::Float const &rhs)
 

Public Attributes

sdw::Vec3 diffuse
 
sdw::Vec3 specular
 
sdw::Vec3 dielectric
 
sdw::Vec3 metal
 
sdw::Vec3 scattering
 
sdw::Vec3 coating
 
sdw::Vec4 sheen
 

Constructor & Destructor Documentation

◆ DirectLighting() [1/2]

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

◆ DirectLighting() [2/2]

C3D_API castor3d::shader::DirectLighting::DirectLighting ( sdw::ShaderWriter & writer)
explicit

Member Function Documentation

◆ attenuate()

C3D_API void castor3d::shader::DirectLighting::attenuate ( sdw::Float const attenuation,
bool withScattering,
bool withDiffuse )

◆ operator*=()

C3D_API DirectLighting & castor3d::shader::DirectLighting::operator*= ( sdw::Float const & rhs)

◆ operator+=()

C3D_API DirectLighting & castor3d::shader::DirectLighting::operator+= ( DirectLighting const & rhs)

◆ registerDebug()

C3D_API void castor3d::shader::DirectLighting::registerDebug ( DebugOutputCategory const & debugOutput) const

Member Data Documentation

◆ coating

sdw::Vec3 castor3d::shader::DirectLighting::coating

◆ dielectric

sdw::Vec3 castor3d::shader::DirectLighting::dielectric

◆ diffuse

sdw::Vec3 castor3d::shader::DirectLighting::diffuse

◆ metal

sdw::Vec3 castor3d::shader::DirectLighting::metal

◆ scattering

sdw::Vec3 castor3d::shader::DirectLighting::scattering

◆ sheen

sdw::Vec4 castor3d::shader::DirectLighting::sheen

◆ specular

sdw::Vec3 castor3d::shader::DirectLighting::specular

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