Esempio n. 1
0
void slopeShaderNode::postConstructor( )
//
//	Description:
//		postConstructor
//
{
	setMPSafe(true);
}
// the postConstructor() function is called immediately after the objects
// constructor. It is not safe to call MPxNode member functions from the
// constructor, instead they should be called here.
//
void asMicrofacet_brdf::postConstructor( )
{
    // setMPSafe indicates that this shader can be used for multiprocessor
    // rendering. For a shading node to be MP safe, it cannot access any
    // shared global data and should only use attributes in the datablock
    // to get input data and store output data.
    //
    setMPSafe( true );
}
Esempio n. 3
0
void PtexColorNode::postConstructor( )
{
	m_ptex_cache = 0;
	m_ptex_texture = 0;
	m_ptex_filter = 0;

	MRenderCallback::addCallback( this, 255 );

	setMPSafe(true);
}
void liqCoShaderNode::postConstructor( )
{
	setMPSafe(true);
	// init swatch
	if ( swatchInit != true )
	{
		MObject obj = MPxNode::thisMObject();
		renderSwatch = new liqNodeSwatch( obj, obj, 128 );
		swatchInit = true;
	}
	MGlobal::executeCommandOnIdle( "liquidCheckGlobals()", false );
}
Esempio n. 5
0
// the postConstructor() function is called immediately after the objects
// constructor. It is not safe to call MPxNode member functions from the
// constructor, instead they should be called here.
//
void inSpecular::postConstructor( )
{
	MStatus stat;
    // setMPSafe indicates that this shader can be used for multiprocessor
    // rendering. For a shading node to be MP safe, it cannot access any
    // shared global data and should only use attributes in the datablock
    // to get input data and store output data.
    //
    setMPSafe( true );

	MDGModifier modifier;

	MPlug sourcePlug = MPlug(this->thisMObject(), emission);
	MPlug destPlug = MPlug(this->thisMObject(), aIncandescence);
	if( !destPlug.isConnected() )
		stat = modifier.connect(sourcePlug, destPlug);

	stat = modifier.doIt();
}
Esempio n. 6
0
//
// DESCRIPTION:
void OSLNode::postConstructor( )
{
    setMPSafe(true);
}
Esempio n. 7
0
//
// DESCRIPTION:
///////////////////////////////////////////////////////
void PhongNode::postConstructor( )
{
	setMPSafe(true);
}
void
OpenSubdivPtexShader::postConstructor()
{
    setMPSafe(false);
}
Esempio n. 9
0
//
// DESCRIPTION:
void fresnel::postConstructor( )
{
    setMPSafe(true);
}
Esempio n. 10
0
void mtmEnvLight::postConstructor( )
{
	setMPSafe(true);
	MFnDependencyNode nodefn(thisMObject());
	nodefn.setName("mtm_envlightShape#");
}
Esempio n. 11
0
void myComp::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 12
0
//
// DESCRIPTION:
void wrinkled::postConstructor( )
{
    setMPSafe(true);
}
Esempio n. 13
0
void noise3::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 14
0
void CoronaWire::postConstructor( )
{
	MStatus stat;
	setMPSafe( true );
	this->setExistWithoutInConnections(true);
}
Esempio n. 15
0
void mtap_StandinLocator::postConstructor( )
{
	setMPSafe(true);
	MFnDependencyNode nodefn(thisMObject());
	nodefn.setName("mtap_standinShape#");	
}
Esempio n. 16
0
void hwPhongShader::postConstructor( )
{
	TRACE_API_CALLS("postConstructor");
	setMPSafe(false);
}
Esempio n. 17
0
//
// DESCRIPTION:
void marble::postConstructor( )
{
    setMPSafe(true);
}
Esempio n. 18
0
void hwUnlitShader::postConstructor( )
{
	setMPSafe(false);
}
Esempio n. 19
0
//
// DESCRIPTION:
void blender_marble::postConstructor( )
{
    setMPSafe(true);
}
Esempio n. 20
0
//
// DESCRIPTION:
void brick::postConstructor( )
{
    setMPSafe(true);
}
Esempio n. 21
0
void hwColorPerVertexShader::postConstructor( )
{
	setMPSafe(false);
}
Esempio n. 22
0
//
// DESCRIPTION:
///////////////////////////////////////////////////////
void Cell3D::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 23
0
//
// DESCRIPTION:
///////////////////////////////////////////////////////
void Gamma::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 24
0
//
// DESCRIPTION:
void uv::postConstructor( )
{
    setMPSafe(true);
}
Esempio n. 25
0
void clearcoat::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 26
0
void DispNode::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 27
0
void depthShader::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 28
0
void anisotropicShaderNode::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 29
0
void CheckerNode::postConstructor( )
{
	setMPSafe(true);
}
Esempio n. 30
0
// Methods
void OnbShader::postConstructor()
{
	setMPSafe(true);
}