struct Models::Vertex

Overview

Vertex structure

Defined in:

lib/models/src/models.cr
nya/render/mesh.cr

Instance Method Summary

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


[View source]