Castor3D 0.16.0
Multiplatform 3D engine
|
#include <CameraUbo.hpp>
Public Member Functions | |
CameraData (sdw::ShaderWriter &writer, ast::expr::ExprPtr expr, bool enabled) | |
C3D_API sdw::Vec4 | projToView (sdw::Vec4 const &psPosition) const |
C3D_API DerivVec4 | projToView (DerivVec4 const &psPosition) const |
C3D_API sdw::Vec4 | viewToProj (sdw::Vec4 const &vsPosition) const |
C3D_API sdw::Vec3 | worldToCurView (sdw::Vec3 const &wsPosition) const |
C3D_API sdw::Vec4 | worldToCurView (sdw::Vec4 const &wsPosition) const |
C3D_API sdw::Vec4 | worldToPrvView (sdw::Vec4 const &wsPosition) const |
C3D_API sdw::Vec4 | curViewToWorld (sdw::Vec4 const &vsPosition) const |
C3D_API DerivVec4 | curViewToWorld (DerivVec4 const &vsPosition) const |
C3D_API sdw::Vec4 | prvViewToWorld (sdw::Vec4 const &vsPosition) const |
C3D_API sdw::Vec4 | worldToCurProj (sdw::Vec4 const &wsPosition) const |
C3D_API sdw::Vec4 | worldToPrvProj (sdw::Vec4 const &wsPosition) const |
C3D_API DerivVec4 | worldToPrvProj (DerivVec4 const &wsPosition) const |
C3D_API sdw::Vec2 | viewToScreenUV (Utils &utils, sdw::Vec4 vsPosition) const |
C3D_API sdw::Vec2 | worldToCurScreenUV (Utils &utils, sdw::Vec4 wsPosition) const |
C3D_API sdw::Vec2 | worldToPrvScreenUV (Utils &utils, sdw::Vec4 wsPosition) const |
C3D_API sdw::Vec3 | projToView (Utils &utils, sdw::Vec2 const &texCoord, sdw::Float const &depth) const |
C3D_API sdw::Vec3 | curViewToWorld (Utils &utils, sdw::Vec2 const &texCoord, sdw::Float const &depth) const |
C3D_API sdw::Vec4 | curProjToWorld (sdw::Vec4 const &position) const |
C3D_API sdw::Vec3 | curProjToWorld (Utils &utils, sdw::Vec2 const &texCoord, sdw::Float const &depth) const |
C3D_API sdw::Vec3 | prvProjToWorld (Utils &utils, sdw::Vec2 const &texCoord, sdw::Float const &depth) const |
C3D_API sdw::Vec3 | getCurViewRight () const |
C3D_API sdw::Vec3 | getPrvViewRight () const |
C3D_API sdw::Vec3 | getCurViewUp () const |
C3D_API sdw::Vec3 | getPrvViewUp () const |
C3D_API sdw::Vec3 | getCurViewCenter () const |
C3D_API sdw::Vec3 | getPrvViewCenter () const |
C3D_API sdw::Mat4 | getInvViewProjMtx () const |
C3D_API void | jitter (sdw::Vec4 &csPosition) const |
C3D_API void | jitter (DerivVec4 &csPosition) const |
C3D_API sdw::Vec3 | transformCamera (sdw::Mat3 const &transform) const |
C3D_API sdw::Vec3 | getPosToCamera (sdw::Vec3 const &position) const |
C3D_API sdw::Vec3 | getCameraToPos (sdw::Vec3 const &position) const |
C3D_API sdw::Vec2 | depthPlanes () const |
C3D_API sdw::Vec2 | calcTexCoord (Utils &utils, sdw::Vec2 const &fragCoord) const |
C3D_API sdw::Vec3 | readNormal (sdw::Vec3 const &input) const |
C3D_API sdw::Vec3 | writeNormal (sdw::Vec3 const &input) const |
auto | renderSize () const |
auto | nearPlane () const |
auto | farPlane () const |
auto | position () const |
auto | gamma () const |
auto | debugIndex () const |
sdw::Mat4x4 | getInvProjMtx () const |
sdw::Mat4x4 | getProjMtx () const |
sdw::Vec4 | getFrustumPlane (sdw::UInt index) const |
Friends | |
struct | BillboardData |
|
inline |
C3D_API sdw::Vec2 castor3d::shader::CameraData::calcTexCoord | ( | Utils & | utils, |
sdw::Vec2 const & | fragCoord ) const |
C3D_API sdw::Vec4 castor3d::shader::CameraData::curProjToWorld | ( | sdw::Vec4 const & | position | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::curProjToWorld | ( | Utils & | utils, |
sdw::Vec2 const & | texCoord, | ||
sdw::Float const & | depth ) const |
C3D_API DerivVec4 castor3d::shader::CameraData::curViewToWorld | ( | DerivVec4 const & | vsPosition | ) | const |
C3D_API sdw::Vec4 castor3d::shader::CameraData::curViewToWorld | ( | sdw::Vec4 const & | vsPosition | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::curViewToWorld | ( | Utils & | utils, |
sdw::Vec2 const & | texCoord, | ||
sdw::Float const & | depth ) const |
|
inline |
C3D_API sdw::Vec2 castor3d::shader::CameraData::depthPlanes | ( | ) | const |
|
inline |
|
inline |
C3D_API sdw::Vec3 castor3d::shader::CameraData::getCameraToPos | ( | sdw::Vec3 const & | position | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::getCurViewCenter | ( | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::getCurViewRight | ( | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::getCurViewUp | ( | ) | const |
|
inline |
|
inline |
C3D_API sdw::Mat4 castor3d::shader::CameraData::getInvViewProjMtx | ( | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::getPosToCamera | ( | sdw::Vec3 const & | position | ) | const |
|
inline |
C3D_API sdw::Vec3 castor3d::shader::CameraData::getPrvViewCenter | ( | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::getPrvViewRight | ( | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::getPrvViewUp | ( | ) | const |
C3D_API void castor3d::shader::CameraData::jitter | ( | sdw::Vec4 & | csPosition | ) | const |
|
inline |
|
inline |
C3D_API sdw::Vec4 castor3d::shader::CameraData::projToView | ( | sdw::Vec4 const & | psPosition | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::projToView | ( | Utils & | utils, |
sdw::Vec2 const & | texCoord, | ||
sdw::Float const & | depth ) const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::prvProjToWorld | ( | Utils & | utils, |
sdw::Vec2 const & | texCoord, | ||
sdw::Float const & | depth ) const |
C3D_API sdw::Vec4 castor3d::shader::CameraData::prvViewToWorld | ( | sdw::Vec4 const & | vsPosition | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::readNormal | ( | sdw::Vec3 const & | input | ) | const |
|
inline |
C3D_API sdw::Vec3 castor3d::shader::CameraData::transformCamera | ( | sdw::Mat3 const & | transform | ) | const |
C3D_API sdw::Vec4 castor3d::shader::CameraData::viewToProj | ( | sdw::Vec4 const & | vsPosition | ) | const |
C3D_API sdw::Vec2 castor3d::shader::CameraData::viewToScreenUV | ( | Utils & | utils, |
sdw::Vec4 | vsPosition ) const |
C3D_API sdw::Vec4 castor3d::shader::CameraData::worldToCurProj | ( | sdw::Vec4 const & | wsPosition | ) | const |
C3D_API sdw::Vec2 castor3d::shader::CameraData::worldToCurScreenUV | ( | Utils & | utils, |
sdw::Vec4 | wsPosition ) const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::worldToCurView | ( | sdw::Vec3 const & | wsPosition | ) | const |
C3D_API sdw::Vec4 castor3d::shader::CameraData::worldToCurView | ( | sdw::Vec4 const & | wsPosition | ) | const |
C3D_API DerivVec4 castor3d::shader::CameraData::worldToPrvProj | ( | DerivVec4 const & | wsPosition | ) | const |
C3D_API sdw::Vec4 castor3d::shader::CameraData::worldToPrvProj | ( | sdw::Vec4 const & | wsPosition | ) | const |
C3D_API sdw::Vec2 castor3d::shader::CameraData::worldToPrvScreenUV | ( | Utils & | utils, |
sdw::Vec4 | wsPosition ) const |
C3D_API sdw::Vec4 castor3d::shader::CameraData::worldToPrvView | ( | sdw::Vec4 const & | wsPosition | ) | const |
C3D_API sdw::Vec3 castor3d::shader::CameraData::writeNormal | ( | sdw::Vec3 const & | input | ) | const |
|
friend |