1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Make shading of CAOs optional (#10033)

This commit is contained in:
Danila Shutov 2020-06-16 22:48:31 +03:00 committed by GitHub
parent 0a1181f763
commit 3a6dfda358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 47 additions and 7 deletions

View file

@ -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,
})