remove bad test case (#19704)

This commit is contained in:
Arnold 2019-05-14 09:01:04 +08:00 committed by minggo
parent e52a35708e
commit 825c4aa3f7
2 changed files with 0 additions and 44 deletions

View File

@ -64,7 +64,6 @@ Sprite3DTests::Sprite3DTests()
ADD_TEST_CASE(NodeAnimationTest);
ADD_TEST_CASE(Issue9767);
ADD_TEST_CASE(Sprite3DClippingTest);
// ADD_TEST_CASE(Sprite3DTestMeshLight); //TODO coulsonwang missing attibute data in Sprite3DTest/mesh_model.c3b
ADD_TEST_CASE(Animate3DCallbackTest);
ADD_TEST_CASE(CameraBackgroundClearTest);
ADD_TEST_CASE(Sprite3DVertexColorTest);
@ -2349,37 +2348,6 @@ std::string Animate3DCallbackTest::subtitle() const
return "";
}
Sprite3DTestMeshLight::Sprite3DTestMeshLight()
{
auto s = Director::getInstance()->getWinSize();
auto _sprite = Sprite3D::create("Sprite3DTest/mesh_model.c3b");
_sprite->setPosition(Vec2(0, 0));
_sprite->setScale(0.05f);
_sprite->setCameraMask(2);
PointLight * light = PointLight::create(Vec3(0, 0, 400), Color3B(255, 255, 255), 1000.0f);
//setup camera
auto camera = Camera::createPerspective(40, s.width / s.height, 0.01f, 1000.f);
camera->setCameraFlag(CameraFlag::USER1);
camera->setPosition3D(Vec3(0.f, 30.f, 100.f));
camera->lookAt(Vec3(0.f, 0.f, 0.f));
addChild(camera);
addChild(_sprite);
addChild(light);
}
std::string Sprite3DTestMeshLight::title() const
{
return "3D mesh with light without texture";
}
std::string Sprite3DTestMeshLight::subtitle() const
{
return "";
}
Sprite3DVertexColorTest::Sprite3DVertexColorTest()
{

View File

@ -531,18 +531,6 @@ protected:
cocos2d::Sprite3D* _sprite3d;
};
class Sprite3DTestMeshLight : public Sprite3DTestDemo
{
public:
CREATE_FUNC(Sprite3DTestMeshLight);
Sprite3DTestMeshLight();
virtual std::string title() const override;
virtual std::string subtitle() const override;
protected:
cocos2d::Sprite3D* _sprite;
};
class CameraBackgroundClearTest : public Sprite3DTestDemo
{
public: