Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
4d05d31
Merge remote-tracking branch 'graphics/virtualtexturing-shader-lib-fi…
julienf-unity Jun 30, 2020
5fc843d
Vfx/docs/new operator docs (#50)
Jun 30, 2020
b78a9a6
Fix creation of StringPropertyRM (#51)
iTris666 Jun 30, 2020
30f8704
Fix input of event emitting block beeing to small because of output
iTris666 Jun 30, 2020
36078e9
Multi-mesh output, LODs and compute culling (#14)
julienf-unity Jul 1, 2020
5f6c25b
Simulate headers on enum values in SlotContainerEditor (#49)
iTris666 Jul 1, 2020
dabba9d
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Jul 2, 2020
af03309
Update VFX
julienf-unity Jul 2, 2020
a526606
Fix for blackboard scrollable element hidden by resize.
iTris666 Jul 2, 2020
23b0db0
Disable LOD test for XR
julienf-unity Jul 2, 2020
1f5a122
Fix test threshold that was reset to 0...
julienf-unity Jul 3, 2020
fe156b6
Ignoer graphviz folder
julienf-unity Jul 3, 2020
650ffc2
Merge branch 'vfx/staging' of github.cds.internal.unity3d.com:unity/v…
iTris666 Jul 6, 2020
4003aeb
Target Gameobject windows resize doesn't go too far above scrollbars
iTris666 Jul 6, 2020
cfdda19
Merge branch 'master' into vfx/staging
PaulDemeulenaere Jul 9, 2020
e3ba0e6
Missing or incorrect unit in uss.
iTris666 Jul 10, 2020
53a3ca8
fix for reference image "VFX/Execution" not updated to new path ( war…
iTris666 Jul 10, 2020
716c649
Merge branch 'vfx/staging' of github.cds.internal.unity3d.com:unity/v…
iTris666 Jul 16, 2020
e1deab6
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Jul 17, 2020
da23eb9
Change description in package.json to reflect VFX is not out of previ…
julienf-unity Jul 17, 2020
89945d1
Simplify linear drag (#67)
iTris666 Jul 17, 2020
a99b1f1
Enable m_CachingShaderPreprocessor (#65)
PaulDemeulenaere Jul 21, 2020
8c8e57a
Fix for node window staying when clicking elsewhere (#68)
iTris666 Jul 22, 2020
40c04ca
Prevent resourcehistory from beeing set to null by serialization (#66)
iTris666 Jul 22, 2020
54114d9
Vfx/docs/system requirements (#69)
Jul 23, 2020
5816cbe
Fix position of block creation window (#72)
iTris666 Jul 23, 2020
56a532e
Fix Missing System Seed Builtin (#70)
PaulDemeulenaere Jul 24, 2020
9bc1fb3
Fix Prefab Highlight for initial event name toggle & override (#71)
PaulDemeulenaere Jul 24, 2020
6838cf2
Add test for Mesh Stripping (#59)
PaulDemeulenaere Jul 24, 2020
a8f2375
Call recreateCopy after recusion test not before. (#52)
iTris666 Jul 27, 2020
c23e884
Uniquify create visual effect gameobject name. Standard behaviour. (#75)
iTris666 Jul 27, 2020
9709d6d
Use the AssetDatabase.FindAsset to find VFXResources asset (#48)
iTris666 Jul 30, 2020
0c8a64b
Added feature: User can specify a directory that holds their VFX temp…
tyanalunas Aug 3, 2020
a7c57f4
Vfx/fix/1246989 normals and scale (#81)
julienf-unity Aug 18, 2020
d738a68
Fix Texture2DArray and Cubemap exposition from sg in output mesh cont…
julienf-unity Aug 19, 2020
84602be
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Aug 19, 2020
f73d36d
Temporarily deactivate non uniform scale test (Some files were lost :()
julienf-unity Aug 20, 2020
a4c7bf3
[Test] Enable test to cover properly reset override behavior (#80)
PaulDemeulenaere Aug 24, 2020
3e771e2
int and uint support in Compare (#53)
julienf-unity Aug 25, 2020
453feba
Added render pipeline compatability table (#87)
Aug 27, 2020
2981e68
Fix square complexity on parameter to serialized property matching (#78)
iTris666 Aug 27, 2020
e600d59
Fix vfx view not beeing framed at launch (#79)
iTris666 Aug 27, 2020
42aa588
Fix for the lookup of mixed values in the VisualEffectEditor with obj…
iTris666 Aug 31, 2020
ea2697f
Merge branch 'master' into vfx/staging
PaulDemeulenaere Aug 31, 2020
9ef7a9d
SampleSDF operator (#88)
ludovic-theobald Sep 2, 2020
55f6371
Fix Shadow compilation using shaderGraph (URP/HDRP) (#77)
PaulDemeulenaere Sep 2, 2020
292a833
Fix UInt/Int Condition Reduction (PS4/X1 issue) (#96)
PaulDemeulenaere Sep 3, 2020
dca3c30
Fix 1154328 - infinite recompile with rand (#93)
julienf-unity Sep 10, 2020
cd77446
World to Viewport Point & Viewport to World Point operators + Test (#98)
gabrieldelacruz Sep 10, 2020
7ceeec9
Make null ( not deserializable ) objects part of undo state (#86)
iTris666 Sep 11, 2020
d2b86f6
Fix compile loop in vfxoperator (#61)
iTris666 Sep 11, 2020
a81c07b
Update to visual studio package 2.0.2 (#74)
iTris666 Sep 11, 2020
7049656
Fix SDF Operators and blocks from PR #88 (#94)
ludovic-theobald Sep 15, 2020
683a661
Merge remote-tracking branch 'graphics/mobile/fast-srgb-linear-conver…
julienf-unity Sep 17, 2020
aba779d
Fix Mesh Sampling for PS4/XOne (ByteAddressBuffer) (#91)
PaulDemeulenaere Sep 17, 2020
6f4d5a6
Merge branch 'vfx/staging' of github.cds.internal.unity3d.com:unity/v…
julienf-unity Sep 17, 2020
318b302
Update assets
julienf-unity Sep 18, 2020
6608c91
Update URP tests assets
julienf-unity Sep 18, 2020
963d321
More update to assets
julienf-unity Sep 18, 2020
64fcf79
Remove old gfx tests images ref
julienf-unity Sep 18, 2020
96ffc00
Fix changelog
julienf-unity Sep 18, 2020
293b0d4
Fix Construct Matrix on GPU (#102)
PaulDemeulenaere Sep 21, 2020
eb830bb
Output Event Helpers (#58)
Sep 23, 2020
0958290
Add support for Gradient sampling with and without gradient mode #100
gabrieldelacruz Sep 23, 2020
f6fd8a5
Fix changelog
julienf-unity Sep 24, 2020
192b466
Fix case 1279294 : Invalid Random per component behavior in spawn con…
PaulDemeulenaere Sep 24, 2020
e72745d
Revert "Output Event Helpers" (#110)
PaulDemeulenaere Sep 24, 2020
12afe73
Fix changelog (missing revert)
PaulDemeulenaere Sep 24, 2020
52f3133
Fix changelog : Unexpected carriage return
PaulDemeulenaere Sep 24, 2020
f92c78b
Point cache: Binary format corrupted due to an extra byte offset (#108)
gabrieldelacruz Sep 25, 2020
62def82
Fix InvalidCastException when using byte properties in point cache fi…
gabrieldelacruz Sep 25, 2020
f25625a
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Sep 28, 2020
a8b921f
update asset and scripts
julienf-unity Sep 29, 2020
dd4d21a
Remove unwanted files
julienf-unity Sep 29, 2020
eba1a0c
Output Event Helpers (revival) (#111)
PaulDemeulenaere Sep 29, 2020
839ecc7
Merge branch 'master' into vfx/staging
PaulDemeulenaere Sep 30, 2020
d590e41
Fix spawner set attribute/ custom category (#115)
iTris666 Sep 30, 2020
61505d8
Merge branch 'master' into vfx/staging
PaulDemeulenaere Oct 1, 2020
6310a99
Setting ZClip in shadow caster templates (#99)
gabrieldelacruz Oct 1, 2020
55d4afc
Trigger output can start an edge drag [Case 1271691] (#114)
iTris666 Oct 1, 2020
9d3d1f7
Fix and reenable test (#117)
julienf-unity Oct 1, 2020
a90e176
Error display in vfx editor (#33)
iTris666 Oct 1, 2020
a1db362
*Add missing reference image & fix changelog bad merde
PaulDemeulenaere Oct 1, 2020
3de3b7f
Fix bad merge : unexpected change in "ConstantBuffer.cs"
PaulDemeulenaere Oct 2, 2020
368f63c
Fix non uniform scale test (once again)
julienf-unity Oct 2, 2020
ed83bec
Update assets
julienf-unity Oct 2, 2020
2b6fcff
Update URP assets
julienf-unity Oct 2, 2020
3438e7e
Increase error threshold on test 26 (due to sky)
julienf-unity Oct 2, 2020
5b380cf
Fix reference images for shadow test
julienf-unity Oct 4, 2020
0d33ace
Merge remote-tracking branch 'master' into vfx/staging
julienf-unity Oct 5, 2020
9a25692
Fix cascaded type popup width (#124)
iTris666 Oct 5, 2020
d74c0c2
Be resilient to possible null subgraph references. (#120)
iTris666 Oct 6, 2020
c72287d
Merge branch 'master' into vfx/staging
iTris666 Oct 8, 2020
740a296
Fix 101_Exposure on PS4 (#126)
PaulDemeulenaere Oct 8, 2020
368fc26
Forbid creation of context in VisualEffectSubgraphBlock through edge …
iTris666 Oct 8, 2020
85e6af2
Make sure m_DependentDirty is flagged when the strutu change because …
iTris666 Oct 8, 2020
20d6fb9
Fix overlap in properties (#128)
iTris666 Oct 8, 2020
296ffd3
Fix bad merge from c72287dfdb8c9b041db6c6d49582241810c73a9b
PaulDemeulenaere Oct 8, 2020
ad2feb1
Fix Sample installation in URP (#122)
PaulDemeulenaere Oct 9, 2020
be3c497
Four bug fixes for event tester (#123)
iTris666 Oct 9, 2020
2b02eb7
Fix for displaying error from the creation of a node. (#131)
iTris666 Oct 14, 2020
21b236c
Blackboard improvements ( clear unused properties, add output ) (#45)
iTris666 Oct 14, 2020
000dfd9
Merge branch 'master' into vfx/staging
PaulDemeulenaere Oct 14, 2020
128d159
Reset the indentLevel at the end of VisualEffectEditor, also better c…
iTris666 Oct 15, 2020
4c881d0
Un edit nodes that are collapsed (#133)
iTris666 Oct 15, 2020
5137fd9
Fixes https://fogbugz.unity3d.com/f/cases/1268956/ (#125)
iTris666 Oct 15, 2020
02f6be6
Block - Position on SDF (#105)
ludovic-theobald Oct 16, 2020
0f6037d
Fix several URP issue (for 10.2) (#116)
PaulDemeulenaere Oct 19, 2020
145a398
"Create new VisualEffect Graph" creates a graph from the default temp…
iTris666 Oct 20, 2020
8149a8b
fixed spelling (#142)
iTris666 Oct 20, 2020
4012fa9
Positition on SDF - Graphics Tests Fix (#138)
ludovic-theobald Oct 20, 2020
f8a94ec
Update assets
julienf-unity Oct 20, 2020
ae5b232
Fix changelog
julienf-unity Oct 20, 2020
2fb7cba
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Oct 20, 2020
4ad6493
More changelog fixes
julienf-unity Oct 20, 2020
08ff952
Add missing warning for other block operator using depth (#140)
PaulDemeulenaere Oct 20, 2020
75b4f58
*Adding missing meta file in TestProject
PaulDemeulenaere Oct 21, 2020
bd6167e
Missing doc & Deprecate VFXViewModicationProcessor (#143)
PaulDemeulenaere Oct 21, 2020
88af45c
Merge branch 'master' into vfx/staging
julienf-unity Oct 21, 2020
81a9cb5
Fix Several issue in Property Binder (#106)
PaulDemeulenaere Oct 21, 2020
660b777
Merge branch 'vfx/staging' of github.cds.internal.unity3d.com:unity/v…
julienf-unity Oct 21, 2020
3e72ca9
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Oct 23, 2020
51f3d7d
Fix positionDepthOperator ref images
julienf-unity Oct 23, 2020
15e6ed8
Add one pixel to height in non wide mode so that margin is equal to w…
iTris666 Oct 23, 2020
644bdde
Update CHANGELOG.md
iTris666 Oct 23, 2020
8b0397e
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Oct 24, 2020
d1be1a1
Fix API validation
julienf-unity Oct 24, 2020
bba06b6
Merge branch 'vfx/staging' of github.cds.internal.unity3d.com:unity/v…
julienf-unity Oct 24, 2020
a120833
Harmonize Composition in Position / Velocity Blocks (#44)
Oct 24, 2020
c81ea3e
Fix 1285603 View and Object mode of Shadergraph position node don't r…
ludovic-theobald Oct 24, 2020
ea805dc
Fix collapse exception and added automated test (#149)
iTris666 Oct 28, 2020
823e14b
Misc fixes for vfx shadergraph integrations (#130)
iTris666 Oct 28, 2020
b8212d0
Small fix for collapse test
iTris666 Oct 28, 2020
182437a
Some extra security around error feedback (#153)
iTris666 Oct 28, 2020
adaeba7
Fix Event connected directly to Output Event (#152)
PaulDemeulenaere Oct 28, 2020
58ae23c
Misc fixes in strips (#136)
julienf-unity Oct 28, 2020
024dcbf
Revert adaeba7f20802aa19fe089463e1abfaf2a0488e6
julienf-unity Oct 28, 2020
3801a89
update vfx
julienf-unity Oct 28, 2020
20a4672
Update URP assets
julienf-unity Oct 28, 2020
61b8375
Update URP ref
julienf-unity Oct 28, 2020
f6ee116
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Oct 28, 2020
818adb6
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Oct 29, 2020
ef6eeaf
Vfx/fix/additional subgraphs 2 (#155)
julienf-unity Oct 29, 2020
15df881
Fix 1255182 Compile errors using Baked GI (default UV settings) / Out…
ludovic-theobald Oct 29, 2020
fe924b0
Fix serveral minor issues (#103)
PaulDemeulenaere Oct 29, 2020
5e1b25c
Update rebuild all script to take subgraph into account
julienf-unity Oct 29, 2020
dedb913
Update VFX assets
julienf-unity Oct 29, 2020
1e7ae1b
Fix URP vfx assets
julienf-unity Oct 29, 2020
249de48
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Nov 2, 2020
4a0458e
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Nov 5, 2020
0009e53
Fix Event connected directly to Output Event (revival) (#154)
PaulDemeulenaere Nov 9, 2020
ee55b98
Fix changelog
PaulDemeulenaere Nov 10, 2020
f181b2d
Restore disabled 26_NonUnifomScale due to a wrong merge (need backpor…
PaulDemeulenaere Nov 12, 2020
0c4cf10
[HDRP] Fix debug view material (albedo/normal/...) (#163)
PaulDemeulenaere Nov 13, 2020
981e074
Force ui update when shader might be reimported in StaticMeshOutput (…
iTris666 Nov 16, 2020
1443b7d
Don't create VFXGraph during import callbacks (#148)
iTris666 Nov 16, 2020
47ce7f8
Add the necessary openasset callback for the system to know if we ope…
iTris666 Nov 16, 2020
960eea5
Merge branch 'master' into vfx/staging
PaulDemeulenaere Nov 17, 2020
0a7f877
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Nov 19, 2020
3142e7b
Select node on create (#166)
iTris666 Nov 20, 2020
1f63413
“Refactor”
PaulDemeulenaere Nov 20, 2020
b6d84e9
"Refactor" bis (some file has been missed)
PaulDemeulenaere Nov 20, 2020
c74194e
Merge branch 'master' into vfx/staging
PaulDemeulenaere Nov 20, 2020
b514cc6
Dont flag dirty in vfxgraph is the model modified is a copy (#165)
iTris666 Nov 23, 2020
1f96809
Workflow improvement : Change VisualEffect inspector "Edit" button to…
Nov 24, 2020
bebb073
Added excludeFromTAA setting to VFX outputs (#170)
gabrieldelacruz Nov 24, 2020
5015bd6
Missing Reference image for test 32_ExcludeFromTAA
gabrieldelacruz Nov 27, 2020
cc36c16
Add test to cover case exposed by 1258022 (#54)
PaulDemeulenaere Nov 30, 2020
6356aad
Fix Custom Spawn serialization (#132)
PaulDemeulenaere Nov 30, 2020
1eecca7
Fix case 1294180 : Error feedback throwing an error while changing ca…
PaulDemeulenaere Nov 30, 2020
cf3b4ae
[Test] Add test to cover "Thread Group Size" error (#104)
PaulDemeulenaere Nov 30, 2020
ff94af5
Fix Preset (with exclusion) (#177)
PaulDemeulenaere Nov 30, 2020
9f8239f
Fix 1276602 incorrect uchar pcache import (#129)
Dec 1, 2020
a515f2f
Update gradient test (#151)
gabrieldelacruz Dec 1, 2020
183f537
Sample Point Cache Operator (#92)
ludovic-theobald Dec 1, 2020
071ce22
Fix point cache vfx + update HDRP vfx
julienf-unity Dec 1, 2020
a6ee6de
Update URP assets
julienf-unity Dec 1, 2020
8b44f3b
Fix changelog
julienf-unity Dec 1, 2020
7649fe1
Merge branch 'master' into vfx/staging
julienf-unity Dec 1, 2020
83ad751
Fix Case 1223747 - NaN caused by normal bending (#181)
ludovic-theobald Dec 1, 2020
ebcf59f
Merge branch 'vfx/staging' of github.cds.internal.unity3d.com:unity/v…
julienf-unity Dec 1, 2020
8f3b4f9
1293608 - Fix LPPV not working in deferred (#180)
julienf-unity Dec 5, 2020
44f497b
Fix 1290493 - Spaceship specific warnings (#176)
ludovic-theobald Dec 5, 2020
5cf1dba
Fix incorrect compilation condition for linux build (#184)
PaulDemeulenaere Dec 10, 2020
dcf74db
Merge branch 'master' into vfx/staging
PaulDemeulenaere Dec 14, 2020
0656778
Fix formatting
PaulDemeulenaere Dec 14, 2020
2a9964b
Update 26_NonUniformScale kind of sky : gradient instead of procedural
PaulDemeulenaere Dec 14, 2020
b89005c
Fix regression from https://github.cds.internal.unity3d.com/unity/vfx…
PaulDemeulenaere Dec 14, 2020
b65e953
Disable Gradient Sky in 26_NonUniformScale & 33_LightProbe
PaulDemeulenaere Dec 14, 2020
79d801d
*Update VFX (newly introduced safeNormalize, default 0)
PaulDemeulenaere Dec 14, 2020
ddee2e3
Add VFXGraphicTest settings to disable XR for 32_ExcludeFromTAA
PaulDemeulenaere Dec 15, 2020
8c5f44f
Revert "Add VFXGraphicTest settings to disable XR for 32_ExcludeFromTAA"
PaulDemeulenaere Dec 15, 2020
362b7f0
32_ExcludeFromTAA : Disable XR
PaulDemeulenaere Dec 15, 2020
dd7b751
33_LightProbe : Slighlty increase treshold from 0.0005 to 0.0006
PaulDemeulenaere Dec 15, 2020
d9a3a0b
*Update Image Reference for D312 (mainly missing file)
PaulDemeulenaere Dec 15, 2020
a05860f
*Disable 32_ExcludeFromTAA
PaulDemeulenaere Dec 15, 2020
93c8822
*Add missing D3D12 image references
PaulDemeulenaere Dec 15, 2020
20822dd
Merge branch 'master' into vfx/staging
PaulDemeulenaere Dec 15, 2020
5d3b2b0
Fix GPUEvent & SubGraph (#178)
PaulDemeulenaere Dec 15, 2020
8bda777
[Subgraph] Prevent Pasting Context invalid subgraph (#191)
PaulDemeulenaere Jan 7, 2021
26bbfd0
Fix Mouse Event Binder in player (#175)
PaulDemeulenaere Jan 8, 2021
5b6cd2a
Merge branch 'master' into vfx/staging
PaulDemeulenaere Jan 8, 2021
cd13ef9
Add editor test to cover Safe Normalize behavior (#189)
PaulDemeulenaere Jan 11, 2021
3a00a4f
Vfx/docs/bugfixes (#188)
Jan 12, 2021
ee90c52
Texture2D Array Layout for Flipbooks (#97)
ludovic-theobald Jan 12, 2021
61c4249
Motion Vector generation improvements (#194)
gabrieldelacruz Jan 13, 2021
56a1e11
Spawn State documentation (#195)
Jan 15, 2021
fc40e69
Added what's new page and moved blocks out one level in the table of …
Jan 15, 2021
755227a
HDRP - Fix Debug View Material (#182)
PaulDemeulenaere Jan 18, 2021
6e5e432
Merge branch 'master' into vfx/staging
PaulDemeulenaere Jan 20, 2021
cd43882
*Apply reformat
PaulDemeulenaere Jan 20, 2021
b063d9e
*Apply reformat (bis)
PaulDemeulenaere Jan 20, 2021
d610ace
Fix CameraFade for shadows (#179)
gabrieldelacruz Jan 20, 2021
1d6e19d
Correct Sign operator node output for float when input is 0.0f (#190)
gabrieldelacruz Jan 22, 2021
59edc05
changed sky, emission scale, and updated references (#203)
ludovic-theobald Jan 22, 2021
83717ec
Fix ProcessOperatorSign test
PaulDemeulenaere Jan 25, 2021
ae90ca0
Allow remaking an existing link. (#146)
iTris666 Jan 25, 2021
bd121c5
ShaderGraph loosing reference while updating (sync with 7.x.x) (#185)
PaulDemeulenaere Jan 25, 2021
1854731
*Minimal test to check actual content of modified property after an o…
PaulDemeulenaere Jan 25, 2021
55ce577
Add test to cover behavior from https://fogbugz.unity3d.com/f/cases/1…
PaulDemeulenaere Jan 25, 2021
5831dc0
Merge branch 'master' into vfx/staging
PaulDemeulenaere Jan 25, 2021
134ba25
*Updating reference image for D3D12
PaulDemeulenaere Jan 25, 2021
4fe95f9
Force re-apply formatting
PaulDemeulenaere Jan 25, 2021
58b89ee
Fix ordering for "+" button in blackboard (#197)
PaulDemeulenaere Jan 25, 2021
e20740e
Add test to cover behavior of https://fogbugz.unity3d.com/f/cases/130…
PaulDemeulenaere Jan 26, 2021
c71b090
Fix changelog.md (new entries should be in 12.0.)
PaulDemeulenaere Jan 26, 2021
1e74af1
*Update changelog.md (unexpected diff in 11.x.x)
PaulDemeulenaere Jan 26, 2021
026d4e0
[Fix Case 1221557] Checkbox Age Particles consistency (#202)
ludovic-theobald Jan 26, 2021
9066a0b
Add _CameraViewMatrix shader variable (#208)
gabrieldelacruz Jan 27, 2021
2765da6
Fix compute culling compilation in URP (case 1309174) (#210)
gabrieldelacruz Jan 28, 2021
e7f1576
[pCache] Fix minor UX issues (#207)
PaulDemeulenaere Feb 2, 2021
67c19cc
Disable motion vector per vertex optimization (#214)
gabrieldelacruz Feb 3, 2021
4488254
Merge branch 'master' into vfx/staging
PaulDemeulenaere Feb 3, 2021
6b45aad
Merge branch 'master' into vfx/staging
PaulDemeulenaere Feb 4, 2021
6643035
Fallback for camera buffers from Main camera (#200)
gabrieldelacruz Feb 4, 2021
5c0f76f
[VCS] Handle correctly locked asset (#193)
PaulDemeulenaere Feb 9, 2021
51e78b4
Mesh Index & Skinned (#30)
PaulDemeulenaere Feb 9, 2021
cbeeefb
*Update all VisualEffectAsset
PaulDemeulenaere Feb 9, 2021
a4f8133
Merge branch 'master' into vfx/staging
PaulDemeulenaere Feb 9, 2021
46de9cc
*Apply formatting
PaulDemeulenaere Feb 9, 2021
33fd8ce
*Update missing reference images
PaulDemeulenaere Feb 10, 2021
dc873e1
Other missing update screenshot & missing meta
PaulDemeulenaere Feb 10, 2021
6dbb2e9
Merge branch 'master' into vfx/staging
PaulDemeulenaere Feb 10, 2021
bd82479
Fix formatting : this change can be grafted directly on master
PaulDemeulenaere Feb 10, 2021
6136320
Three minor fixes from https://github.com/Unity-Technologies/Graphics…
PaulDemeulenaere Feb 10, 2021
e316738
Fix incorrect changelog.md in com.unity.visualeffectgraph
PaulDemeulenaere Feb 10, 2021
4e3192a
Remove unexpected duplicated entry in changelog.md
PaulDemeulenaere Feb 10, 2021
f95bac0
Fix changelog : unexpected removed entries in 11.x
PaulDemeulenaere Feb 10, 2021
42a48df
Merge branch 'master' into vfx/staging
PaulDemeulenaere Feb 10, 2021
d31d7ee
*Update changelog.md
PaulDemeulenaere Feb 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ MonoBehaviour:
frustumCulling: 0
castShadows: 0
useExposureWeight: 0
flipbookLayout: 0
shaderGraph: {fileID: 0}
primitiveType: 1
useGeometryShader: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,33 @@ public void ProcessExpressionAbs()
Assert.AreEqual(resultC, expressionC.Get<float>());
}

static readonly Vector2[] s_ProcessExpressionSafeNormalizeValues = new Vector2[]
{
new Vector2(0,0),
new Vector2(0.0f, 1e-30f),
new Vector2(0.0f, 1e-20f),
new Vector2(0.0f, 1e-10f),
new Vector2(1e-30f, 1e-30f),
new Vector2(1e-20f, 1e-20f),
new Vector2(1e-10f, 1e-10f),
new Vector2(1e-10f, 1e-10f),
new Vector2(1.0f, 1.0f),
new Vector2(2.0f, -1.0f),
new Vector2(0.5f, 0.2f),
new Vector2(-1.0f, -1.0f),
};

[Test]
public void ProcessExpressionSafeNormalize([ValueSource("s_ProcessExpressionSafeNormalizeValues")] Vector2 input)
{
var valueInput = new VFXValue<Vector2>(input);
var expression = VFXOperatorUtility.SafeNormalize(valueInput);
var context = new VFXExpression.Context(VFXExpressionContextOption.CPUEvaluation);
var resultExpression = context.Compile(expression);
var expectedResult = input.normalized;
Assert.AreEqual(expectedResult, resultExpression.Get<Vector2>());
}

[Test]
public void ProcessExpressionAdd()
{
Expand Down Expand Up @@ -237,9 +264,9 @@ public void ProcessExpressionSign()
var a = -1.5f;
var b = 0.0f;
var c = 0.2f;
var resultA = Mathf.Sign(a);
var resultB = Mathf.Sign(b);
var resultC = Mathf.Sign(c);
var resultA = (a < 0.0f) ? -1.0f : (a > 0.0f) ? 1.0f : 0.0f;
var resultB = (b < 0.0f) ? -1.0f : (b > 0.0f) ? 1.0f : 0.0f;
var resultC = (c < 0.0f) ? -1.0f : (c > 0.0f) ? 1.0f : 0.0f;

var value_a = new VFXValue<float>(a);
var value_b = new VFXValue<float>(b);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public void ProcessOperatorModuloFloat()
[Test]
public void ProcessOperatorSign([ValueSource("ProcessOperatorAbs_a")] float a)
{
var r = Mathf.Sign(a);
var r = (a < 0.0f) ? -1.0f : (a > 0.0f) ? 1.0f : 0.0f;
var value_a = new VFXValue<float>(a);

var expression = new VFXExpressionSign(value_a);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,56 @@ private void Add_Valid_System(VFXGraph graph)
quadOutput.LinkFrom(basicInitialize);
}

//Cover issue from 1285787
[UnityTest]
public IEnumerator Create_Prefab_And_Verify_Empty_Override()
{
var graph = VFXTestCommon.MakeTemporaryGraph();
const int systemCount = 3;
for (int i = 0; i < systemCount; ++i)
{
Add_Valid_System(graph);
}
AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(graph));

var mainObject = MakeTemporaryGameObject();
GameObject prefabInstanceObject;
{
var tempVFX = mainObject.AddComponent<VisualEffect>();
tempVFX.visualEffectAsset = graph.visualEffectResource.asset;

GameObject newGameObject;
MakeTemporaryPrebab(mainObject, out newGameObject, out prefabInstanceObject);
GameObject.DestroyImmediate(mainObject);

mainObject = PrefabUtility.InstantiatePrefab(prefabInstanceObject) as GameObject;
}
yield return null;

Assert.IsNotNull(mainObject.GetComponent<VisualEffect>());
var properties = PrefabUtility.GetPropertyModifications(mainObject);
//Filter out transform properties & GameObject.m_Name
properties = properties.Where(o =>
{
if (o.target is UnityEngine.Transform)
return false;

if (o.target is GameObject && o.propertyPath == "m_Name")
return false;

return true;
}).ToArray();

var logMessage = string.Empty;
if (properties.Any())
{
logMessage = properties.Select(o => string.Format("{0} at {1} : {2}", o.target, o.propertyPath, o.value))
.Aggregate((a, b) => a + "\n" + b);
}

Assert.AreEqual(0, properties.Length, logMessage);
}

//Cover regression from 1213773
[UnityTest]
public IEnumerator Create_Prefab_Switch_To_Empty_VisualEffectAsset()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,52 @@ public IEnumerator Sanitize_VFXSpawnerCustomCallback_Namespace()
yield return null;
}

//Cover case 1122404
[UnityTest]
public IEnumerator Create_Asset_And_Set_Really_High_SpawnRate()
{
yield return new EnterPlayMode();

VisualEffect vfxComponent;
GameObject cameraObj, gameObj;
VFXGraph graph;

var reallyBigFloat = 3e+38f;
CreateAssetAndComponent(reallyBigFloat, "OnPlay", out graph, out vfxComponent, out gameObj, out cameraObj);

var init = graph.children.OfType<VFXBasicInitialize>().First();
var setLifetime = ScriptableObject.CreateInstance<SetAttribute>();
setLifetime.SetSettingValue("attribute", "lifetime"); //Issue 1122404 only occurs when hasKill
setLifetime.inputSlots[0].value = 1.0f;
init.AddChild(setLifetime);

var update = ScriptableObject.CreateInstance<VFXBasicUpdate>();
graph.AddChild(update);

init.LinkTo(update);
update.LinkTo(graph.children.OfType<VFXPlanarPrimitiveOutput>().First());

AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(graph));

int maxFrame = 256;
while (vfxComponent.culled && --maxFrame > 0)
yield return null;
Assert.IsTrue(maxFrame > 0);

//Assertion failed on expression: 'nbGroups.x > 0 && nbGroups.y > 0' is logged before 1122404 resolution.
yield return null;

var spawnSystems = new List<string>();
vfxComponent.GetSpawnSystemNames(spawnSystems);
var spawnState = vfxComponent.GetSpawnSystemInfo(spawnSystems[0]);
Assert.IsTrue(spawnState.spawnCount >= reallyBigFloat * 0.01f);

var spawnCountCastInt = (int)spawnState.spawnCount; //expecting an overflow
Assert.IsTrue(spawnCountCastInt < 0);

yield return new ExitPlayMode();

}

static string[] k_Create_Asset_And_Check_Event_ListCases = new[] { "OnPlay", "Test_Event" };

Expand Down Expand Up @@ -185,10 +231,86 @@ public IEnumerator Create_Asset_And_Component_Spawner_Check_Initial_Event()
yield return new ExitPlayMode();
}

static List<int> s_receivedEvent;
static void OnEventReceived(VFXOutputEventArgs evt)

static List<Vector3> s_RecordedPositions = new List<Vector3>();
static void OnEventReceived_SavePosition(VFXOutputEventArgs evt)
{
s_RecordedPositions.Add(evt.eventAttribute.GetVector3("position"));
}

static bool[] s_Verify_Reseed_OnPlay_Behavior_options = new bool[] { false, true };

[UnityTest]
public IEnumerator Verify_Reseed_OnPlay_Behavior([ValueSource("s_Verify_Reseed_OnPlay_Behavior_options")] bool reseed, [ValueSource("s_Verify_Reseed_OnPlay_Behavior_options")] bool useSendEvent)
{
yield return new EnterPlayMode();

var spawnCountValue = 1.0f;
VisualEffect vfxComponent;
GameObject cameraObj, gameObj;
VFXGraph graph;
CreateAssetAndComponent(spawnCountValue, "OnPlay", out graph, out vfxComponent, out gameObj, out cameraObj);

var outputEvent = ScriptableObject.CreateInstance<VFXOutputEvent>();
var eventName = "qsdf";
outputEvent.SetSettingValue("eventName", eventName);
var basicSpawner = graph.children.OfType<VFXBasicSpawner>().FirstOrDefault();
graph.AddChild(outputEvent);
outputEvent.LinkFrom(basicSpawner);

//Add constant random to inspect the current seed
var setAttributePosition = ScriptableObject.CreateInstance<VFXSpawnerSetAttribute>();
setAttributePosition.SetSettingValue("attribute", "position");
basicSpawner.AddChild(setAttributePosition);

for (int i = 0; i < 3; ++i)
{
var random = ScriptableObject.CreateInstance<Operator.Random>();
random.SetSettingValue("seed", VFXSeedMode.PerComponent);
random.SetSettingValue("constant", true);
graph.AddChild(outputEvent);
random.outputSlots.First().Link(setAttributePosition.inputSlots.First()[i]);
}
AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(graph));

s_RecordedPositions = new List<Vector3>();
vfxComponent.outputEventReceived += OnEventReceived_SavePosition;
vfxComponent.resetSeedOnPlay = reseed;

int maxFrame = 256;
while (s_RecordedPositions.Count < 3 && --maxFrame > 0)
yield return null;

Assert.IsTrue(maxFrame > 0);
Assert.AreEqual(1, s_RecordedPositions.Distinct().Count());

for (int i = 0; i < 3; ++i)
{
//The seed should change depending on resetSeedOnPlay settings
if (useSendEvent)
vfxComponent.SendEvent(VisualEffectAsset.PlayEventID);
else
vfxComponent.Play();

maxFrame = 256;
while (s_RecordedPositions.Count < 3 + i * 3 && --maxFrame > 0)
yield return null;
Assert.IsTrue(maxFrame > 0);
}

var distinctCount = s_RecordedPositions.Distinct().Count();
if (reseed)
Assert.AreNotEqual(1, distinctCount);
else
Assert.AreEqual(1, distinctCount);

yield return new ExitPlayMode();
}

static List<int> s_ReceivedEventNamedId;
static void OnEventReceived_RegisterNameID(VFXOutputEventArgs evt)
{
s_receivedEvent.Add(evt.nameId);
s_ReceivedEventNamedId.Add(evt.nameId);
}

[UnityTest]
Expand All @@ -211,8 +333,8 @@ public IEnumerator Create_Asset_And_Component_Spawner_And_Output_Event()
outputEvent.LinkFrom(basicSpawner);
AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(graph));

s_receivedEvent = new List<int>();
vfxComponent.outputEventReceived += OnEventReceived;
s_ReceivedEventNamedId = new List<int>();
vfxComponent.outputEventReceived += OnEventReceived_RegisterNameID;

int maxFrame = 64;
while (vfxComponent.culled && --maxFrame > 0)
Expand All @@ -228,19 +350,19 @@ public IEnumerator Create_Asset_And_Component_Spawner_And_Output_Event()
Assert.AreEqual(outputEventName, eventName);

//Checking invalid event (waiting for the first event)
Assert.AreEqual(0u, s_receivedEvent.Count);
Assert.AreEqual(0u, s_ReceivedEventNamedId.Count);

//Checking on valid event while there is an event
maxFrame = 64; s_receivedEvent.Clear();
while (s_receivedEvent.Count == 0u && --maxFrame > 0)
maxFrame = 64; s_ReceivedEventNamedId.Clear();
while (s_ReceivedEventNamedId.Count == 0u && --maxFrame > 0)
{
yield return null;
}
Assert.IsTrue(maxFrame > 0);
Assert.IsTrue(s_receivedEvent.Count > 0);
Assert.AreEqual(Shader.PropertyToID(eventName), s_receivedEvent.FirstOrDefault());
Assert.IsTrue(s_ReceivedEventNamedId.Count > 0);
Assert.AreEqual(Shader.PropertyToID(eventName), s_ReceivedEventNamedId.FirstOrDefault());

s_receivedEvent.Clear();
s_ReceivedEventNamedId.Clear();

yield return new ExitPlayMode();
}
Expand All @@ -263,8 +385,8 @@ public IEnumerator Create_Asset_And_Component_Spawner_And_Output_Event_Expected_
outputEvent.LinkFrom(basicSpawner);
AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(graph));

s_receivedEvent = new List<int>();
vfxComponent.outputEventReceived += OnEventReceived;
s_ReceivedEventNamedId = new List<int>();
vfxComponent.outputEventReceived += OnEventReceived_RegisterNameID;

int maxFrame = 512;
while (vfxComponent.culled && --maxFrame > 0)
Expand All @@ -277,24 +399,23 @@ public IEnumerator Create_Asset_And_Component_Spawner_And_Output_Event_Expected_
float deltaTime = 0.1f;
uint count = 32;
vfxComponent.Simulate(deltaTime, count);
Assert.AreEqual(0u, s_receivedEvent.Count); //The simulate is asynchronous
Assert.AreEqual(0u, s_ReceivedEventNamedId.Count); //The simulate is asynchronous

float simulateTime = deltaTime * count;
uint expectedEventCount = (uint)Mathf.Floor(simulateTime / spawnCountValue);

maxFrame = 64; s_receivedEvent.Clear();
maxFrame = 64; s_ReceivedEventNamedId.Clear();
cameraObj.SetActive(false);
while (s_receivedEvent.Count == 0u && --maxFrame > 0)
while (s_ReceivedEventNamedId.Count == 0u && --maxFrame > 0)
{
yield return null;
}
Assert.AreEqual(expectedEventCount, (uint)s_receivedEvent.Count);
Assert.AreEqual(expectedEventCount, (uint)s_ReceivedEventNamedId.Count);
yield return null;

yield return new ExitPlayMode();
}



[UnityTest]
public IEnumerator Create_Asset_And_Component_Spawner()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3201,6 +3201,7 @@ MonoBehaviour:
frustumCulling: 0
castShadows: 0
useExposureWeight: 0
flipbookLayout: 0
--- !u!114 &114904363320238742
MonoBehaviour:
m_ObjectHideFlags: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2434,6 +2434,7 @@ MonoBehaviour:
frustumCulling: 0
castShadows: 0
useExposureWeight: 0
flipbookLayout: 0
useTargetOffset: 1
useNativeLines: 0
--- !u!114 &114978967300245268
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2853,6 +2853,7 @@ MonoBehaviour:
frustumCulling: 0
castShadows: 0
useExposureWeight: 0
flipbookLayout: 0
shaderGraph: {fileID: 0}
primitiveType: 1
useGeometryShader: 0
Expand Down
Loading