diff options
author | Danila Shutov <dcbrwn2@gmail.com> | 2020-06-16 22:48:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 20:48:31 +0100 |
commit | 3a6dfda358112e2fb5d6f887a1a1e936eacddadd (patch) | |
tree | 340e1e0442ef8ba346b522580b2b6bee66246b30 /games/devtest | |
parent | 0a1181f7637adab6fe1ba5d3c09038912a06b37f (diff) | |
download | minetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.tar.gz minetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.tar.bz2 minetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.zip |
Make shading of CAOs optional (#10033)
Diffstat (limited to 'games/devtest')
-rw-r--r-- | games/devtest/mods/testentities/visuals.lua | 12 |
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, }) - |