From 06834dbead85f0918c2722cad09b82cd4281b919 Mon Sep 17 00:00:00 2001 From: quou Date: Wed, 12 Feb 2025 23:57:01 +1100 Subject: default to surface and surface_depthonly in the model converter --- convmodel.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'convmodel.c') diff --git a/convmodel.c b/convmodel.c index 8646ace..31a062d 100644 --- a/convmodel.c +++ b/convmodel.c @@ -422,13 +422,10 @@ void parse_node( parse_node_cfg(n, &cfg); if (n->mesh) { Shader_Attrib* desired; - if (!cfg.shader) { - print_err( - "Node %s has a mesh, but doesn't specify a shader.\n", - n->name - ); - pbreak(48); - } + if (!cfg.shader) + cfg.shader = "surface.csh"; + if (!cfg.depth_shader) + cfg.depth_shader = "surface_depthonly.csh"; if (!cfg.material) { print_err( "Node %s has a mesh, but doesn't specify a material.\n", -- cgit v1.2.3-54-g00ecf