+ Color light and snow nodes white

This commit is contained in:
Nils Dagsson Moskopp 2023-11-08 20:29:31 +01:00
parent 39646904a5
commit 058c92661b
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 3 additions and 0 deletions

View File

@ -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