aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods
diff options
context:
space:
mode:
authorDanila Shutov <dcbrwn2@gmail.com>2020-06-16 22:48:31 +0300
committerGitHub <noreply@github.com>2020-06-16 20:48:31 +0100
commit3a6dfda358112e2fb5d6f887a1a1e936eacddadd (patch)
tree340e1e0442ef8ba346b522580b2b6bee66246b30 /games/devtest/mods
parent0a1181f7637adab6fe1ba5d3c09038912a06b37f (diff)
downloadminetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.tar.gz
minetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.tar.bz2
minetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.zip
Make shading of CAOs optional (#10033)
Diffstat (limited to 'games/devtest/mods')
-rw-r--r--games/devtest/mods/testentities/visuals.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/games/devtest/mods/testentities/visuals.lua b/games/devtest/mods/testentities/visuals.lua
index 314f51657..83f361f16 100644
--- a/games/devtest/mods/testentities/visuals.lua
+++ b/games/devtest/mods/testentities/visuals.lua
@@ -55,6 +55,17 @@ minetest.register_entity("testentities:mesh", {
},
})
+minetest.register_entity("testentities:mesh_unshaded", {
+ initial_properties = {
+ visual = "mesh",
+ mesh = "testnodes_pyramid.obj",
+ textures = {
+ "testnodes_mesh_stripes2.png"
+ },
+ shaded = false,
+ },
+})
+
-- Advanced visual tests
-- A test entity for testing animated and yaw-modulated sprites
@@ -71,4 +82,3 @@ minetest.register_entity("testentities:yawsprite", {
self.object:set_sprite({x=0, y=0}, 1, 0, true)
end,
})
-