From 0d10b77f77459333c5549711334f417623ab1f3e Mon Sep 17 00:00:00 2001 From: vimene Date: Sat, 17 Jan 2026 00:06:31 +0100 Subject: 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 --- src/o3d/vertex_data.hpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/o3d/vertex_data.hpp (limited to 'src/o3d/vertex_data.hpp') 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 -- cgit v1.2.3