Add attr_colorscale

This commit is contained in:
rdb 2009-04-28 08:43:21 +00:00
parent 9498bcdf98
commit dfb5a43bf0
2 changed files with 12 additions and 0 deletions

View File

@ -652,6 +652,17 @@ compile_parameter(const ShaderArgId &arg_id,
bind._arg[0] = NULL;
bind._part[1] = SMO_identity;
bind._arg[1] = NULL;
} else if (pieces[1] == "colorscale") {
if (!cp_errchk_parameter_float(p,3,4)) {
return false;
}
bind._id = arg_id;
bind._piece = SMP_row3;
bind._func = SMF_first;
bind._part[0] = SMO_attr_colorscale;
bind._arg[0] = NULL;
bind._part[1] = SMO_identity;
bind._arg[1] = NULL;
} else {
cp_report_error(p,"Unknown attr parameter.");
return false;

View File

@ -71,6 +71,7 @@ public:
SMO_attr_material,
SMO_attr_color,
SMO_attr_colorscale,
SMO_alight_x,
SMO_dlight_x,