bread man forgot to push

This commit is contained in:
Anumania 2022-08-18 18:03:51 -07:00
parent 386680a66a
commit 4c0c7b5833
15 changed files with 248 additions and 4 deletions

View file

@ -0,0 +1,26 @@
///vertex_format_create_simple(hasNormal, hasColour, hasTexcoord, *hasTangentData)
///@func vertex_format_create_simple(hasNormal, hasColour, hasTexcoord)
///@desc Creates and returns a simple vertex format including Position3D as well as the others specified in the arguments. Useful when used with my Blender Export.
///@arg hasNormal
///@arg hasColour
///@arg hasTexcoord
///@return Vertex Format ID
function vertex_format_create_simple(hasNormal = true,hasColor = true,hasTexcoord = true, hasTangentData = false){
vertex_format_begin();
vertex_format_add_position_3d();
if(argument_count > 0 && argument[0]){
vertex_format_add_normal();
}
if(argument_count > 1 && argument[1]){
vertex_format_add_color();
}
if(argument_count > 2 && argument[2]){
vertex_format_add_texcoord();
}
if(argument_count > 3 && argument[3]){
vertex_format_add_custom(vertex_type_float3, vertex_usage_texcoord);
vertex_format_add_custom(vertex_type_float3, vertex_usage_texcoord);
}
return vertex_format_end();
}

View file

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "3d",
"path": "folders/Scripts/3d.yy",
},
"resourceVersion": "1.0",
"name": "vertex_format_create_simple",
"tags": [],
"resourceType": "GMScript",
}