Skip to content

Commit

Permalink
Traktor: Fixed detail normals in terrain shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Feb 29, 2024
1 parent 342152b commit 33c3e17
Showing 1 changed file with 120 additions and 25 deletions.
145 changes: 120 additions & 25 deletions data/Source/System/Terrain/Terrain/Shaders/Templates/Terrain.xdi
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ Generated texture from surface cache.
<id>{180FE1F2-614A-514D-8E2F-ED363C0245BA}</id>
<comment/>
<position>
<first>-152</first>
<second>-677</second>
<first>-154</first>
<second>-703</second>
</position>
</item>
<item type="traktor.render.External" version="2,traktor.render.Node:1">
Expand Down Expand Up @@ -316,8 +316,8 @@ Generated texture from surface cache.
<id>{62A562A9-FB71-EB42-80E7-98A5AF9F5287}</id>
<comment/>
<position>
<first>-356</first>
<second>-632</second>
<first>-358</first>
<second>-658</second>
</position>
<parameterName>World_View</parameterName>
<type>Matrix</type>
Expand Down Expand Up @@ -428,17 +428,17 @@ Generated texture from surface cache.
<id>{31430D09-7ADB-554F-8DD8-CB0CD84B8194}</id>
<comment/>
<position>
<first>2375</first>
<second>255</second>
<first>2390</first>
<second>292</second>
</position>
<name>L_ViewPosition</name>
</item>
<item type="traktor.render.Variable" version="2,traktor.render.Node:1">
<id>{010F4795-3CF2-0A48-A9E8-E5EF67131EE2}</id>
<comment/>
<position>
<first>2375</first>
<second>212</second>
<first>2406</first>
<second>250</second>
</position>
<name>L_ViewNormal</name>
</item>
Expand Down Expand Up @@ -497,8 +497,8 @@ Generated texture from surface cache.
<id>{437C2A4C-5C5F-AA41-A372-380D3B91A86C}</id>
<comment/>
<position>
<first>-882</first>
<second>-706</second>
<first>-857</first>
<second>-661</second>
</position>
<name>L_SurfaceNormal</name>
</item>
Expand Down Expand Up @@ -549,16 +549,16 @@ Generated texture from surface cache.
<id>{5FF4BEC5-00F2-5A46-AD00-1616E1E52C57}</id>
<comment/>
<position>
<first>-896</first>
<second>-652</second>
<first>-890</first>
<second>-590</second>
</position>
</item>
<item type="traktor.render.Transform" version="traktor.render.Node:1">
<id>{EFCE9FC4-5E73-3C4E-B763-5AEA373E2191}</id>
<comment/>
<position>
<first>-639</first>
<second>-691</second>
<first>-605</first>
<second>-625</second>
</position>
</item>
<item type="traktor.render.Variable" version="2,traktor.render.Node:1">
Expand All @@ -583,8 +583,8 @@ Generated texture from surface cache.
<id>{36D3D25E-A79B-9D4C-B978-174DC2DAFD43}</id>
<comment/>
<position>
<first>133</first>
<second>-688</second>
<first>109</first>
<second>-665</second>
</position>
<name>L_ViewNormal</name>
</item>
Expand Down Expand Up @@ -716,25 +716,25 @@ Generated texture from surface cache.
<id>{55159F6D-B7AC-694B-AE48-EDDEB427B7EF}</id>
<comment/>
<position>
<first>2343</first>
<second>128</second>
<first>2358</first>
<second>126</second>
</position>
<name>L_SurfaceRoughness</name>
</item>
<item type="traktor.render.Scalar" version="traktor.render.Node:1">
<id>{CCE8848A-8742-D24D-B399-FC0D3C95B008}</id>
<comment/>
<position>
<first>2369</first>
<second>171</second>
<first>2400</first>
<second>168</second>
</position>
<value>0.25</value>
</item>
<item type="traktor.render.Scalar" version="traktor.render.Node:1">
<id>{FF129A59-01E5-AC44-9BAD-9FDC58095309}</id>
<comment/>
<position>
<first>2385</first>
<first>2416</first>
<second>44</second>
</position>
<value>0</value>
Expand Down Expand Up @@ -914,8 +914,8 @@ $Output = vec4(mix(t, b, f), 0.0f);
<id>{AC111C0C-7361-B945-9086-55316955BDF2}</id>
<comment/>
<position>
<first>2415</first>
<second>85</second>
<first>2446</first>
<second>84</second>
</position>
<name>L_Cut</name>
</item>
Expand Down Expand Up @@ -1112,8 +1112,8 @@ $Output = gl_DrawID;
<id>{A550A9D4-6122-614B-A8D9-AA31FE164B72}</id>
<comment/>
<position>
<first>-376</first>
<second>-709</second>
<first>-378</first>
<second>-735</second>
</position>
</item>
<item type="traktor.render.Variable" version="2,traktor.render.Node:1">
Expand Down Expand Up @@ -1322,6 +1322,51 @@ $Output = gl_DrawID;
</outputPins>
<values/>
</item>
<item type="traktor.render.Variable" version="2,traktor.render.Node:1">
<id>{72FAE0C4-091C-450D-BA1F-031A7CB948C0}</id>
<comment/>
<position>
<first>2374</first>
<second>208</second>
</position>
<name>L_ViewDetailNormal</name>
</item>
<item type="traktor.render.Variable" version="2,traktor.render.Node:1">
<id>{487A8D55-8859-4F13-BC41-CF56C048AC0D}</id>
<comment/>
<position>
<first>106</first>
<second>-554</second>
</position>
<name>L_ViewDetailNormal</name>
</item>
<item type="traktor.render.Normalize" version="traktor.render.Node:1">
<id>{29EBBD88-E595-47E9-BAD2-D9C6EA2BD354}</id>
<comment/>
<position>
<first>-372</first>
<second>-619</second>
</position>
</item>
<item type="traktor.render.Uniform" version="3,traktor.render.Node:1">
<id>{E67F493C-9E67-4C07-BA70-15DED108BE7E}</id>
<comment/>
<position>
<first>-359</first>
<second>-548</second>
</position>
<parameterName>World_View</parameterName>
<type>Matrix</type>
<frequency>Frame</frequency>
</item>
<item type="traktor.render.Transform" version="traktor.render.Node:1">
<id>{DD9EDFAC-3B65-4A37-A9D6-C3FD0E39A0E5}</id>
<comment/>
<position>
<first>-155</first>
<second>-593</second>
</position>
</item>
</nodes>
<edges>
<item type="traktor.render.Edge" version="1">
Expand Down Expand Up @@ -2424,6 +2469,56 @@ $Output = gl_DrawID;
<id>{92AA3735-BB4C-4541-81DA-AC500930B2E6}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[115]"/>
<id>{84BF3C26-64A7-4032-B775-1D369052B243}</id>
</source>
<destination>
<node ref="/object/nodes/item[114]"/>
<id>{65D9215E-45E9-BA48-8F10-4BCC7C576CC6}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[118]"/>
<id>{1E6639B6-8B58-4694-99E7-C058E3583522}</id>
</source>
<destination>
<node ref="/object/nodes/item[119]"/>
<id>{71A0310C-3928-44C3-8D4F-7D9AFF9EAE70}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[117]"/>
<id>{8591EE56-8A3E-41CF-8E98-8F8DB26AABDC}</id>
</source>
<destination>
<node ref="/object/nodes/item[119]"/>
<id>{345BDBFA-3326-40BF-B9DE-8ECA78A3EEF4}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[52]"/>
<id>{70C35B91-1C36-454C-98EC-7514AACF73C8}</id>
</source>
<destination>
<node ref="/object/nodes/item[117]"/>
<id>{FE413452-19EB-4DC9-B724-2984FA17CC20}</id>
</destination>
</item>
<item type="traktor.render.Edge" version="1">
<source>
<node ref="/object/nodes/item[119]"/>
<id>{70C35B91-1C36-454C-98EC-7514AACF73C8}</id>
</source>
<destination>
<node ref="/object/nodes/item[116]"/>
<id>{11585EBC-914D-4E6D-A10D-D01694FF9840}</id>
</destination>
</item>
</edges>
<groups>
<item type="traktor.render.Group">
Expand Down

0 comments on commit 33c3e17

Please sign in to comment.