+ Color light and snow nodes white
This commit is contained in:
parent
39646904a5
commit
058c92661b
3
init.lua
3
init.lua
|
@ -37,6 +37,9 @@ end
|
||||||
local get_node_color = function( node )
|
local get_node_color = function( node )
|
||||||
local short_name = node.name:gmatch(":.+")():gsub(":", "")
|
local short_name = node.name:gmatch(":.+")():gsub(":", "")
|
||||||
local value = ( #short_name % ( string.byte( short_name ) - 65 ) ) * 8
|
local value = ( #short_name % ( string.byte( short_name ) - 65 ) ) * 8
|
||||||
|
if short_name:find("light") or short_name:find("snow") then
|
||||||
|
value = 255
|
||||||
|
end
|
||||||
return clamp( value, 0, 255 )
|
return clamp( value, 0, 255 )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue