diff options
| author | vimene <vincent.menegaux@gmail.com> | 2026-01-17 00:06:31 +0100 |
|---|---|---|
| committer | vimene <vincent.menegaux@gmail.com> | 2026-01-17 00:06:31 +0100 |
| commit | 0d10b77f77459333c5549711334f417623ab1f3e (patch) | |
| tree | 6584ab5d09fa72c93a70ac916bfdf401c7617157 /src/o3d/vertex_data.hpp | |
| parent | 175c71637b6bea6dcdd0faf3d614339983809bb1 (diff) | |
| download | engine-0d10b77f77459333c5549711334f417623ab1f3e.tar.gz | |
improved software shaders
- unified terminal and graphical software renderer shaders
- added vertex shaders for software renderers
- removed VertexData
- moved shaders from frame buffers to their own class
- added FrameBufferConcept and ShadersConcept
Diffstat (limited to 'src/o3d/vertex_data.hpp')
| -rw-r--r-- | src/o3d/vertex_data.hpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/o3d/vertex_data.hpp b/src/o3d/vertex_data.hpp deleted file mode 100644 index fa62271..0000000 --- a/src/o3d/vertex_data.hpp +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef O3D_VERTEX_DATA_HPP -#define O3D_VERTEX_DATA_HPP - -#include "math/vector.hpp" - -namespace engine::o3d { - -struct VertexData { - static constexpr VertexData lerp(const VertexData& vd1, const VertexData& vd2, float b0) { - return { - b0 * vd1.world_loc + (1.f - b0) * vd2.world_loc, - }; - } - - static constexpr VertexData bilerp(const VertexData& vd1, const VertexData& vd2, const VertexData& vd3, float b0, float b1) { - return { - b0 * vd1.world_loc + b1 * vd2.world_loc + (1.f - b0 - b1) * vd3.world_loc, - }; - } - - engine::math::Vector3 world_loc; -}; - -} - -#endif // O3D_VERTEX_DATA_HPP |
