Example #1
0
// The direction of a light in a POD file is taken from the transform of the up direction!
CC3Vector4 CC3PODLight::getGlobalHomogeneousPosition()
{
	if (isDirectionalOnly()) 
		return CC3Vector4().fromCC3Vector(getGlobalUpDirection(), 0.0f);

	return super::getGlobalHomogeneousPosition();
}
Example #2
0
// Overridden to take into consideration the isDirectionalOnly property
CC3Vector4 CC3Light::getGlobalHomogeneousPosition()
{
	return (isDirectionalOnly()
			? CC3Vector4().fromDirection(getGlobalLocation())
			: CC3Vector4().fromLocation(getGlobalLocation()));
}