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:
parent
0a1181f763
commit
3a6dfda358
10 changed files with 47 additions and 7 deletions
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue