struct Models::Vertex
- Models::Vertex
- Struct
- Value
- Object
Overview
Vertex structure
Defined in:
lib/models/src/models.crnya/render/mesh.cr
Instance Method Summary
-
#to_buffer(buffer : Slice(Float64), offset, un : Bool, ut : Bool)
Places vertex to
buffer
withoffset
.
Instance Method Detail
def to_buffer(buffer : Slice(Float64), offset, un : Bool, ut : Bool)
#
Places vertex to buffer
with offset
.
un
is for Use normals
ut
is for Use Texture coords
Disabling normals and texcoords saves memory, about 33% each