raysan5/raylib

[rmodels] Support non-normalized GLTF vertex colors

ssoher opened this issue · 1 comments

Issue description

Blender exported gltf files have a different attribute format for vertex colors, thus they are not imported in Raylib. Instead a warning is given WARNING: MODEL: [./asset/cube.glb] Color attribute data format not supported.

Please use the attached archived glb file exported from Blender with default settings.

How it's supposed to look:

image
gltf_cube_vertex_color.zip

Implemented support for all glTF supported color vertex attribute data (vec3/vec4, u8, u16, f32)