bread man forgot to push
This commit is contained in:
parent
386680a66a
commit
4c0c7b5833
15 changed files with 248 additions and 4 deletions
|
@ -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();
|
||||
}
|
|
@ -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",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue