/*
* Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*
* Restricted Rights Legend
*
* Use, duplication, or disclosure of this
* software and its documentation by the
* Government is subject to restrictions as
* set forth in subdivision [(b)(3)(ii)] of
* the Rights in Technical Data and Computer
* Software clause at 52.227-7013.
*/
#ifndef __INCLUDED_GLTF_GLTFLIGHT__
#define __INCLUDED_GLTF_GLTFLIGHT__
#include "GLTFCommon.h"
#include "GLTFObject.h"
namespace ANSYS { namespace AVZ { namespace GLTFWriter {
class GLTF;
class Light : public Object
{
protected:
virtual ~Light() {}
public:
static GLTFWRITERSPEC Light *CreateDirectional(GLTF *gltf,
float colR = 1,
float colG = 1,
float colB = 1,
float dirX = 0,
float dirY = 0,
float dirZ = -1,
float specColR = 1,
float specColG = 1,
float specColB = 1,
float shininess = 100
);
static GLTFWRITERSPEC Light *CreateAmbient(GLTF *gltf,
float colR = 0.3,
float colG = 0.3,
float colB = 0.3
);
};
} } }
#endif
GLTFLight.h
Was this page helpful?