mirror of
https://github.com/minetest/minetest.git
synced 2024-10-02 07:53:09 +02:00
Register opaque variant of marble
This commit is contained in:
parent
9375f66c48
commit
67810800ad
@ -2,29 +2,22 @@
|
||||
|
||||
local S = minetest.get_translator("testnodes")
|
||||
|
||||
-- Complex mesh
|
||||
minetest.register_node("testnodes:performance_mesh_clip", {
|
||||
description = S("Performance Test Node") .. "\n" .. S("Marble with 'clip' transparency"),
|
||||
for use_texture_alpha, description in pairs({
|
||||
opaque = S("Marble with 'opaque' transparency"),
|
||||
clip = S("Marble with 'clip' transparency"),
|
||||
blend = S("Marble with 'blend' transparency"),
|
||||
}) do
|
||||
minetest.register_node("testnodes:performance_mesh_" .. use_texture_alpha, {
|
||||
description = S("Performance Test Node") .. "\n" .. description,
|
||||
drawtype = "mesh",
|
||||
mesh = "testnodes_marble_glass.obj",
|
||||
tiles = {"testnodes_marble_glass.png"},
|
||||
paramtype = "light",
|
||||
use_texture_alpha = "clip",
|
||||
|
||||
groups = {dig_immediate=3},
|
||||
})
|
||||
|
||||
-- Complex mesh, alpha blending
|
||||
minetest.register_node("testnodes:performance_mesh_blend", {
|
||||
description = S("Performance Test Node") .. "\n" .. S("Marble with 'blend' transparency"),
|
||||
drawtype = "mesh",
|
||||
mesh = "testnodes_marble_glass.obj",
|
||||
tiles = {"testnodes_marble_glass.png"},
|
||||
paramtype = "light",
|
||||
use_texture_alpha = "blend",
|
||||
use_texture_alpha = use_texture_alpha,
|
||||
|
||||
groups = {dig_immediate=3},
|
||||
})
|
||||
end
|
||||
|
||||
-- Overlay
|
||||
minetest.register_node("testnodes:performance_overlay_clip", {
|
||||
|
Loading…
Reference in New Issue
Block a user