Merge pull request #118 from songchengjiang/light_new

Deleted Plane Model
This commit is contained in:
XiaoYang 2014-08-28 10:22:36 +08:00
commit 20b5b251d5
2 changed files with 12 additions and 12 deletions

View File

@ -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,

View File

@ -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";