Vertex Color and Alpha in .B3D?
Blitz3D Forums/Blitz3D Programming/Vertex Color and Alpha in .B3D?
| ||
Can somebody please explain me how to store Vertex Color and Alpha Information in the B3D Format? |
| ||
the VRTS chunk has a provision for vertex colour and vertex alpha VRTS: int flags ;1=normal values present, 2=rgba values present int tex_coord_sets ;texture coords per vertex (eg: 1 for simple U/V) max=8 int tex_coord_set_size ;components per set (eg: 2 for simple U/V) max=4 { float x,y,z ;always present float nx,ny,nz ;vertex normal: present if (flags&1) float red,green,blue,alpha ;vertex color: present if (flags&2) float tex_coords[tex_coord_sets][tex_coord_set_size] ;tex coords } |
| ||
Thanks a phantastillion! |