Skip to content
Snippets Groups Projects
Commit f3d70233 authored by Turo Lamminen's avatar Turo Lamminen
Browse files

ASE: Add Light constructor which takes name

parent 17f801ae
No related branches found
No related tags found
No related merge requests found
......@@ -369,6 +369,19 @@ struct Light : public BaseNode
{
}
//! Construction from an existing name
explicit Light(const std::string &name)
: BaseNode (BaseNode::Light, name)
, mLightType (OMNI)
, mColor (1.f,1.f,1.f)
, mIntensity (1.f) // light is white by default
, mAngle (45.f)
, mFalloff (0.f)
{
}
LightType mLightType;
aiColor3D mColor;
ai_real mIntensity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment