{
set_link("gradient",ValueNode_Const::create(x));
set_link("offset",ValueNode_Const::create(Real(0)));
- DCAST_HACK_ENABLE();
}
LinkableValueNode*
{
return type==ValueBase::TYPE_GRADIENT;
}
+
+LinkableValueNode::Vocab
+ValueNode_GradientRotate::get_children_vocab_vfunc()const
+{
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"gradient")
+ .set_local_name(_("Gradient"))
+ .set_description(_("The source gradient to rotate"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"offset")
+ .set_local_name(_("Offset"))
+ .set_description(_("The amount to offset the gradient"))
+ );
+
+ return ret;
+}