Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
351 commits
Select commit Hold shift + click to select a range
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
71d850e
[BRP] Fix Shader Compilation (#216)
PaulDemeulenaere Feb 15, 2021
582dfdf
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Feb 15, 2021
cb8f501
Sphere and cube outputs as experimental
julienf-unity Feb 15, 2021
de16f20
Add castShadows as additionalMappings in VFXStaticMeshOutput (#217)
gabrieldelacruz Feb 16, 2021
cd03340
[Orient] 'Look At Position' particle disappearance (#101)
ludovic-theobald Feb 19, 2021
415ed6c
Added information about compute shaders and ssbos (#222)
Feb 24, 2021
eb6f548
[Fix] PropertyBinder : Reset & Undo (#212)
PaulDemeulenaere Feb 24, 2021
7232e81
[Fix] Null Ref Exception due to IsAssetEditable (#221)
PaulDemeulenaere Feb 24, 2021
8d85500
[Fix] Component Board UX issue (#220)
PaulDemeulenaere Feb 25, 2021
1ed5e58
[Fix] System name 'Model is not registered' (#224)
PaulDemeulenaere Mar 3, 2021
c4d5b6a
First test
julienf-unity Mar 10, 2021
1fd64ed
Merge branch 'master' into vfx/staging
PaulDemeulenaere Mar 12, 2021
e84d006
Merge branch 'master' into vfx/staging
PaulDemeulenaere Mar 22, 2021
973aeb6
[Test] Revert after change (#213)
PaulDemeulenaere Mar 22, 2021
9a64d5a
[Test] Add test to cover CopyValuesFrom (#225)
PaulDemeulenaere Mar 22, 2021
6786a05
Just added a perf marker
julienf-unity Mar 25, 2021
70b8151
Merge remote-tracking branch 'graphics/master' into vfx/staging
julienf-unity Mar 25, 2021
dde0fcc
Changed `mobile` to `Android` (#227)
Mar 26, 2021
9d51001
Merge branch 'vfx/staging' of github.cds.internal.unity3d.com:unity/v…
julienf-unity Mar 26, 2021
bd1384a
Fix "`syntax error: unexpected token 'if' at kernel CSMain`" (#228)
PaulDemeulenaere Mar 30, 2021
42f9ff4
[Fix] Deleted properties still visible in inspector (#231)
PaulDemeulenaere Mar 30, 2021
5927bd5
Issue warning, don't recompile and clear runtime data when current SR…
julienf-unity Mar 30, 2021
d3208f4
Remove legacy RP folder
julienf-unity Mar 31, 2021
f5aeecd
Small fixes
julienf-unity Apr 1, 2021
62a9c1a
Merge remote-tracking branch 'graphics/master' into vfx/feature/srp-c…
julienf-unity Apr 28, 2021
c37b304
Implement inner callback mechanism
julienf-unity Apr 28, 2021
a4bb699
Merge branch 'vfx/feature/srp-support-feedback' into vfx/feature/srp-…
julienf-unity Apr 29, 2021
3300826
Misc small fixes + remove logs
julienf-unity Apr 29, 2021
d83db5f
Merge remote-tracking branch 'graphics/master' into vfx/feature/srp-c…
julienf-unity Apr 29, 2021
a315e56
Fix issues from new SG integration
julienf-unity Apr 29, 2021
3882ced
Added unsupported SRP warning log in some places
julienf-unity May 11, 2021
a824274
Merge remote-tracking branch 'graphics/master' into vfx/feature/srp-c…
julienf-unity May 17, 2021
1e68bf8
Check QualitySettings for current SRP
julienf-unity May 17, 2021
dcbffc1
Merge branch 'master' into vfx/feature/srp-changed-callback
julienf-unity May 17, 2021
f95c130
Fix formatting
julienf-unity May 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions com.unity.visualeffectgraph/Editor/Compiler/VFXGraphCompiledData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -992,17 +992,22 @@ static IEnumerable<uint> ConvertDataToSystemIndex(IEnumerable<VFXContext> input,
yield return index;
}

private void CleanRuntimeData()
{
if (m_Graph.visualEffectResource != null)
m_Graph.visualEffectResource.ClearRuntimeData();

m_ExpressionGraph = new VFXExpressionGraph();
m_ExpressionValues = new VFXExpressionValueContainerDesc[] {};
}

public void Compile(VFXCompilationMode compilationMode, bool forceShaderValidation)
{
// Prevent doing anything ( and especially showing progress) in an empty graph.
if (m_Graph.children.Count() < 1)
// Early out in case: (Not even displaying the popup)
if (m_Graph.children.Count() < 1 || // Graph is empty
VFXLibrary.currentSRPBinder == null) // One of supported SRPs is not current SRP
{
// Cleaning
if (m_Graph.visualEffectResource != null)
m_Graph.visualEffectResource.ClearRuntimeData();

m_ExpressionGraph = new VFXExpressionGraph();
m_ExpressionValues = new VFXExpressionValueContainerDesc[] {};
CleanRuntimeData();
return;
}

Expand Down Expand Up @@ -1213,12 +1218,7 @@ public void Compile(VFXCompilationMode compilationMode, bool forceShaderValidati

Debug.LogError(string.Format("{2} : Exception while compiling expression graph: {0}: {1}", e, e.StackTrace, (asset != null) ? asset.name : "(Null Asset)"), asset);

// Cleaning
if (m_Graph.visualEffectResource != null)
m_Graph.visualEffectResource.ClearRuntimeData();

m_ExpressionGraph = new VFXExpressionGraph();
m_ExpressionValues = new VFXExpressionValueContainerDesc[] {};
CleanRuntimeData();
}
finally
{
Expand Down
61 changes: 50 additions & 11 deletions com.unity.visualeffectgraph/Editor/Core/VFXLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using UnityEngine;
using UnityEngine.Rendering;
using Object = System.Object;
using System.Reflection;

namespace UnityEditor.VFX
{
Expand Down Expand Up @@ -176,14 +177,6 @@ public virtual VFXAbstractRenderedOutput.BlendMode GetBlendModeFromMaterial(VFXM
public virtual bool IsGraphDataValid(GraphData graph) => false;
}

// This is the default binder used if no SRP is used in the project
class VFXLegacyBinder : VFXSRPBinder
{
public override string templatePath { get { return "Packages/com.unity.visualeffectgraph/Shaders/RenderPipeline/Legacy"; } }
public override string SRPAssetTypeStr { get { return "None"; } }
public override Type SRPOutputDataType { get { return null; } }
}

static class VFXLibrary
{
public static IEnumerable<VFXModelDescriptor<VFXContext>> GetContexts() { LoadIfNeeded(); return VFXViewPreference.displayExperimentalOperator ? m_ContextDescs : m_ContextDescs.Where(o => !o.info.experimental); }
Expand Down Expand Up @@ -475,21 +468,67 @@ private static void LoadSRPBindersIfNeeded()
}
}

private static bool unsupportedSRPWarningIssued = false;

private static void LogUnsupportedSRP(VFXSRPBinder binder, bool forceLog)
{
if (binder == null && (forceLog || !unsupportedSRPWarningIssued))
{
Debug.LogWarning("The Visual Effect Graph is supported in the High Definition Render Pipeline (HDRP) and the Universal Render Pipeline (URP). Please assign your chosen Render Pipeline Asset in the Graphics Settings to use it.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should also mention the Quality Settings (A valid Render Pipeline asset needs to be assigned in the Graphics Settings or the Quality Settings.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what would be the text? "Please assign your chosen Render Pipeline Asset in the Graphics or Quality Settings to use it" ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what message the tech writing team gave to me for my feature "Project graphics settings do not refer to a URP Asset. Check the settings: Graphics > Scriptable Render Pipeline Settings, Quality > Render Pipeline Asset."
maybe it could be tweaked for your case to:
"The Visual Effect Graph is supported in the High Definition Render Pipeline (HDRP) and the Universal Render Pipeline (URP). Check the settings: Graphics > Scriptable Render Pipeline Settings, Quality > Render Pipeline Asset."

unsupportedSRPWarningIssued = true;
}
}

public static void LogUnsupportedSRP(bool forceLog = true)
{
bool logIssued = unsupportedSRPWarningIssued;
var binder = currentSRPBinder;

if (logIssued || !unsupportedSRPWarningIssued) // Don't reissue warning if inner currentSRPBinder call has already logged it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that if is a bit weird - it can probably be removed
logIssued == unsupportedSRPWarningIssued value according to line 498
and you are checking the value of unsupportedSRPWarningIssued in the other function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because we have 2 paths. LogUnsupportedSRP can be called from lazily initializing the currentSRPBinder (in that case we want to log only the first time) or explicitely upon some users action (opening the graph view, explicitely trying to compile a VFX...) and in this case we want to log always.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let us imagine unsupportedSRPWarningIssued equals to true. then
if(logIssue || !unsupportedSRPWarningIssued ) <=> if(true || false) > then TRUE
the opposite is:
if(logIssue || !unsupportedSRPWarningIssued ) <=> if (false|| true) > then TRUE

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logIssued is just a cache to check whether the inner call to currentSRPBinder has issued the log already (logIssued is false and unsupportedSRPWarningIssued is true after the call) and in that case we don't reissue (else it will be logged twice in a row). true to false is not possible.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldnt it be forceLog in the if statement instead of logIssue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the test "if (logIssued || !unsupportedSRPWarningIssued)" is false, it means the message has already been log during the inner call to currentSRPBinder just above (unsupportedSRPWarningIssued was false before currentSRPBinder call, and true after), regardless of forceLog. This just prevents logging twice from the same explicit LogUnsupportedSRP call.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okayyyyyy.... currentSRPBinder is not a getter but a function call! now all of it makes sense :)
I was going crazy
so now... how do we prevent others from going crazy? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a getter but lazily initialized. We could move the initialization directly in the callback probably. But it was safer and less intrusive to do it this way now.

LogUnsupportedSRP(binder, forceLog);
}

public static VFXSRPBinder currentSRPBinder
{
get
{
LoadSRPBindersIfNeeded();

VFXSRPBinder binder = null;
srpBinders.TryGetValue(GraphicsSettings.currentRenderPipeline == null ? "None" : GraphicsSettings.currentRenderPipeline.GetType().Name, out binder);
var currentSRP = QualitySettings.renderPipeline ?? GraphicsSettings.currentRenderPipeline;
if (currentSRP != null)
srpBinders.TryGetValue(currentSRP.GetType().Name, out binder);

if (binder == null)
throw new NullReferenceException("The SRP was not registered in VFX: " + GraphicsSettings.currentRenderPipeline.GetType());
LogUnsupportedSRP(binder, false);

return binder;
}
}

[InitializeOnLoadMethod]
private static void RegisterSRPChangeCallback()
{
EventInfo onRPChanged = typeof(RenderPipelineManager).GetEvent("activeRenderPipelineTypeChanged", BindingFlags.NonPublic | BindingFlags.Static);
if (onRPChanged != null)
{
MethodInfo addHandler = onRPChanged.GetAddMethod(nonPublic: true);
addHandler.Invoke(null, new Action[] { SRPChanged });
}

// Once activeRenderPipelineTypeChanged is public don't use reflection anymore
//RenderPipelineManager.activeRenderPipelineTypeChanged += OnSRPChanged;
}

public delegate void OnSRPChangedEvent();
public static event OnSRPChangedEvent OnSRPChanged;

private static void SRPChanged()
{
unsupportedSRPWarningIssued = false;
OnSRPChanged?.Invoke();
VFXAssetManager.Build();
}

private static LibrarySentinel m_Sentinel = null;

private static volatile List<VFXModelDescriptor<VFXContext>> m_ContextDescs;
Expand Down
21 changes: 15 additions & 6 deletions com.unity.visualeffectgraph/Editor/Data/VFXDataMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public override void OnEnable()
{
base.OnEnable();

VFXLibrary.OnSRPChanged += OnSRPChanged;

if (object.ReferenceEquals(shader, null)) shader = VFXResources.defaultResources.shader;

if (m_Shader != null)
Expand All @@ -58,6 +60,17 @@ public override void OnEnable()
}
}

public virtual void OnDisable()
{
VFXLibrary.OnSRPChanged -= OnSRPChanged;
DestroyCachedMaterial();
}

private void OnSRPChanged()
{
DestroyCachedMaterial();
}

public void RefreshShader()
{
DestroyCachedMaterial();
Expand All @@ -70,11 +83,6 @@ private void DestroyCachedMaterial()
m_CachedMaterial = null;
}

public void OnDisable()
{
DestroyCachedMaterial();
}

public override void CopySettings<T>(T dst)
{
VFXDataMesh other = dst as VFXDataMesh;
Expand All @@ -98,7 +106,8 @@ public Material GetOrCreateMaterial()
{
m_CachedMaterial = new Material(shader);
m_CachedMaterial.hideFlags = HideFlags.HideAndDontSave;
VFXLibrary.currentSRPBinder.SetupMaterial(m_CachedMaterial);

VFXLibrary.currentSRPBinder?.SetupMaterial(m_CachedMaterial);
}

return m_CachedMaterial;
Expand Down
4 changes: 4 additions & 0 deletions com.unity.visualeffectgraph/Editor/GraphView/VFXViewWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ protected void SetupFramingShortcutHandler(VFXView view)
[MenuItem("Window/Visual Effects/Visual Effect Graph", false, 3011)]
public static void ShowWindow()
{
VFXLibrary.LogUnsupportedSRP();

GetWindow<VFXViewWindow>();
}

Expand All @@ -55,6 +57,8 @@ public VFXView graphView
}
public void LoadAsset(VisualEffectAsset asset, VisualEffect effectToAttach)
{
VFXLibrary.LogUnsupportedSRP();

string assetPath = AssetDatabase.GetAssetPath(asset);

VisualEffectResource resource = VisualEffectResource.GetResourceAtPath(assetPath);
Expand Down
2 changes: 2 additions & 0 deletions com.unity.visualeffectgraph/Editor/GraphView/Views/VFXView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,8 @@ void OnResyncMaterial()

void OnCompile()
{
VFXLibrary.LogUnsupportedSRP();

if (controller.model.isSubgraph)
controller.graph.RecompileIfNeeded(false, false);
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override void OnInspectorGUI()

GUI.enabled = AssetDatabase.IsOpenForEdit(target, StatusQueryOptions.UseCachedIfPossible);

EditorGUILayout.LabelField("Current Scriptable Render Pipeline: " + VFXLibrary.currentSRPBinder.SRPAssetTypeStr);
EditorGUILayout.LabelField("Current Scriptable Render Pipeline: " + VFXLibrary.currentSRPBinder?.SRPAssetTypeStr);

foreach (var property in m_TimeProperties)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ public void OnInspectorGUI()
if (m_RenderingLayerMask != null)
{
string[] layerNames = null;
var srpAsset = GraphicsSettings.currentRenderPipeline;
var srpAsset = QualitySettings.renderPipeline ?? GraphicsSettings.currentRenderPipeline;
if (srpAsset != null)
layerNames = srpAsset.renderingLayerMaskNames;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public VFXSRPSubOutput subOutput
get
{
if (m_CurrentSubOutput == null)
GetOrCreateSubOutput();
m_CurrentSubOutput = GetOrCreateSubOutput();
return m_CurrentSubOutput;
}
}
Expand Down Expand Up @@ -117,10 +117,21 @@ private VFXSRPSubOutput GetOrCreateSubOutput()

public override void OnEnable()
{
VFXLibrary.OnSRPChanged += OnSRPChanged;
InitSubOutputs(m_SubOutputs, false);
base.OnEnable();
}

public virtual void OnDisable()
{
VFXLibrary.OnSRPChanged -= OnSRPChanged;
}

private void OnSRPChanged()
{
m_CurrentSubOutput = null;
}

public List<VFXSRPSubOutput> GetSubOutputs()
{
return m_SubOutputs;
Expand Down
28 changes: 23 additions & 5 deletions com.unity.visualeffectgraph/Editor/Models/VFXGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ static void CheckCompilationVersion()
}
}
}
class VFXCacheManager : EditorWindow
class VFXAssetManager : EditorWindow
{
private static List<VisualEffectObject> GetAllVisualEffectObjects()
public static List<VisualEffectObject> GetAllVisualEffectObjects()
{
var vfxObjects = new List<VisualEffectObject>();
var vfxObjectsGuid = AssetDatabase.FindAssets("t:VisualEffectObject");
Expand All @@ -146,8 +146,7 @@ private static List<VisualEffectObject> GetAllVisualEffectObjects()
return vfxObjects;
}

[MenuItem("Edit/VFX/Rebuild And Save All VFX Graphs", priority = 320)]
public static void Build()
public static void Build(bool forceDirty = false)
{
var vfxObjects = GetAllVisualEffectObjects();

Expand All @@ -161,11 +160,18 @@ public static void Build()
{
VFXGraph graph = resource.GetOrCreateGraph();
AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(graph));
EditorUtility.SetDirty(resource);
if (forceDirty)
EditorUtility.SetDirty(resource);
}
}

VFXExpression.ClearCache();
}

[MenuItem("Edit/VFX/Rebuild And Save All VFX Graphs", priority = 320)]
public static void BuildAndSave()
{
Build(true);
AssetDatabase.SaveAssets();
}
}
Expand Down Expand Up @@ -283,6 +289,18 @@ class VFXGraph : VFXModel
public override void OnEnable()
{
base.OnEnable();
VFXLibrary.OnSRPChanged += OnSRPChanged;
m_ExpressionGraphDirty = true;
}

public virtual void OnDisable()
{
VFXLibrary.OnSRPChanged -= OnSRPChanged;
}

private void OnSRPChanged()
{
m_GraphSanitized = false;
m_ExpressionGraphDirty = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public BlendMode GetMaterialBlendMode()
var blendMode = BlendMode.Opaque;

var shaderGraph = GetOrRefreshShaderGraphObject();
if (shaderGraph != null && shaderGraph.generatesWithShaderGraph)
if (shaderGraph != null && shaderGraph.generatesWithShaderGraph && VFXLibrary.currentSRPBinder != null)
{
// VFX Blend Mode state configures important systems like sorting and indirect buffer.
// In the case of SG Generation path, we need to know the blend mode state of the SRP
Expand Down Expand Up @@ -303,7 +303,7 @@ protected string shaderName
{
var shaderGraph = GetOrRefreshShaderGraphObject();

if (shaderGraph == null || !shaderGraph.generatesWithShaderGraph)
if (shaderGraph == null || !shaderGraph.generatesWithShaderGraph || VFXLibrary.currentSRPBinder == null)
return string.Empty;

return VFXLibrary.currentSRPBinder.GetShaderName(shaderGraph);
Expand Down
2 changes: 1 addition & 1 deletion com.unity.visualeffectgraph/Editor/Utils/VFXDebugWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private void OnGUI()
VFXCacheManager.Clear();*/

if (GUILayout.Button("Recompile All"))
VFXCacheManager.Build();
VFXAssetManager.Build();
}
EditorGUILayout.Space();
/*
Expand Down
2 changes: 2 additions & 0 deletions com.unity.visualeffectgraph/Editor/VFXAssetEditorUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public static T CreateNew<T>(string path) where T : UnityObject
[MenuItem("Assets/Create/Visual Effects/Visual Effect Graph", false, 306)]
public static void CreateVisualEffectAsset()
{
VFXLibrary.LogUnsupportedSRP();

string templateString = "";
try
{
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading