Skip to content

Commit 1f8edd9

Browse files
committed
fix UV mapping in example
1 parent e38027c commit 1f8edd9

File tree

2 files changed

+85
-5
lines changed

2 files changed

+85
-5
lines changed

Operators/examples/lib/field/space/TwistFieldExample.t3

+78-5
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
{
6666
"Id": "3a23730d-09b9-44bd-84b7-c252dd83e1f9"/*UVMapping*/,
6767
"Type": "System.Int32",
68-
"Value": 4
68+
"Value": 3
6969
},
7070
{
7171
"Id": "561768f6-adf6-4d3d-a36a-20b6f35ff151"/*StepSize*/,
@@ -160,9 +160,9 @@
160160
"Id": "a2025ddf-423f-4683-a4ce-ec8c7bda42ee"/*Position*/,
161161
"Type": "System.Numerics.Vector3",
162162
"Value": {
163-
"X": 0.06,
164-
"Y": 0.35694015,
165-
"Z": 0.5183549
163+
"X": 0.5,
164+
"Y": 0.0,
165+
"Z": 0.5
166166
}
167167
}
168168
],
@@ -298,6 +298,79 @@
298298
],
299299
"Outputs": []
300300
},
301+
{
302+
"Id": "77941b0a-0f99-47da-832a-a12db25d442d"/*RadialGradient*/,
303+
"SymbolId": "82ad8911-c930-4851-803d-3f24422445bc",
304+
"InputValues": [
305+
{
306+
"Id": "3f5a284b-e2f0-47e2-bf79-2a7fe8949519"/*Gradient*/,
307+
"Type": "T3.Core.DataTypes.Gradient",
308+
"Value": {
309+
"Gradient": {
310+
"Interpolation": "Linear",
311+
"Steps": [
312+
{
313+
"Id": "d05c1359-27bb-4597-9ee3-ff91ff272fbe",
314+
"NormalizedPosition": 0.0,
315+
"Color": {
316+
"R": 1.0,
317+
"G": 0.0,
318+
"B": 0.8881569,
319+
"A": 1.0
320+
}
321+
},
322+
{
323+
"Id": "3ae4d561-fb44-47bc-85eb-f889753040c2",
324+
"NormalizedPosition": 0.38503733,
325+
"Color": {
326+
"R": 0.0,
327+
"G": 0.94376475,
328+
"B": 0.11766256,
329+
"A": 1.0
330+
}
331+
},
332+
{
333+
"Id": "b3df5d72-f345-49f8-b715-ad0d3b478bc0",
334+
"NormalizedPosition": 0.65094537,
335+
"Color": {
336+
"R": 0.928,
337+
"G": 0.0,
338+
"B": 0.0027780456,
339+
"A": 1.0
340+
}
341+
},
342+
{
343+
"Id": "243fd7ee-076b-4b73-b233-1bdef7fd1ef8",
344+
"NormalizedPosition": 1.0,
345+
"Color": {
346+
"R": 1.0,
347+
"G": 0.0,
348+
"B": 0.888,
349+
"A": 1.0
350+
}
351+
}
352+
]
353+
}
354+
}
355+
},
356+
{
357+
"Id": "7270a7df-744e-4b66-8f85-71fbdf0848d6"/*BlendMode*/,
358+
"Type": "System.Int32",
359+
"Value": 2
360+
},
361+
{
362+
"Id": "dc383dbd-9dab-4bb2-8c6e-7f094e28d8a9"/*PolarOrientation*/,
363+
"Type": "System.Boolean",
364+
"Value": true
365+
},
366+
{
367+
"Id": "eab31c38-0e6f-432a-9f15-04bfb0aae28c"/*Repeat*/,
368+
"Type": "System.Boolean",
369+
"Value": false
370+
}
371+
],
372+
"Outputs": []
373+
},
301374
{
302375
"Id": "7a19727c-60e5-45b9-a2ae-5177dfa89817"/*RenderTarget*/,
303376
"SymbolId": "f9fe78c5-43a6-48ae-8e8c-6cdbbc330dd1",
@@ -776,7 +849,7 @@
776849
"TargetSlotId": "7c656067-ef12-4990-b094-7f8160a242d1"
777850
},
778851
{
779-
"SourceParentOrChildId": "76cd258a-f4e0-4ab4-93bf-71200da79148",
852+
"SourceParentOrChildId": "77941b0a-0f99-47da-832a-a12db25d442d",
780853
"SourceSlotId": "9785937a-2b8f-4b2e-92ac-98ec067a40f2",
781854
"TargetParentOrChildId": "e3280e1c-069c-4983-b56c-05f74a382671",
782855
"TargetSlotId": "0eb51df1-570a-4ac6-bae6-5e03d6e66ceb"

Operators/examples/lib/field/space/TwistFieldExample.t3ui

+7
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@
8787
"Y": 365.7622
8888
}
8989
},
90+
{
91+
"ChildId": "77941b0a-0f99-47da-832a-a12db25d442d"/*RadialGradient*/,
92+
"Position": {
93+
"X": 699.20447,
94+
"Y": 325.26312
95+
}
96+
},
9097
{
9198
"ChildId": "7a19727c-60e5-45b9-a2ae-5177dfa89817"/*RenderTarget*/,
9299
"Position": {

0 commit comments

Comments
 (0)