Skip to content

Commit

Permalink
-1 means default shader
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Aug 15, 2024
1 parent 2dac578 commit 4dc8f4a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions gm82gltf.gml
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,10 @@

#define gltf_use_shader
///gltf_use_shader([vertex,pixel])
if (argument_count<2) {
__gm82gltf_shader_vertex=__gm82gltf_shader_vertex_default
__gm82gltf_shader_pixel=__gm82gltf_shader_pixel_default
} else {
__gm82gltf_shader_vertex=argument[0]
__gm82gltf_shader_pixel=argument[1]
}
__gm82gltf_shader_vertex=__gm82gltf_shader_vertex_default
__gm82gltf_shader_pixel=__gm82gltf_shader_pixel_default
if (argument_count>=1) if (argument[0]>=0) __gm82gltf_shader_vertex=argument[0]
if (argument_count>=2) if (argument[1]>=0) __gm82gltf_shader_pixel=argument[1]


#define gltf_draw_scene
Expand Down

0 comments on commit 4dc8f4a

Please sign in to comment.