VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::SceneUBO Struct Reference

Scene uniform buffer object. Holds data that is bind once per scene. More...

#include <uniforms.hpp>

Public Attributes

glm::mat4 view
 View matrix.
glm::mat4 proj
 Projection matrix.
glm::vec4 ambientLight
glm::vec4 sunLight
glm::vec4 sunDirection
glm::vec2 renderResolution
glm::vec2 windowResolution
float snapResolution
float jitterIntensity
int enablePS1Effects
 contains multiple PS1Effects thanks to bitwise operations.
float time
int frame
float upscaleRatio
float ambientLightStrength
glm::vec4 fogColor = glm::vec4(0.0f)
glm::vec2 fogDistances

Detailed Description

Scene uniform buffer object. Holds data that is bind once per scene.

Definition at line 13 of file uniforms.hpp.

Member Data Documentation

◆ ambientLight

glm::vec4 vex::SceneUBO::ambientLight

Definition at line 19 of file uniforms.hpp.

◆ ambientLightStrength

float vex::SceneUBO::ambientLightStrength

Definition at line 34 of file uniforms.hpp.

◆ enablePS1Effects

int vex::SceneUBO::enablePS1Effects

contains multiple PS1Effects thanks to bitwise operations.

Definition at line 29 of file uniforms.hpp.

◆ fogColor

glm::vec4 vex::SceneUBO::fogColor = glm::vec4(0.0f)

Definition at line 36 of file uniforms.hpp.

◆ fogDistances

glm::vec2 vex::SceneUBO::fogDistances

Definition at line 37 of file uniforms.hpp.

◆ frame

int vex::SceneUBO::frame

Definition at line 32 of file uniforms.hpp.

◆ jitterIntensity

float vex::SceneUBO::jitterIntensity

Definition at line 27 of file uniforms.hpp.

◆ proj

glm::mat4 vex::SceneUBO::proj

Projection matrix.

Definition at line 17 of file uniforms.hpp.

◆ renderResolution

glm::vec2 vex::SceneUBO::renderResolution

Definition at line 23 of file uniforms.hpp.

◆ snapResolution

float vex::SceneUBO::snapResolution

Definition at line 26 of file uniforms.hpp.

◆ sunDirection

glm::vec4 vex::SceneUBO::sunDirection

Definition at line 21 of file uniforms.hpp.

◆ sunLight

glm::vec4 vex::SceneUBO::sunLight

Definition at line 20 of file uniforms.hpp.

◆ time

float vex::SceneUBO::time

Definition at line 31 of file uniforms.hpp.

◆ upscaleRatio

float vex::SceneUBO::upscaleRatio

Definition at line 33 of file uniforms.hpp.

◆ view

glm::mat4 vex::SceneUBO::view

View matrix.

Definition at line 15 of file uniforms.hpp.

◆ windowResolution

glm::vec2 vex::SceneUBO::windowResolution

Definition at line 24 of file uniforms.hpp.


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