mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Add attr_colorscale
This commit is contained in:
parent
9498bcdf98
commit
dfb5a43bf0
@ -652,6 +652,17 @@ compile_parameter(const ShaderArgId &arg_id,
|
|||||||
bind._arg[0] = NULL;
|
bind._arg[0] = NULL;
|
||||||
bind._part[1] = SMO_identity;
|
bind._part[1] = SMO_identity;
|
||||||
bind._arg[1] = NULL;
|
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 {
|
} else {
|
||||||
cp_report_error(p,"Unknown attr parameter.");
|
cp_report_error(p,"Unknown attr parameter.");
|
||||||
return false;
|
return false;
|
||||||
|
@ -71,6 +71,7 @@ public:
|
|||||||
|
|
||||||
SMO_attr_material,
|
SMO_attr_material,
|
||||||
SMO_attr_color,
|
SMO_attr_color,
|
||||||
|
SMO_attr_colorscale,
|
||||||
|
|
||||||
SMO_alight_x,
|
SMO_alight_x,
|
||||||
SMO_dlight_x,
|
SMO_dlight_x,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user