mirror of https://github.com/axmolengine/axmol.git
Merge pull request #118 from songchengjiang/light_new
Deleted Plane Model
This commit is contained in:
commit
20b5b251d5
|
@ -103,9 +103,9 @@ public:
|
|||
|
||||
enum
|
||||
{
|
||||
UNIFORM_ENABLED_DIRECTIONAL_LIGHT_NUM,
|
||||
UNIFORM_ENABLED_POINT_LIGHT_NUM,
|
||||
UNIFORM_ENABLED_SPOT_LIGHT_NUM,
|
||||
//UNIFORM_ENABLED_DIRECTIONAL_LIGHT_NUM,
|
||||
//UNIFORM_ENABLED_POINT_LIGHT_NUM,
|
||||
//UNIFORM_ENABLED_SPOT_LIGHT_NUM,
|
||||
UNIFORM_AMBIENT_COLOR,
|
||||
UNIFORM_P_MATRIX,
|
||||
UNIFORM_MV_MATRIX,
|
||||
|
|
|
@ -146,15 +146,15 @@ void LightTestDemo::addSprite()
|
|||
{
|
||||
auto s = Director::getInstance()->getWinSize();
|
||||
|
||||
{
|
||||
std::string fileName = "Sprite3DTest/plane.c3b";
|
||||
auto sprite = Sprite3D::create(fileName);
|
||||
sprite->setRotation3D(Vec3(-90.0, 0.0, 0.0));
|
||||
sprite->setScale(5.0f);
|
||||
sprite->setPosition(Vec2(0.0, -50.0));
|
||||
addChild(sprite);
|
||||
sprite->setCameraMask(2);
|
||||
}
|
||||
//{
|
||||
// std::string fileName = "Sprite3DTest/plane.c3b";
|
||||
// auto sprite = Sprite3D::create(fileName);
|
||||
// sprite->setRotation3D(Vec3(-90.0, 0.0, 0.0));
|
||||
// sprite->setScale(5.0f);
|
||||
// sprite->setPosition(Vec2(0.0, -50.0));
|
||||
// addChild(sprite);
|
||||
// sprite->setCameraMask(2);
|
||||
//}
|
||||
|
||||
{
|
||||
std::string fileName = "Sprite3DTest/orc.c3b";
|
||||
|
|
Loading…
Reference in New Issue