Updates for testing improved saturation scale in ^[hsl and ^[colorizehsl
see commit c1503136a5 in the minetest PRmaster
parent
337a71467e
commit
7c1563e345
|
@ -82,3 +82,9 @@ texturemodifiertest.create_node("colorizehsl", nil, 30, -70, -50)
|
|||
texturemodifiertest.create_node("colorizehsl", nil, 0, -70, -50)
|
||||
texturemodifiertest.create_node("colorizehsl", nil, -30, -70, -50)
|
||||
texturemodifiertest.create_node("colorizehsl", nil, -150, -70, -50)
|
||||
|
||||
-- saturation above 100% (i.e. more than double)
|
||||
texturemodifiertest.create_node("colorizehsl", nil, 0, 200)
|
||||
texturemodifiertest.create_node("colorizehsl", nil, 0, 600)
|
||||
texturemodifiertest.create_node("colorizehsl", nil, 30, 200)
|
||||
texturemodifiertest.create_node("colorizehsl", nil, -30, 600)
|
||||
|
|
32
hsl.lua
32
hsl.lua
|
@ -82,3 +82,35 @@ texturemodifiertest.create_node("hsl", nil, 30, -70, -50)
|
|||
texturemodifiertest.create_node("hsl", nil, 0, -70, -50)
|
||||
texturemodifiertest.create_node("hsl", nil, -30, -70, -50)
|
||||
texturemodifiertest.create_node("hsl", nil, -150, -70, -50)
|
||||
|
||||
minetest.register_node("texturemodifiertest:Fantasy_testimage_satPlus30", {
|
||||
description = "Fantasy test image sat +30",
|
||||
tiles = {"fantasy.png^[hsl:0:30:0"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
minetest.register_node("texturemodifiertest:Fantasy_testimage_satPlus60", {
|
||||
description = "Fantasy test image sat +60",
|
||||
tiles = {"fantasy.png^[hsl:0:60:0"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
minetest.register_node("texturemodifiertest:Fantasy_testimage_satPlus90", {
|
||||
description = "Fantasy test image sat +90",
|
||||
tiles = {"fantasy.png^[hsl:0:90"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
minetest.register_node("texturemodifiertest:Fantasy_testimage_satPlus200", {
|
||||
description = "Fantasy test image sat +200",
|
||||
tiles = {"fantasy.png^[hsl:0:200:0"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
minetest.register_node("texturemodifiertest:Fantasy_testimage_satPlus300", {
|
||||
description = "Fantasy test image sat +300",
|
||||
tiles = {"fantasy.png^[hsl:0:300:0"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
minetest.register_node("texturemodifiertest:Fantasy_testimage_satPlus1000", {
|
||||
description = "Fantasy test image sat +1000",
|
||||
tiles = {"fantasy.png^[hsl:0:1000:0"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
|
||||
|
|
|
@ -9,3 +9,9 @@ minetest.register_node("texturemodifiertest:gradient", {
|
|||
tiles = {"gradient.png"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("texturemodifiertest:Fantasy_testimage", {
|
||||
description = "Fantasy test image unmodified",
|
||||
tiles = {"fantasy.png"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
-- Hue-Saturation-Lightness
|
||||
texturemodifiertest.create_node("hsl", "OOB", 181)
|
||||
texturemodifiertest.create_node("hsl", "OOB", -181)
|
||||
texturemodifiertest.create_node("hsl", "OOB", 0, 101, -101)
|
||||
texturemodifiertest.create_node("hsl", "OOB", 0, 1001, -101) -- saturation can now go as high as 1000%
|
||||
texturemodifiertest.create_node("hsl", "OOB", 0, -101, 101)
|
||||
texturemodifiertest.create_node("hsl", "OOB", 10000, 10000, 10000)
|
||||
|
||||
-- Colorize
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 181)
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", -181)
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 0, 101, -101)
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 0, 1001, -101) -- saturation can now go as high as 1000%
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 0, -101, 101)
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 10000, 10000, 10000)
|
||||
|
||||
|
|
|
@ -31,12 +31,6 @@ minetest.register_node("texturemodifiertest:Hardlight_to_raise_contrast", {
|
|||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("texturemodifiertest:Fantasy_testimage", {
|
||||
description = "Fantasy test image unmodified",
|
||||
tiles = {"fantasy.png"},
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("texturemodifiertest:Hardlight_to_raise_contrast_fantasy", {
|
||||
description = "Hard light blending an image with itself applys an s-curve effect that increases contrast without clipping",
|
||||
tiles = {"fantasy.png^[hardlight:fantasy.png"},
|
||||
|
|
Loading…
Reference in New Issue