diff options
author | quou <quou@disroot.org> | 2025-02-12 23:57:01 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-02-12 23:57:48 +1100 |
commit | 06834dbead85f0918c2722cad09b82cd4281b919 (patch) | |
tree | 430a6912cb3b0c128e9604c3c6a3cebac720e63f | |
parent | 5d5a21dec0c865c35297cad03b7b5c61043ca8c3 (diff) |
default to surface and surface_depthonly in the model converter
-rw-r--r-- | convmodel.c | 11 |
1 files changed, 4 insertions, 7 deletions
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", |