aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testnodes/textures/testnodes_attached_bottom.png
diff options
context:
space:
mode:
authorVitaliy <numzer0@yandex.ru>2020-12-19 22:57:10 +0300
committerGitHub <noreply@github.com>2020-12-19 20:57:10 +0100
commitccbf8029ea6bfc5bb5d4af340bd4c2c0d58fe0ff (patch)
tree9bb8bf7b22d44a45e7a1efd400f465e21ca3d8c9 /games/devtest/mods/testnodes/textures/testnodes_attached_bottom.png
parent664f5ce9605b580b9500547fff1e54eac553f295 (diff)
downloadminetest-ccbf8029ea6bfc5bb5d4af340bd4c2c0d58fe0ff.tar.gz
minetest-ccbf8029ea6bfc5bb5d4af340bd4c2c0d58fe0ff.tar.bz2
minetest-ccbf8029ea6bfc5bb5d4af340bd4c2c0d58fe0ff.zip
Cleanup shader generation code (#10663)
Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
Diffstat (limited to 'games/devtest/mods/testnodes/textures/testnodes_attached_bottom.png')
0 files changed, 0 insertions, 0 deletions
t.h" #include <algorithm> #include "gamedef.h" #include "log.h" #include "voxel.h" class TestVoxelManipulator : public TestBase { public: TestVoxelManipulator() { TestManager::registerTestModule(this); } const char *getName() { return "TestVoxelManipulator"; } void runTests(IGameDef *gamedef); void testVoxelArea(); void testVoxelManipulator(INodeDefManager *nodedef); }; static TestVoxelManipulator g_test_instance; void TestVoxelManipulator::runTests(IGameDef *gamedef) { TEST(testVoxelArea); TEST(testVoxelManipulator, gamedef->getNodeDefManager()); } //////////////////////////////////////////////////////////////////////////////// void TestVoxelManipulator::testVoxelArea() { VoxelArea a(v3s16(-1,-1,-1), v3s16(1,1,1)); UASSERT(a.index(0,0,0) == 1*3*3 + 1*3 + 1); UASSERT(a.index(-1,-1,-1) == 0); VoxelArea c(v3s16(-2,-2,-2), v3s16(2,2,2)); // An area that is 1 bigger in x+ and z-