|
@@ -4001,250 +4001,28 @@ set_shader_input(const InternalName *id, Texture *tex, int priority) {
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
void NodePath::
|
|
void NodePath::
|
|
|
-set_shader_input(const InternalName *id, const NodePath &np, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(id,np,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const InternalName *id, int n1, int n2, int n3, int n4, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(id, LVecBase4i(n1, n2, n3, n4), priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const InternalName *id, PN_stdfloat n1, PN_stdfloat n2, PN_stdfloat n3, PN_stdfloat n4, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(id, LVecBase4(n1, n2, n3, n4), priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_float &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_double &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_int &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_LVecBase4 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_LVecBase3 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_LVecBase2 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const LVecBase4 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const LVecBase3 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_LVecBase4i &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_LVecBase3i &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_LVecBase2i &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const LVecBase4i &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const LVecBase3i &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const LVecBase2i &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const LVecBase2 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_LMatrix4 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const PTA_LMatrix3 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const LMatrix4 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
|
|
+set_shader_input(const InternalName *id, Texture *tex, bool read, bool write, int z, int n, int priority) {
|
|
|
|
|
+ set_shader_input(new ShaderInput(id,tex,read,write,z,n,priority));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, const LMatrix3 &v, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),v,priority));
|
|
|
|
|
-}
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: NodePath::set_shader_input
|
|
// Function: NodePath::set_shader_input
|
|
|
// Access: Published
|
|
// Access: Published
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
void NodePath::
|
|
void NodePath::
|
|
|
-set_shader_input(const string &id, Texture *tex, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),tex,priority));
|
|
|
|
|
|
|
+set_shader_input(const InternalName *id, const NodePath &np, int priority) {
|
|
|
|
|
+ set_shader_input(new ShaderInput(id,np,priority));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: NodePath::set_shader_input
|
|
// Function: NodePath::set_shader_input
|
|
|
// Access: Published
|
|
// Access: Published
|
|
|
-// Description:
|
|
|
|
|
|
|
+// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
void NodePath::
|
|
void NodePath::
|
|
|
-set_shader_input(const string &id, const NodePath &np, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id),np,priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::set_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-set_shader_input(const string &id, int n1, int n2, int n3, int n4, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id), LVecBase4i(n1, n2, n3, n4), priority));
|
|
|
|
|
|
|
+set_shader_input(const InternalName *id, int n1, int n2, int n3, int n4, int priority) {
|
|
|
|
|
+ set_shader_input(new ShaderInput(id, LVecBase4i(n1, n2, n3, n4), priority));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -4253,28 +4031,8 @@ set_shader_input(const string &id, int n1, int n2, int n3, int n4, int priority)
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
void NodePath::
|
|
void NodePath::
|
|
|
-set_shader_input(const string &id, PN_stdfloat n1, PN_stdfloat n2, PN_stdfloat n3, PN_stdfloat n4, int priority) {
|
|
|
|
|
- set_shader_input(new ShaderInput(InternalName::make(id), LVecBase4(n1, n2, n3, n4), priority));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::get_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-const ShaderInput *NodePath::
|
|
|
|
|
-get_shader_input(const string &id) const {
|
|
|
|
|
- return get_shader_input(InternalName::make(id));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// Function: NodePath::clear_shader_input
|
|
|
|
|
-// Access: Published
|
|
|
|
|
-// Description:
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
|
|
-void NodePath::
|
|
|
|
|
-clear_shader_input(const string &id) {
|
|
|
|
|
- clear_shader_input(InternalName::make(id));
|
|
|
|
|
|
|
+set_shader_input(const InternalName *id, PN_stdfloat n1, PN_stdfloat n2, PN_stdfloat n3, PN_stdfloat n4, int priority) {
|
|
|
|
|
+ set_shader_input(new ShaderInput(id, LVecBase4(n1, n2, n3, n4), priority));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|