galacean / engine

A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
https://galacean.antgroup.com/engine
MIT License
4.2k stars 299 forks source link

The `VertexElementFormat` needs to support the `INT` data type #2046

Open eyworldwide opened 6 months ago

eyworldwide commented 6 months ago

The INT data type is a frequently used type when we design the vertex buffer data or index buffer data. The data size of the INT type is smaller than that of Float. I am eager to see such a feature implemented.

new VertexElement("element_name", 0, VertexElementFormat.INT, 0)