Carl Nylander
Member
Hello community!
I'm having trouble using vertex_format_add_custom(). I know there have been trouble using it before but now I can't even use my workaround from GMS 1.x.
Using the following code will throw an error in the console "Draw failed due to invalid input layout"
Changing it to the following make will at least draw the model but the vec4 seem to be set to 0,0,0,0.
I've confirmed this by hardcoding the values directly in the shader to see that the other part of the shader is working correctly.
I've also tried with vertex_usage_color without any luck.
Does anyone know if there is a way to get this to work (would love to actually use vertex_usage_blendindices becouse it looks so nice ) or a workaround to at least get this working.
Thank you!
I'm having trouble using vertex_format_add_custom(). I know there have been trouble using it before but now I can't even use my workaround from GMS 1.x.
Using the following code will throw an error in the console "Draw failed due to invalid input layout"
Code:
vertex_format_add_custom(vertex_type_ubyte4, vertex_usage_blendindices)
vertex_format_add_custom(vertex_type_float4, vertex_usage_blendweight)
I've confirmed this by hardcoding the values directly in the shader to see that the other part of the shader is working correctly.
Code:
vertex_format_add_custom(vertex_type_ubyte4, vertex_usage_texcoord)
vertex_format_add_custom(vertex_type_float4, vertex_usage_texcoord)
Does anyone know if there is a way to get this to work (would love to actually use vertex_usage_blendindices becouse it looks so nice ) or a workaround to at least get this working.
Thank you!