diff --git a/cocos/renderer/CCGLProgram.h b/cocos/renderer/CCGLProgram.h index a6dba13b06..0a605ba9c9 100644 --- a/cocos/renderer/CCGLProgram.h +++ b/cocos/renderer/CCGLProgram.h @@ -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, diff --git a/tests/cpp-tests/Classes/LightTest/LightTestDemo.cpp b/tests/cpp-tests/Classes/LightTest/LightTestDemo.cpp index d6c001fdb8..79ebfc4779 100644 --- a/tests/cpp-tests/Classes/LightTest/LightTestDemo.cpp +++ b/tests/cpp-tests/Classes/LightTest/LightTestDemo.cpp @@ -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";