#include <Camera.hpp>
◆ ReflectableGroup
◆ ProjectionType
Enumerator |
---|
Perspective | |
Orthographic | |
◆ MakeGroup()
std::shared_ptr< ReflectableGroup > dz::Camera::MakeGroup |
( |
BufferGroup * | buffer_group | ) |
|
|
inlinestatic |
◆ aspect
float dz::Camera::aspect = 0 |
◆ CamerasBufferName
std::string dz::Camera::CamerasBufferName = "Cameras" |
|
inlinestatic |
◆ center
vec<float, 3> dz::Camera::center |
◆ farPlane
float dz::Camera::farPlane |
◆ fov
float dz::Camera::fov = 80.f |
◆ GLSLMain
std::vector<std::tuple<float, std::string, ShaderModuleType> > dz::Camera::GLSLMain |
|
inlinestatic |
Initial value:= {
{0.5f, R"(
Camera camera = Cameras.data[pc.camera_index];
{0.5f, R"(
Camera camera = Cameras.data[pc.camera_index];
{2.0f, R"(
vec4 view_position = camera.view * entity.model * vertex_position;
vec4 clip_position = camera.projection * view_position;
}
@ Fragment
Definition Shader.hpp:17
@ Vertex
Definition Shader.hpp:16
◆ GLSLStruct
std::string dz::Camera::GLSLStruct |
|
inlinestatic |
Initial value:= R"(
struct Camera {
mat4 view;
mat4 projection;
float nearPlane;
float farPlane;
int type;
float aspect;
vec3 position;
float fov;
vec3 center;
float orthoWidth;
vec3 up;
float orthoHeight;
};
)"
◆ IsCameraProvider
bool dz::Camera::IsCameraProvider = true |
|
inlinestaticconstexpr |
◆ nearPlane
float dz::Camera::nearPlane |
◆ orthoHeight
float dz::Camera::orthoHeight |
◆ orthoWidth
float dz::Camera::orthoWidth |
◆ PID
size_t dz::Camera::PID = 3 |
|
inlinestaticconstexpr |
◆ position
vec<float, 3> dz::Camera::position |
◆ Priority
float dz::Camera::Priority = 0.5f |
|
inlinestatic |
◆ projection
mat<float, 4, 4> dz::Camera::projection |
◆ ProviderName
std::string dz::Camera::ProviderName = "Camera" |
|
inlinestatic |
◆ StructName
std::string dz::Camera::StructName = "Camera" |
|
inlinestatic |
◆ type
◆ up
vec<float, 3> dz::Camera::up |
◆ view
mat<float, 4, 4> dz::Camera::view |
The documentation for this struct was generated from the following file: