Skip to content

Commit

Permalink
Kartong: Some tweaks to a rock and terrain surface material.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Jan 10, 2025
1 parent 17bc469 commit 5f1eb39
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 14 deletions.
Binary file modified data/Assets/Models/Eight/Eight.blend
Binary file not shown.
192 changes: 178 additions & 14 deletions data/Source/Scenes/Scene 02/Surface.xdi
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,100 @@ $Output = vec4(mix(t, b, f), 0.0f);
</item>
</outputPins>
</item>
<item type="traktor.render.BundleUnite" version="traktor.render.Node:1">
<id>{D84AE147-A1D7-5E44-95D1-31C0C86D7EE1}</id>
<comment/>
<position>
<first>1894</first>
<second>-494</second>
</position>
<names>
<item>Color</item>
<item>Normal</item>
<item>Roughness</item>
<item>Specular</item>
</names>
</item>
<item type="traktor.render.Scalar" version="traktor.render.Node:1">
<id>{640C375D-9C19-9C43-8B3D-E93B2B8F88E8}</id>
<comment/>
<position>
<first>1654</first>
<second>-440</second>
</position>
<value>0.8</value>
</item>
<item type="traktor.render.Scalar" version="traktor.render.Node:1">
<id>{8CE78C03-82A2-E74D-A1DC-CA7314EA73F0}</id>
<comment/>
<position>
<first>1663</first>
<second>-397</second>
</position>
<value>0.3</value>
</item>
<item type="traktor.render.Color" version="2,traktor.render.Node:1">
<id>{CEEC6DCE-1466-EF48-8693-938C2DDE7EF2}</id>
<comment/>
<position>
<first>962</first>
<second>-191</second>
</position>
<color>0.133333, 0.12549, 0.121569, 1</color>
<linear>true</linear>
</item>
<item type="traktor.render.Script" version="8,traktor.render.Node:1">
<id>{CA162ACC-E5D1-F14D-95AA-2071B936C9F6}</id>
<comment/>
<position>
<first>1407</first>
<second>-297</second>
</position>
<name>Overlay</name>
<technique/>
<domain>Undefined</domain>
<localSize>
<X>1</X>
<Y>1</Y>
<Z>1</Z>
</localSize>
<useRayTracing>false</useRayTracing>
<include/>
<inputPins>
<item>
<id>{52A043E1-22B9-C742-A1A6-8341D043284F}</id>
<name>A</name>
</item>
<item>
<id>{51E30CE0-3C94-4668-AC3A-2CE903530D64}</id>
<name>B</name>
</item>
</inputPins>
<outputPins>
<item>
<id>{4F792F72-F9F9-A945-8CAE-8F4EEEE77624}</id>
<name>Output</name>
<type>Vector</type>
</item>
</outputPins>
<script>
<![CDATA[
const vec3 f = step($B, vec3(0.5f));
const vec3 t = 1.0f - 2.0f * (1.0f - $A) * (1.0f - $B);
const vec3 b = 2.0f * $A * $B;
$Output = vec4(mix(t, b, f), 0.0f);
]]>
</script>
</item>
<item type="traktor.render.Swizzle" version="traktor.render.Node:1">
<id>{D5D38382-5902-4043-9436-B71F1F15E926}</id>
<comment/>
<position>
<first>1222</first>
<second>-241</second>
</position>
<swizzle>xyz</swizzle>
</item>
</nodes>
<edges>
<item type="traktor.render.Edge" version="1">
Expand Down Expand Up @@ -826,7 +920,67 @@ $Output = vec4(mix(t, b, f), 0.0f);
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[31]"/>
<node ref="/object/nodes/item[2]"/>
<id>{9AE16BB1-EB68-45A0-A878-8D01C210082B}</id>
</source>
<destination>
<node ref="/object/nodes/item[32]"/>
<id>{42DAA83F-B406-9C41-9C29-B62C8F625953}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[32]"/>
<id>{64E37C99-0E2F-304F-938A-7B048C129EE6}</id>
</source>
<destination>
<node ref="/object/nodes/item[3]"/>
<id>{731844D4-AFDC-4EAA-8B41-C4BA2455898F}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item"/>
<id>{EEB495BD-DE7F-4DE8-983A-7E9B220B927F}</id>
</source>
<destination>
<node ref="/object/nodes/item[32]"/>
<id>{5331ECCB-9127-8348-B9BB-5212CB4570DC}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[34]"/>
<id>{D33F8931-C90C-4EBA-8A04-A31D3E08FAB7}</id>
</source>
<destination>
<node ref="/object/nodes/item[33]"/>
<id>{EEB495BD-DE7F-4DE8-963A-7E9B220B927F}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[35]"/>
<id>{D33F8931-C90C-4EBA-8A04-A31D3E08FAB7}</id>
</source>
<destination>
<node ref="/object/nodes/item[33]"/>
<id>{EEB495BD-DE7F-4DE8-973A-7E9B220B927F}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[17]"/>
<id>{9F9F54FB-F1C4-884A-BFB0-BD2D94D07B79}</id>
</source>
<destination>
<node ref="/object/nodes/item[33]"/>
<id>{EEB495BD-DE7F-4DE8-953A-7E9B220B927F}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[33]"/>
<id>{EEB495BD-DE7F-4DE8-983A-7E9B220B927F}</id>
</source>
<destination>
Expand All @@ -836,7 +990,7 @@ $Output = vec4(mix(t, b, f), 0.0f);
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[31]"/>
<node ref="/object/nodes/item[33]"/>
<id>{EEB495BD-DE7F-4DE8-983A-7E9B220B927F}</id>
</source>
<destination>
Expand All @@ -846,32 +1000,42 @@ $Output = vec4(mix(t, b, f), 0.0f);
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[2]"/>
<id>{9AE16BB1-EB68-45A0-A878-8D01C210082B}</id>
<node ref="/object/nodes/item[24]"/>
<id>{ADB4FC1D-3726-4CC5-B4D5-1E2468274325}</id>
</source>
<destination>
<node ref="/object/nodes/item[32]"/>
<id>{42DAA83F-B406-9C41-9C29-B62C8F625953}</id>
<node ref="/object/nodes/item[37]"/>
<id>{52A043E1-22B9-C742-A1A6-8341D043284F}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[32]"/>
<id>{64E37C99-0E2F-304F-938A-7B048C129EE6}</id>
<node ref="/object/nodes/item[37]"/>
<id>{4F792F72-F9F9-A945-8CAE-8F4EEEE77624}</id>
</source>
<destination>
<node ref="/object/nodes/item[3]"/>
<id>{731844D4-AFDC-4EAA-8B41-C4BA2455898F}</id>
<node ref="/object/nodes/item[33]"/>
<id>{EEB495BD-DE7F-4DE8-943A-7E9B220B927F}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item"/>
<id>{EEB495BD-DE7F-4DE8-983A-7E9B220B927F}</id>
<node ref="/object/nodes/item[36]"/>
<id>{4B2822D0-4D9A-4BBB-9956-A996493EE672}</id>
</source>
<destination>
<node ref="/object/nodes/item[32]"/>
<id>{5331ECCB-9127-8348-B9BB-5212CB4570DC}</id>
<node ref="/object/nodes/item[38]"/>
<id>{F2E22CA6-DFF3-4B20-A70A-0D7A44EACD8C}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[38]"/>
<id>{ADB4FC1D-3726-4CC5-B4D5-1E2468274325}</id>
</source>
<destination>
<node ref="/object/nodes/item[37]"/>
<id>{51E30CE0-3C94-4668-AC3A-2CE903530D64}</id>
</destination>
</item>
</edges>
Expand Down
Binary file modified data/Source/Scenes/Scene 02/Terrain_Splat.xdd
Binary file not shown.

0 comments on commit 5f1eb39

Please sign in to comment.