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

#include <GlslRay.hpp>

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

Public Member Functions

C3D_API Ray (sdw::ShaderWriter &writer, ast::expr::ExprPtr expr, bool enabled)
 
C3D_API Ray (sdw::ShaderWriter &writer)
 
C3D_API Ray (sdw::ShaderWriter &writer, sdw::Vec3 const &o)
 
C3D_API Ray (sdw::ShaderWriter &writer, sdw::Vec3 const &o, sdw::Vec3 const &d)
 
C3D_API sdw::Vec3 step (sdw::Float const &t) const
 

Public Attributes

sdw::Vec3 origin
 
sdw::Vec3 direction
 

Constructor & Destructor Documentation

◆ Ray() [1/4]

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

◆ Ray() [2/4]

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

◆ Ray() [3/4]

C3D_API castor3d::shader::Ray::Ray ( sdw::ShaderWriter & writer,
sdw::Vec3 const & o )

◆ Ray() [4/4]

C3D_API castor3d::shader::Ray::Ray ( sdw::ShaderWriter & writer,
sdw::Vec3 const & o,
sdw::Vec3 const & d )

Member Function Documentation

◆ step()

C3D_API sdw::Vec3 castor3d::shader::Ray::step ( sdw::Float const & t) const

Member Data Documentation

◆ direction

sdw::Vec3 castor3d::shader::Ray::direction

◆ origin

sdw::Vec3 castor3d::shader::Ray::origin

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