Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::TimeConstants Struct Reference

CPU mirror of the injected TimeConstants block (std140). More...

#include <FrameConstants.hpp>

Public Attributes

glm::vec4 time {0.0f}
glm::vec4 viewport {0.0f}
glm::vec4 quality {0.0f}

Detailed Description

CPU mirror of the injected TimeConstants block (std140).

u_time = (elapsed s, delta s, view exposure EV, 0); u_viewport = (w, h, 1/w, 1/h) of the canvas in pixels. Engine-owned: ShaderParser injects the block into every assembled stage — shaders never declare it.

Definition at line 94 of file FrameConstants.hpp.

Member Data Documentation

◆ quality

glm::vec4 esengine::TimeConstants::quality {0.0f}

Definition at line 97 of file FrameConstants.hpp.

◆ time

glm::vec4 esengine::TimeConstants::time {0.0f}

Definition at line 95 of file FrameConstants.hpp.

◆ viewport

glm::vec4 esengine::TimeConstants::viewport {0.0f}

Definition at line 96 of file FrameConstants.hpp.


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