vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
planar_reflector.h
1#pragma once
2
3#include <glm/glm.hpp>
4
5#include "core/reflect.h"
6
7namespace Vkm::Engine {
8
19 static constexpr float MIN_RENDER_SCALE = 0.1f;
20 static constexpr float MAX_RENDER_SCALE = 1.0f;
21
22 bool enabled = true;
24 glm::vec2 halfExtents = glm::vec2(2.0f);
25 float renderScale = 0.5f;
26};
27
28} // namespace Vkm::Engine
29
30VKM_REFLECT_BEGIN(::Vkm::Engine::PlanarReflector)
31 VKM_F(enabled)
32 VKM_F(halfExtents)
33 VKM_F(renderScale)
34VKM_REFLECT_END()
A flat mirror: a rectangle on the entity's XZ plane, facing its +Y, that reflects the scene as it is ...
Definition planar_reflector.h:18
glm::vec2 halfExtents
Along the entity's X and Z, metres; not scaled. 0 on either reflects nothing.
Definition planar_reflector.h:24
float renderScale
Its picture's size, a share of the frame's.
Definition planar_reflector.h:25
static constexpr float MIN_RENDER_SCALE
The smallest picture, a share of the frame's.
Definition planar_reflector.h:19
static constexpr float MAX_RENDER_SCALE
The largest: the frame's own size.
Definition planar_reflector.h:20