mirror of
https://github.com/minetest-mods/stained_glass.git
synced 2025-07-04 00:20:22 +02:00
Alpha channel support, don't use inventory cubes
Add alpha channel support for latest git clients/servers (should still work fine on old clients/servers too). Requires that the client use shaders to see the effect. Also, removes the calls that create rendered inventory cubes - those calls are obsolete and should not be used in production, as they prevent the engine from rendering an actual cube when an item is dropped.
This commit is contained in:
8
init.lua
8
init.lua
@ -144,9 +144,9 @@ for h = 1, 12 do
|
||||
description = "Stained Glass - " .. bright .. hues .. sat,
|
||||
drawtype = "glasslike",
|
||||
tiles = {"stained_glass_" .. bright .. hues .. sat .. ".png"},
|
||||
inventory_image = minetest.inventorycube("stained_glass_" .. bright .. hues .. sat .. ".png"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
light_source = 14,
|
||||
is_ground_content = true,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||
@ -187,9 +187,9 @@ for h = 1, 12 do
|
||||
description = "Stained Glass - light_" .. hues,
|
||||
drawtype = "glasslike",
|
||||
tiles = {"stained_glass_light_" .. hues .. ".png"},
|
||||
inventory_image = minetest.inventorycube("stained_glass_light_" .. hues .. ".png"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
light_source = 14,
|
||||
is_ground_content = true,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||
@ -231,9 +231,9 @@ for h = 1, 12 do
|
||||
description = "Stained Glass - pastel_" .. hues,
|
||||
drawtype = "glasslike",
|
||||
tiles = {"stained_glass_pastel_" .. hues .. ".png"},
|
||||
inventory_image = minetest.inventorycube("stained_glass_pastel_" .. hues .. ".png"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
light_source = 14,
|
||||
is_ground_content = true,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||
@ -276,9 +276,9 @@ for h = 1, 12 do
|
||||
description = "Stained Glass - faint_" .. hues,
|
||||
drawtype = "glasslike",
|
||||
tiles = {"stained_glass_faint_" .. hues .. ".png"},
|
||||
inventory_image = minetest.inventorycube("stained_glass_faint_" .. hues .. ".png"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
light_source = 14,
|
||||
is_ground_content = true,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||
|
Reference in New Issue
Block a user