From c14f71d5a6d0dbc3f0fe6fdb409bf01acafdd040 Mon Sep 17 00:00:00 2001 From: scurest Date: Tue, 23 Oct 2018 19:29:58 -0500 Subject: [PATCH] Fix glTF unlit group Use an Emissive node to convert Color->Shader. Fixes "can only connect closure to closure" error in the Rendered view. --- addons/io_scene_gltf/material/groups.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/io_scene_gltf/material/groups.json b/addons/io_scene_gltf/material/groups.json index 872b634..38971f7 100644 --- a/addons/io_scene_gltf/material/groups.json +++ b/addons/io_scene_gltf/material/groups.json @@ -12,5 +12,5 @@ "glTF <-> Blender UV":{"name":"glTF <-> Blender UV","inputs":[{"name":"Vector","idname":"NodeSocketVector","default_value":[0.0,0.0,0.0],"min_value":-1.0,"max_value":1.0}],"outputs":[{"name":"Vector","idname":"NodeSocketVector","default_value":[0.0,0.0,0.0],"min_value":0.0,"max_value":0.0}],"nodes":[{"name":"Mapping","idname":"ShaderNodeMapping","location":[0.0,0.0],"width":320.0,"height":100.0,"inputs":[null],"outputs":[null],"translation":[0.0,1.0,0.0],"rotation":[0.0,0.0,0.0],"scale":[1.0,-1.0,1.0]},{"name":"Group Output","idname":"NodeGroupOutput","location":[403.02301025390625,-113.90129089355469],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[]},{"name":"Group Input","idname":"NodeGroupInput","location":[-223.15174865722656,-78.30713653564453],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null]}],"links":[2,0,0,0,0,0,1,0]}, "glTF Metallic Roughness":{"name":"glTF Metallic Roughness","inputs":[{"name":"BaseColor","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"BaseColorFactor","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"MetallicRoughness","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"MetallicFactor","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"RoughnessFactor","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"Normal","idname":"NodeSocketColor","default_value":[0.5,0.5,1.0,1.0]},{"name":"NormalScale","idname":"NodeSocketFloat","default_value":1.0,"min_value":-10000.0,"max_value":10000.0},{"name":"Occlusion","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"OcclusionStrength","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"Emissive","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"EmissiveFactor","idname":"NodeSocketColor","default_value":[0.0,0.0,0.0,1.0]},{"name":"Alpha","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"AlphaCutoff","idname":"NodeSocketFloat","default_value":0.5,"min_value":0.0,"max_value":1.100000023841858},{"name":"AlphaMode","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"DoubleSided","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"Use COLOR_0","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"COLOR_0","idname":"NodeSocketColor","default_value":[0.0,0.0,0.0,1.0]}],"outputs":[{"name":"Shader","idname":"NodeSocketShader"}],"nodes":[{"name":"Frame.001","idname":"NodeFrame","location":[-1584.0823974609375,-185.23541259765625],"width":200.0,"height":205.93206787109375,"inputs":[],"outputs":[],"label":"Final Metallic"},{"name":"Frame.002","idname":"NodeFrame","location":[-1582.4742431640625,-469.21337890625],"width":200.0,"height":205.84051513671875,"inputs":[],"outputs":[],"label":"Final Rougness"},{"name":"Frame.005","idname":"NodeFrame","location":[-1752.0587158203125,226.65196228027344],"width":1085.137451171875,"height":387.17742919921875,"inputs":[],"outputs":[],"label":"Final Normal"},{"name":"Frame Lambert Cook Torrance","idname":"NodeFrame","location":[-396.4072265625,445.00347900390625],"width":1391.87939453125,"height":801.43310546875,"inputs":[],"outputs":[],"label":"Frame Lambert Cook Torrance"},{"name":"Frame","idname":"NodeFrame","location":[-1914.0579833984375,759.8992309570312],"width":1161.03857421875,"height":547.2410888671875,"inputs":[],"outputs":[],"label":"Final Base Color"},{"name":"Add Shader.001","idname":"ShaderNodeAddShader","location":[1126.6632080078125,-150.905517578125],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null]},{"name":"Group.001","idname":"ShaderNodeGroup","location":[1447.8125,-6.6367034912109375],"width":224.4757080078125,"height":100.0,"inputs":[null,null],"outputs":[null],"node_tree":"AlphaBlend"},{"name":"Group.003","idname":"ShaderNodeGroup","location":[43.54606628417969,-487.15155029296875],"width":228.6951904296875,"height":100.0,"inputs":[null,null],"outputs":[null],"node_tree":"Emissive"},{"name":"Math","idname":"ShaderNodeMath","location":[12.130615234375,14.16748046875],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":0,"operation":"MULTIPLY","use_clamp":true},{"name":"Group.002","idname":"ShaderNodeGroup","location":[1552.7491455078125,-296.4447937011719],"width":228.045166015625,"height":100.0,"inputs":[null,null,null],"outputs":[null],"node_tree":"AlphaMask"},{"name":"Math.002","idname":"ShaderNodeMath","location":[1293.96240234375,-206.8525390625],"width":140.0,"height":100.0,"inputs":[null,0.5],"outputs":[null],"operation":"GREATER_THAN","use_clamp":true},{"name":"Math.001","idname":"ShaderNodeMath","location":[4.8922119140625,-17.94610595703125],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":1,"operation":"MULTIPLY","use_clamp":true},{"name":"Separate RGB","idname":"ShaderNodeSeparateRGB","location":[-1989.39453125,-150.02886962890625],"width":140.0,"height":100.0,"inputs":[null],"outputs":[null,null,null]},{"name":"Vector Math","idname":"ShaderNodeVectorMath","location":[825.2493896484375,-110.62825775146484],"width":140.0,"height":100.0,"inputs":[null,[0.5,0.5,0.5]],"outputs":[null,null],"parent":2,"operation":"NORMALIZE"},{"name":"Combine XYZ","idname":"ShaderNodeCombineXYZ","location":[623.1748046875,-148.63827514648438],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":2},{"name":"Math.004","idname":"ShaderNodeMath","location":[403.1748046875,-157.00732421875],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":2,"operation":"MULTIPLY","use_clamp":false},{"name":"Math.003","idname":"ShaderNodeMath","location":[404.3687744140625,23.525436401367188],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":2,"operation":"MULTIPLY","use_clamp":false},{"name":"Separate XYZ","idname":"ShaderNodeSeparateXYZ","location":[183.1748046875,-178.52780151367188],"width":140.0,"height":100.0,"inputs":[null],"outputs":[null,null,null],"parent":2},{"name":"Normal Map","idname":"ShaderNodeNormalMap","location":[-59.8880615234375,-148.28164672851562],"width":150.0,"height":100.0,"inputs":[1.0,null],"outputs":[null],"parent":2},{"name":"Separate RGB.001","idname":"ShaderNodeSeparateRGB","location":[-2102.466064453125,-468.2144775390625],"width":140.0,"height":100.0,"inputs":[null],"outputs":[null,null,null]},{"name":"Group.005","idname":"ShaderNodeGroup","location":[-35.634521484375,-299.6968994140625],"width":257.7130126953125,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":3,"node_tree":"Specular"},{"name":"Group.007","idname":"ShaderNodeGroup","location":[-34.3133544921875,-134.0677032470703],"width":259.93011474609375,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":3,"node_tree":"Lambert"},{"name":"Math.008","idname":"ShaderNodeMath","location":[840.720458984375,203.34765625],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":3,"operation":"ADD","use_clamp":false},{"name":"Mix Shader","idname":"ShaderNodeMixShader","location":[1156.244873046875,-45.0941162109375],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":3},{"name":"Metal","idname":"ShaderNodeGroup","location":[-34.66009521484375,-0.7930908203125],"width":264.19866943359375,"height":100.0,"inputs":[null],"outputs":[null],"parent":3,"label":"Metal","node_tree":"Fresnel"},{"name":"Dielectric","idname":"ShaderNodeGroup","location":[-30.033599853515625,134.3914794921875],"width":256.7066650390625,"height":100.0,"inputs":[0.03999999910593033],"outputs":[null],"parent":3,"label":"Dielectric","node_tree":"Fresnel"},{"name":"Math.005","idname":"ShaderNodeMath","location":[596.1842041015625,295.30615234375],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":3,"operation":"MULTIPLY","use_clamp":false},{"name":"Math.006","idname":"ShaderNodeMath","location":[593.1119995117188,104.0655517578125],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":3,"operation":"MULTIPLY","use_clamp":false},{"name":"Math.007","idname":"ShaderNodeMath","location":[304.4941711425781,319.42962646484375],"width":140.0,"height":100.0,"inputs":[1.0,null],"outputs":[null],"parent":3,"operation":"SUBTRACT","use_clamp":false},{"name":"Group.004","idname":"ShaderNodeGroup","location":[504.06695556640625,-246.8521270751953],"width":227.8487548828125,"height":100.0,"inputs":[null,null,null,null],"outputs":[null],"parent":3,"node_tree":"Occlusion"},{"name":"Mix Shader.003","idname":"ShaderNodeMixShader","location":[1896.7586669921875,-139.0824737548828],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null]},{"name":"Group Output","idname":"NodeGroupOutput","location":[2613.734130859375,-154.20947265625],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[]},{"name":"Group","idname":"ShaderNodeGroup","location":[2082.906005859375,-695.5881958007812],"width":140.0,"height":100.0,"inputs":[null,0.0,0.5],"outputs":[null],"node_tree":"AlphaMask"},{"name":"Mix Shader.001","idname":"ShaderNodeMixShader","location":[2334.755126953125,-398.73394775390625],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null]},{"name":"Math.010","idname":"ShaderNodeMath","location":[1866.9962158203125,-485.6181945800781],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"operation":"MAXIMUM","use_clamp":true},{"name":"Math.009","idname":"ShaderNodeMath","location":[1426.772216796875,-529.56103515625],"width":140.0,"height":100.0,"inputs":[null,0.5],"outputs":[null],"operation":"GREATER_THAN","use_clamp":true},{"name":"Math.011","idname":"ShaderNodeMath","location":[1654.940673828125,-682.8173217773438],"width":140.0,"height":100.0,"inputs":[1.0,null],"outputs":[null],"operation":"SUBTRACT","use_clamp":true},{"name":"Geometry","idname":"ShaderNodeNewGeometry","location":[1432.1038818359375,-730.3104858398438],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null,null,null,null,null,null,null]},{"name":"RGB to BW","idname":"ShaderNodeRGBToBW","location":[274.4822998046875,-82.70074462890625],"width":140.0,"height":100.0,"inputs":[null],"outputs":[null],"parent":4,"label":"TODO: Check if OK."},{"name":"Mix","idname":"ShaderNodeMixRGB","location":[106.8974609375,2.0283203125],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"parent":4,"blend_type":"MULTIPLY","use_clamp":true},{"name":"RGB","idname":"ShaderNodeRGB","location":[-686.5562744140625,246.34185791015625],"width":140.0,"height":100.0,"inputs":[],"outputs":[null],"parent":4},{"name":"Math.013","idname":"ShaderNodeMath","location":[-537.4019775390625,-93.07781982421875],"width":140.0,"height":100.0,"inputs":[null,0.4000000059604645],"outputs":[null],"parent":4,"operation":"GREATER_THAN","use_clamp":true},{"name":"Mix.001","idname":"ShaderNodeMixRGB","location":[-119.661376953125,-32.52740478515625],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"parent":4,"blend_type":"MULTIPLY","use_clamp":true},{"name":"Group Input","idname":"NodeGroupInput","location":[-2667.22265625,-3.4456253051757812],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"name":"Mix.002","idname":"ShaderNodeMixRGB","location":[-358.7894287109375,103.55322265625],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":4,"blend_type":"MULTIPLY","use_clamp":true}],"links":[21,0,29,0,7,0,5,1,43,8,29,3,43,9,7,0,43,10,7,1,8,0,21,2,5,0,6,0,29,0,23,1,43,0,39,1,39,0,21,0,20,0,23,2,39,0,38,0,43,3,8,1,43,4,11,1,11,0,20,1,5,0,9,0,43,11,6,1,43,11,9,1,43,12,9,2,6,0,30,1,9,0,30,2,43,13,10,0,10,0,30,0,13,0,21,1,13,0,20,0,13,0,29,1,14,0,13,0,43,6,16,1,17,0,16,0,16,0,14,0,17,2,14,2,15,0,14,1,17,1,15,0,43,6,15,1,38,0,24,0,23,0,5,0,24,0,27,0,8,0,27,1,8,0,28,1,25,0,26,0,28,0,26,1,26,0,22,0,27,0,22,1,22,0,23,0,43,2,12,0,18,0,17,0,43,5,18,1,43,7,19,0,19,0,29,2,12,1,11,0,12,2,8,0,43,14,35,0,33,0,31,0,30,0,33,2,32,0,33,1,35,0,34,0,34,0,33,0,36,0,34,1,37,6,36,1,43,1,42,1,42,0,39,2,40,0,44,1,44,0,42,2,43,15,41,0,41,0,44,0,43,16,44,2]}, "glTF Specular Glossiness":{"name":"glTF Specular Glossiness","inputs":[{"name":"Diffuse","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"DiffuseFactor","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"Specular","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"Glossiness","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"SpecularFactor","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"GlossinessFactor","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"Normal","idname":"NodeSocketColor","default_value":[0.5,0.5,1.0,1.0]},{"name":"NormalScale","idname":"NodeSocketFloat","default_value":1.0,"min_value":-10000.0,"max_value":10000.0},{"name":"Occlusion","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"OcclusionStrength","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"Emissive","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"EmissiveFactor","idname":"NodeSocketColor","default_value":[0.0,0.0,0.0,1.0]},{"name":"Alpha","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"AlphaCutoff","idname":"NodeSocketFloat","default_value":0.5,"min_value":0.0,"max_value":1.100000023841858},{"name":"AlphaMode","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"DoubleSided","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"Use COLOR_0","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"COLOR_0","idname":"NodeSocketColor","default_value":[0.0,0.0,0.0,1.0]}],"outputs":[{"name":"Shader","idname":"NodeSocketShader"}],"nodes":[{"name":"Frame.005","idname":"NodeFrame","location":[-1752.0587158203125,226.65196228027344],"width":1085.137451171875,"height":387.17742919921875,"inputs":[],"outputs":[],"label":"Final Normal"},{"name":"Frame.002","idname":"NodeFrame","location":[-1560.3077392578125,-486.6427307128906],"width":200.0,"height":205.41116333007812,"inputs":[],"outputs":[],"label":"Final Rougness"},{"name":"Frame Lambert Cook Torrance","idname":"NodeFrame","location":[-396.4072265625,445.00347900390625],"width":1392.0640869140625,"height":489.33453369140625,"inputs":[],"outputs":[],"label":"Frame Lambert Cook Torrance"},{"name":"Frame","idname":"NodeFrame","location":[-1914.0579833984375,759.8992309570312],"width":993.4537353515625,"height":547.2410888671875,"inputs":[],"outputs":[],"label":"Final Base Color"},{"name":"Add Shader.001","idname":"ShaderNodeAddShader","location":[1126.6632080078125,-150.905517578125],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null]},{"name":"Group.001","idname":"ShaderNodeGroup","location":[1447.8125,-6.6367034912109375],"width":224.4757080078125,"height":100.0,"inputs":[null,null],"outputs":[null],"node_tree":"AlphaBlend"},{"name":"Group.003","idname":"ShaderNodeGroup","location":[43.54606628417969,-487.15155029296875],"width":228.6951904296875,"height":100.0,"inputs":[null,null],"outputs":[null],"node_tree":"Emissive"},{"name":"Group.002","idname":"ShaderNodeGroup","location":[1552.7491455078125,-296.4447937011719],"width":228.045166015625,"height":100.0,"inputs":[null,null,null],"outputs":[null],"node_tree":"AlphaMask"},{"name":"Math.002","idname":"ShaderNodeMath","location":[1293.96240234375,-206.8525390625],"width":140.0,"height":100.0,"inputs":[null,0.5],"outputs":[null],"operation":"GREATER_THAN","use_clamp":true},{"name":"Vector Math","idname":"ShaderNodeVectorMath","location":[825.2493896484375,-110.62825775146484],"width":140.0,"height":100.0,"inputs":[null,[0.5,0.5,0.5]],"outputs":[null,null],"parent":0,"operation":"NORMALIZE"},{"name":"Combine XYZ","idname":"ShaderNodeCombineXYZ","location":[623.1748046875,-148.63827514648438],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":0},{"name":"Math.004","idname":"ShaderNodeMath","location":[403.1748046875,-157.00732421875],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":0,"operation":"MULTIPLY","use_clamp":false},{"name":"Math.003","idname":"ShaderNodeMath","location":[404.3687744140625,23.525436401367188],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":0,"operation":"MULTIPLY","use_clamp":false},{"name":"Separate XYZ","idname":"ShaderNodeSeparateXYZ","location":[183.1748046875,-178.52780151367188],"width":140.0,"height":100.0,"inputs":[null],"outputs":[null,null,null],"parent":0},{"name":"Normal Map","idname":"ShaderNodeNormalMap","location":[-59.8880615234375,-148.28164672851562],"width":150.0,"height":100.0,"inputs":[1.0,null],"outputs":[null],"parent":0},{"name":"Separate RGB.001","idname":"ShaderNodeSeparateRGB","location":[-2102.466064453125,-468.2144775390625],"width":140.0,"height":100.0,"inputs":[null],"outputs":[null,null,null]},{"name":"Mix Shader.003","idname":"ShaderNodeMixShader","location":[1896.7586669921875,-139.0824737548828],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null]},{"name":"Group Output","idname":"NodeGroupOutput","location":[2613.734130859375,-154.20947265625],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[]},{"name":"Group","idname":"ShaderNodeGroup","location":[2082.906005859375,-695.5881958007812],"width":140.0,"height":100.0,"inputs":[null,0.0,0.5],"outputs":[null],"node_tree":"AlphaMask"},{"name":"Mix Shader.001","idname":"ShaderNodeMixShader","location":[2334.755126953125,-398.73394775390625],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null]},{"name":"Math.010","idname":"ShaderNodeMath","location":[1866.9962158203125,-485.6181945800781],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"operation":"MAXIMUM","use_clamp":true},{"name":"Math.009","idname":"ShaderNodeMath","location":[1426.772216796875,-529.56103515625],"width":140.0,"height":100.0,"inputs":[null,0.5],"outputs":[null],"operation":"GREATER_THAN","use_clamp":true},{"name":"Math.011","idname":"ShaderNodeMath","location":[1654.940673828125,-682.8173217773438],"width":140.0,"height":100.0,"inputs":[1.0,null],"outputs":[null],"operation":"SUBTRACT","use_clamp":true},{"name":"Geometry","idname":"ShaderNodeNewGeometry","location":[1432.1038818359375,-730.3104858398438],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null,null,null,null,null,null,null]},{"name":"Math.001","idname":"ShaderNodeMath","location":[4.8922119140625,-17.94610595703125],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":1,"operation":"MULTIPLY","use_clamp":true},{"name":"Math.012","idname":"ShaderNodeMath","location":[-1285.6337890625,-523.4595336914062],"width":140.0,"height":100.0,"inputs":[1.0,null],"outputs":[null],"operation":"SUBTRACT","use_clamp":true},{"name":"Group Input","idname":"NodeGroupInput","location":[-2667.22265625,-3.4456253051757812],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"name":"Group.007","idname":"ShaderNodeGroup","location":[-34.3133544921875,-134.0677032470703],"width":259.93011474609375,"height":100.0,"inputs":[null,null,0.0],"outputs":[null],"parent":2,"node_tree":"Lambert"},{"name":"Mix Shader","idname":"ShaderNodeMixShader","location":[1156.244873046875,-45.0941162109375],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":2},{"name":"Group.004","idname":"ShaderNodeGroup","location":[504.06695556640625,-246.8521270751953],"width":227.8487548828125,"height":100.0,"inputs":[null,null,null,null],"outputs":[null],"parent":2,"node_tree":"Occlusion"},{"name":"Group.005","idname":"ShaderNodeGroup","location":[-35.634521484375,-299.6968994140625],"width":257.7130126953125,"height":100.0,"inputs":[null,null],"outputs":[null],"parent":2,"node_tree":"Specular"},{"name":"Metal","idname":"ShaderNodeGroup","location":[-35.819244384765625,7.3310546875],"width":264.19866943359375,"height":100.0,"inputs":[null],"outputs":[null],"parent":2,"label":"Metal","node_tree":"Fresnel"},{"name":"Mix","idname":"ShaderNodeMixRGB","location":[106.8974609375,2.0283203125],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"parent":3,"blend_type":"MULTIPLY","use_clamp":true},{"name":"RGB","idname":"ShaderNodeRGB","location":[-686.5562744140625,246.34185791015625],"width":140.0,"height":100.0,"inputs":[],"outputs":[null],"parent":3},{"name":"Math.013","idname":"ShaderNodeMath","location":[-537.4019775390625,-93.07781982421875],"width":140.0,"height":100.0,"inputs":[null,0.4000000059604645],"outputs":[null],"parent":3,"operation":"GREATER_THAN","use_clamp":true},{"name":"Mix.001","idname":"ShaderNodeMixRGB","location":[-119.661376953125,-32.52740478515625],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"parent":3,"blend_type":"MULTIPLY","use_clamp":true},{"name":"Mix.003","idname":"ShaderNodeMixRGB","location":[-2068.913818359375,383.62286376953125],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"blend_type":"MULTIPLY","use_clamp":true},{"name":"TODO: Check if OK.","idname":"ShaderNodeRGBToBW","location":[-1840.0738525390625,402.26922607421875],"width":140.0,"height":100.0,"inputs":[null],"outputs":[null],"label":"TODO: Check if OK."},{"name":"Mix.002","idname":"ShaderNodeMixRGB","location":[-358.7894287109375,103.55322265625],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":3,"blend_type":"MULTIPLY","use_clamp":true}],"links":[27,0,29,0,6,0,4,1,26,9,29,3,26,10,6,0,26,11,6,1,4,0,5,0,29,0,28,1,26,0,32,1,32,0,27,0,30,0,28,2,26,5,24,1,4,0,7,0,26,12,5,1,26,12,7,1,26,13,7,2,5,0,16,1,7,0,16,2,26,14,8,0,8,0,16,0,9,0,27,1,9,0,30,0,9,0,29,1,10,0,9,0,26,7,12,1,13,0,12,0,12,0,10,0,13,2,10,2,11,0,10,1,13,1,11,0,26,7,11,1,28,0,4,0,14,0,13,0,26,6,14,1,26,8,15,0,15,0,29,2,26,15,21,0,19,0,17,0,16,0,19,2,18,0,19,1,21,0,20,0,20,0,19,0,22,0,20,1,23,6,22,1,26,1,35,1,35,0,32,2,33,0,38,1,38,0,35,2,26,16,34,0,34,0,38,0,26,3,24,0,24,0,25,1,25,0,30,1,26,2,36,1,26,4,36,2,31,0,28,0,36,0,37,0,37,0,31,0,26,17,38,2]}, -"glTF Unlit":{"name":"glTF Unlit","inputs":[{"name":"BaseColor","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"BaseColorFactor","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"Alpha","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"AlphaCutoff","idname":"NodeSocketFloat","default_value":0.5,"min_value":0.0,"max_value":1.100000023841858},{"name":"AlphaMode","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"DoubleSided","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"Use COLOR_0","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"COLOR_0","idname":"NodeSocketColor","default_value":[0.0,0.0,0.0,1.0]}],"outputs":[{"name":"Shader","idname":"NodeSocketShader"}],"nodes":[{"name":"Frame","idname":"NodeFrame","location":[-1914.0579833984375,759.8992309570312],"width":993.4537353515625,"height":547.2410888671875,"inputs":[],"outputs":[],"label":"Final Base Color"},{"name":"Group Input","idname":"NodeGroupInput","location":[-2667.22265625,-3.4456253051757812],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null,null,null,null,null,null,null,null]},{"name":"Group.001","idname":"ShaderNodeGroup","location":[-1073.3193359375,497.98876953125],"width":224.4757080078125,"height":100.0,"inputs":[null,null],"outputs":[null],"node_tree":"AlphaBlend"},{"name":"Group.002","idname":"ShaderNodeGroup","location":[-968.3826904296875,208.1806640625],"width":228.045166015625,"height":100.0,"inputs":[null,null,null],"outputs":[null],"node_tree":"AlphaMask"},{"name":"Math.002","idname":"ShaderNodeMath","location":[-1227.16943359375,297.7729187011719],"width":140.0,"height":100.0,"inputs":[null,0.5],"outputs":[null],"operation":"GREATER_THAN","use_clamp":true},{"name":"Mix Shader.003","idname":"ShaderNodeMixShader","location":[-624.3731689453125,365.54296875],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null]},{"name":"Group Output","idname":"NodeGroupOutput","location":[92.602294921875,350.4159851074219],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[]},{"name":"Group","idname":"ShaderNodeGroup","location":[-438.225830078125,-190.96273803710938],"width":140.0,"height":100.0,"inputs":[null,0.0,0.5],"outputs":[null],"node_tree":"AlphaMask"},{"name":"Mix Shader.001","idname":"ShaderNodeMixShader","location":[-186.376708984375,105.89151000976562],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null]},{"name":"Math.010","idname":"ShaderNodeMath","location":[-654.1356201171875,19.00726318359375],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"operation":"MAXIMUM","use_clamp":true},{"name":"Math.009","idname":"ShaderNodeMath","location":[-1094.359619140625,-24.935577392578125],"width":140.0,"height":100.0,"inputs":[null,0.5],"outputs":[null],"operation":"GREATER_THAN","use_clamp":true},{"name":"Math.011","idname":"ShaderNodeMath","location":[-866.191162109375,-178.19186401367188],"width":140.0,"height":100.0,"inputs":[1.0,null],"outputs":[null],"operation":"SUBTRACT","use_clamp":true},{"name":"Geometry","idname":"ShaderNodeNewGeometry","location":[-1089.0279541015625,-225.68502807617188],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null,null,null,null,null,null,null]},{"name":"Mix","idname":"ShaderNodeMixRGB","location":[106.8974609375,2.0283203125],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"parent":0,"blend_type":"MULTIPLY","use_clamp":true},{"name":"RGB","idname":"ShaderNodeRGB","location":[-686.5562744140625,246.34185791015625],"width":140.0,"height":100.0,"inputs":[],"outputs":[null],"parent":0},{"name":"Math.013","idname":"ShaderNodeMath","location":[-537.4019775390625,-93.07781982421875],"width":140.0,"height":100.0,"inputs":[null,0.4000000059604645],"outputs":[null],"parent":0,"operation":"GREATER_THAN","use_clamp":true},{"name":"Mix.001","idname":"ShaderNodeMixRGB","location":[-119.661376953125,-32.52740478515625],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"parent":0,"blend_type":"MULTIPLY","use_clamp":true},{"name":"Mix.002","idname":"ShaderNodeMixRGB","location":[-358.7894287109375,103.55322265625],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":0,"blend_type":"MULTIPLY","use_clamp":true}],"links":[1,0,13,1,1,2,2,1,1,2,3,1,1,3,3,2,2,0,5,1,3,0,5,2,1,4,4,0,4,0,5,0,1,5,10,0,8,0,6,0,5,0,8,2,7,0,8,1,10,0,9,0,9,0,8,0,11,0,9,1,12,6,11,1,1,1,16,1,16,0,13,2,14,0,17,1,17,0,16,2,1,6,15,0,15,0,17,0,1,7,17,2,13,0,2,0,13,0,3,0]} +"glTF Unlit":{"name":"glTF Unlit","inputs":[{"name":"BaseColor","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"BaseColorFactor","idname":"NodeSocketColor","default_value":[1.0,1.0,1.0,1.0]},{"name":"Alpha","idname":"NodeSocketFloatFactor","default_value":1.0,"min_value":0.0,"max_value":1.0},{"name":"AlphaCutoff","idname":"NodeSocketFloat","default_value":0.5,"min_value":0.0,"max_value":1.100000023841858},{"name":"AlphaMode","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"DoubleSided","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"Use COLOR_0","idname":"NodeSocketFloatFactor","default_value":0.0,"min_value":0.0,"max_value":1.0},{"name":"COLOR_0","idname":"NodeSocketColor","default_value":[0.0,0.0,0.0,1.0]}],"outputs":[{"name":"Shader","idname":"NodeSocketShader"}],"nodes":[{"name":"Frame","idname":"NodeFrame","location":[-1914.0579833984375,759.8992309570312],"width":993.4537353515625,"height":547.2410888671875,"inputs":[],"outputs":[],"label":"Final Base Color"},{"name":"Group Input","idname":"NodeGroupInput","location":[-2667.22265625,-3.4456253051757812],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null,null,null,null,null,null,null,null]},{"name":"Group.001","idname":"ShaderNodeGroup","location":[-1073.3193359375,497.98876953125],"width":224.4757080078125,"height":100.0,"inputs":[null,null],"outputs":[null],"node_tree":"AlphaBlend"},{"name":"Group.002","idname":"ShaderNodeGroup","location":[-968.3826904296875,208.1806640625],"width":228.045166015625,"height":100.0,"inputs":[null,null,null],"outputs":[null],"node_tree":"AlphaMask"},{"name":"Math.002","idname":"ShaderNodeMath","location":[-1227.16943359375,297.7729187011719],"width":140.0,"height":100.0,"inputs":[null,0.5],"outputs":[null],"operation":"GREATER_THAN","use_clamp":true},{"name":"Mix Shader.003","idname":"ShaderNodeMixShader","location":[-624.3731689453125,365.54296875],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null]},{"name":"Group Output","idname":"NodeGroupOutput","location":[92.602294921875,350.4159851074219],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[]},{"name":"Group","idname":"ShaderNodeGroup","location":[-438.225830078125,-190.96273803710938],"width":140.0,"height":100.0,"inputs":[null,0.0,0.5],"outputs":[null],"node_tree":"AlphaMask"},{"name":"Mix Shader.001","idname":"ShaderNodeMixShader","location":[-186.376708984375,105.89151000976562],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null]},{"name":"Math.010","idname":"ShaderNodeMath","location":[-654.1356201171875,19.00726318359375],"width":140.0,"height":100.0,"inputs":[null,null],"outputs":[null],"operation":"MAXIMUM","use_clamp":true},{"name":"Math.009","idname":"ShaderNodeMath","location":[-1094.359619140625,-24.935577392578125],"width":140.0,"height":100.0,"inputs":[null,0.5],"outputs":[null],"operation":"GREATER_THAN","use_clamp":true},{"name":"Math.011","idname":"ShaderNodeMath","location":[-866.191162109375,-178.19186401367188],"width":140.0,"height":100.0,"inputs":[1.0,null],"outputs":[null],"operation":"SUBTRACT","use_clamp":true},{"name":"Geometry","idname":"ShaderNodeNewGeometry","location":[-1089.0279541015625,-225.68502807617188],"width":140.0,"height":100.0,"inputs":[],"outputs":[null,null,null,null,null,null,null,null]},{"name":"Mix","idname":"ShaderNodeMixRGB","location":[106.8974609375,2.0283203125],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"parent":0,"blend_type":"MULTIPLY","use_clamp":true},{"name":"RGB","idname":"ShaderNodeRGB","location":[-686.5562744140625,246.34185791015625],"width":140.0,"height":100.0,"inputs":[],"outputs":[null],"parent":0},{"name":"Math.013","idname":"ShaderNodeMath","location":[-537.4019775390625,-93.07781982421875],"width":140.0,"height":100.0,"inputs":[null,0.4000000059604645],"outputs":[null],"parent":0,"operation":"GREATER_THAN","use_clamp":true},{"name":"Mix.001","idname":"ShaderNodeMixRGB","location":[-119.661376953125,-32.52740478515625],"width":140.0,"height":100.0,"inputs":[1.0,null,null],"outputs":[null],"parent":0,"blend_type":"MULTIPLY","use_clamp":true},{"name":"Mix.002","idname":"ShaderNodeMixRGB","location":[-358.7894287109375,103.55322265625],"width":140.0,"height":100.0,"inputs":[null,null,null],"outputs":[null],"parent":0,"blend_type":"MULTIPLY","use_clamp":true},{"name":"Emission","idname":"ShaderNodeEmission","location":[-1490.6680908203125,603.2105102539062],"width":140.0,"height":100.0,"inputs":[null,1.0],"outputs":[null]}],"links":[1,0,13,1,1,2,2,1,1,2,3,1,1,3,3,2,2,0,5,1,3,0,5,2,1,4,4,0,4,0,5,0,1,5,10,0,8,0,6,0,5,0,8,2,7,0,8,1,10,0,9,0,9,0,8,0,11,0,9,1,12,6,11,1,1,1,16,1,16,0,13,2,14,0,17,1,17,0,16,2,1,6,15,0,15,0,17,0,1,7,17,2,13,0,18,0,18,0,2,0,18,0,3,0]} }