From 8d0c975486f27b43862b822737b05f9aeea3ceff Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Mon, 3 Mar 2008 21:32:28 +0000 Subject: [PATCH] Added not-implemented-yet warnings to shader generator --- panda/src/pgraph/shaderGenerator.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/panda/src/pgraph/shaderGenerator.cxx b/panda/src/pgraph/shaderGenerator.cxx index 51595a72fd..90c6a439e7 100644 --- a/panda/src/pgraph/shaderGenerator.cxx +++ b/panda/src/pgraph/shaderGenerator.cxx @@ -318,6 +318,21 @@ analyze_renderstate(const RenderState *rs) { (_have_diffuse && (_material->has_diffuse()))|| (_have_emission && (_material->has_emission()))|| (_have_specular && (_material->has_specular())); + + // Check for unimplemented features and issue warnings. + + if (!_attribs._tex_matrix->is_empty()) { + pgraph_cat.error() << "Shader Generator does not support TexMatrix yet.\n"; + } + if (!_attribs._tex_gen->is_empty()) { + pgraph_cat.error() << "Shader Generator does not support TexGen yet.\n"; + } + if (!_attribs._color_scale->is_identity()) { + pgraph_cat.error() << "Shader Generator does not support ColorScale yet.\n"; + } + if (!_attribs._fog->is_off()) { + pgraph_cat.error() << "Shader Generator does not support Fog yet.\n"; + } }