65 bool operator==(
const Vertex& other)
const
67 return this->position == other.
position;
70 friend Vertex operator*(
const Vertex& lhs,
const float ratio)
76 .normal = lhs.
normal * ratio,
82 friend Vertex operator*(
const float ratio,
const Vertex& rhs)
88 friend Vertex operator+(
const Vertex& lhs,
const Vertex& rhs)
91 .position = lhs.position + rhs.position,
92 .tex_coords = lhs.tex_coords + rhs.tex_coords,
93 .lm_coords = lhs.lm_coords + rhs.lm_coords,
94 .normal = lhs.normal + rhs.normal,
95 .tangent = lhs.tangent + rhs.tangent,
96 .bitangent = lhs.bitangent + rhs.bitangent
133 bool operator==(
const Vertex& other)
const
135 return this->position == other.
position;
144 .normal = lhs.
normal * ratio,
145 .tangent = lhs.
tangent * ratio,
150 friend SkinnedVertex operator*(
const float ratio,
const SkinnedVertex& rhs)
156 friend SkinnedVertex operator+(
const SkinnedVertex& lhs,
const SkinnedVertex& rhs)
158 return SkinnedVertex({
159 .position = lhs.position + rhs.position,
160 .tex_coords = lhs.tex_coords + rhs.tex_coords,
161 .lm_coords = lhs.lm_coords + rhs.lm_coords,
162 .normal = lhs.normal + rhs.normal,
163 .tangent = lhs.tangent + rhs.tangent,
164 .bitangent = lhs.bitangent + rhs.bitangent