Skip to content

[Shadergraph] Master Stacks [Skip CI] #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,955 commits into from
Jun 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1955 commits
Select commit Hold shift + click to select a range
311d867
Add isHidden flag for Blocks
Kink3d Apr 22, 2020
c77f9dc
Add Universal SpriteColor block for upgrades (happy-json)
Kink3d Apr 22, 2020
c1ecfb2
Add isHidden flag for Blocks
Kink3d Apr 22, 2020
ca969fc
UpdateActiveBlocks on block deletion
Kink3d Apr 22, 2020
5479dfa
Fix requirements from Blocks
Kink3d Apr 22, 2020
85bf9c3
Update HDRenderPipelineAsset.asset (#210)
sebastienlagarde Apr 22, 2020
7286150
Improve block requirement handling
Kink3d Apr 22, 2020
e5cd18a
Fix preview target
Kink3d Apr 22, 2020
2d226eb
Fixed volume debug menu in playmode (#149)
adrien-de-tocqueville Apr 22, 2020
1461426
Fix fragment normal block descriptors
Kink3d Apr 22, 2020
c174ab1
Merge branch 'sg/stack-master-v2' into sg/stack-master-v2-upgrade
Kink3d Apr 22, 2020
0dd4b8f
Fix Sprite normals
Kink3d Apr 22, 2020
a81b9ab
Fix Sprite normals
Kink3d Apr 22, 2020
ef10396
Merge branch 'sg/stack-master-v2' into sg/stack-master-v2-hdrp
Kink3d Apr 22, 2020
69923a7
Fixup after merge
Kink3d Apr 22, 2020
6891ef0
Handle SaveContext call on HDRP when no asset assigned
Kink3d Apr 22, 2020
eee88a2
Merge branch 'sg/stack-master-v2-hdrp' into sg/stack-master-v2-upgrad…
Kink3d Apr 22, 2020
636635a
Update data to new serialization
Kink3d Apr 22, 2020
8e00e07
Merge remote-tracking branch 'origin/master' into sg/happy-json-v2
pbbastian Apr 22, 2020
59f6671
Fix issue after merge
pbbastian Apr 22, 2020
9548499
Update change log
pbbastian Apr 22, 2020
972b7d3
Added a new test scene for physical camera DoF in Pathtracer (#211)
remi-chapelain Apr 22, 2020
3bb0c42
Fix issue when creating new graphs
pbbastian Apr 22, 2020
7252a99
Fixed issue when toggling anything in HDRP asset that will produce an…
sebastienlagarde Apr 22, 2020
2275c86
fix some issues with creating new shadergraphs
elizabeth-legros Apr 22, 2020
0f6f770
Merge branch 'sg/happy-json-v2' of github.com:Unity-Technologies/Grap…
elizabeth-legros Apr 22, 2020
0e860be
fix uncaught merge issue
elizabeth-legros Apr 22, 2020
80b9eae
Bump com.unity.testframework.graphics version
pbbastian Apr 23, 2020
f5e7f20
Upgrade path for Unlit and PBR
Kink3d Apr 23, 2020
e548d2d
Bump test dependencies
pbbastian Apr 23, 2020
faae42f
fix UTP reporter version
pbbastian Apr 23, 2020
e6966d1
Upgrade path for HDUnlit
Kink3d Apr 23, 2020
805b8e2
Fix block map for multiple target upgrades
Kink3d Apr 23, 2020
1b48567
Merge branch 'master' into HDRP/staging
sebastienlagarde Apr 23, 2020
ef2550b
Fix warning in PCSS code when using Vulkan (#229)
FrancescoC-unity Apr 23, 2020
9f05249
next utp reporter version
pbbastian Apr 23, 2020
74eaa5d
Upgrade path for HDLit
Kink3d Apr 23, 2020
09d7e4f
Upgrade path for Decal
Kink3d Apr 23, 2020
b1cf55b
Merge remote-tracking branch 'origin/master' into sg/happy-json-v2
pbbastian Apr 23, 2020
04e40c0
Upgrade path for Eye
Kink3d Apr 23, 2020
d4918fd
Copy more default values in MaterialSlot
pbbastian Apr 23, 2020
de5ed64
Fix decal register + obsolete cookie API (#195)
sebastienlagarde Apr 23, 2020
fc09e87
Upgrade path for Fabric
Kink3d Apr 24, 2020
313348a
Upgrade path for Hair
Kink3d Apr 24, 2020
c4d8f94
Upgrade path for StackLit
Kink3d Apr 24, 2020
1edef3d
Fix for missing SlotMask bits on HDLit
Kink3d Apr 24, 2020
cff8d70
Add missing Vertex blocks for Decal
Kink3d Apr 24, 2020
23de9a1
Fix Block requirements for custom descs (mainline)
Kink3d Apr 24, 2020
1fc7f3a
Fix HairStrandDirection field (master)
Kink3d Apr 24, 2020
5cd25a1
Fix shader property upgrade issue
pbbastian Apr 24, 2020
cfff87e
Implement Undo core and URP targets
Kink3d Apr 24, 2020
095f52b
Implement Undo HDRP targets
Kink3d Apr 24, 2020
b56ca3a
Merge branch 'sg/stack-master-v2-hdrp' into sg/stack-master-v2-upgrad…
Kink3d Apr 24, 2020
2d2cb37
Fixup after merge
Kink3d Apr 24, 2020
90a93e4
Do shadow code cleanup + Fix Yamato after PR #5 Multi compile shadow …
sebastienlagarde Apr 24, 2020
b124d13
Fixed issues with path traced SSS and accumulation. (#257)
eturquin Apr 24, 2020
756da19
Add missing documentation for AOV API params (#254)
pmavridis Apr 24, 2020
4a2ed5b
Hdrp/public static sky (#253)
JulienIgnace-Unity Apr 24, 2020
78c8b4a
Update HDAdditionalLightData.Migration.cs (#269)
sebastienlagarde Apr 25, 2020
1848d17
Cretae per-pipeline menu items
Kink3d Apr 27, 2020
d176dd1
Fix HairStrandDirection field
Kink3d Apr 27, 2020
2f166fb
Fix color property upgrade
pbbastian Apr 27, 2020
1a15eb4
Remove old master node and target classes
Kink3d Apr 27, 2020
ce05740
Revert old Pragma.OnlyRenderers change
Kink3d Apr 27, 2020
6e8f82f
Add display names to blocks
Kink3d Apr 27, 2020
862dc7f
Add missing docs attributes (#271)
FrancescoC-unity Apr 27, 2020
eda2a15
Fixed an error about procedural sky being logged by mistake. (#273)
JulienIgnace-Unity Apr 27, 2020
5195d3e
Fix quality settings UI and shadow mask UI (#122)
sebastienlagarde Apr 27, 2020
1574864
Validate HD naming conventions
Kink3d Apr 27, 2020
bf2670a
Define StackLit lobe A conceptually the same as Lit lobe
Kink3d Apr 27, 2020
aa625cc
Updated raytracing async compute warning. (#274)
JulienIgnace-Unity Apr 27, 2020
2aedd11
Remove unnecessary descriptor null checks
Kink3d Apr 27, 2020
043042d
Move SpriteMask block to URP namespace
Kink3d Apr 27, 2020
bb905c5
Add paths for block descriptors via attribute
Kink3d Apr 27, 2020
24bd866
Fixed a null ref exception in static sky when the default volume prof…
JulienIgnace-Unity Apr 27, 2020
e565b15
Auto add/remove blocks when changing target settings
Kink3d Apr 27, 2020
8f0782f
Merge branch 'master' into HDRP/staging
sebastienlagarde Apr 27, 2020
3b79e9b
Added SubScenes cache to be compatible with HDRP/staging (#287)
TomasKiniulis Apr 28, 2020
ca5ab25
Merge branch 'sg/stack-master-v2-hdrp' into sg/stack-master-v2-upgrad…
Kink3d Apr 28, 2020
54cc796
Merge remote-tracking branch 'origin/master' into sg/happy-json-v2
pbbastian Apr 28, 2020
f85a6d0
Fix up after merge
Kink3d Apr 28, 2020
4cb381d
Fix drawing master from upstream node changes
Kink3d Apr 28, 2020
0f2c315
Merge remote-tracking branch 'origin/hdrp/staging' into sg/stack-mast…
Kink3d Apr 28, 2020
8fef29f
Fix up PreviewManager after merge
Kink3d Apr 28, 2020
259557d
Merge branch 'sg/stack-master-v2-hdrp' into sg/stack-master-v2-upgrad…
Kink3d Apr 28, 2020
5fdba9c
Merge remote-tracking branch 'origin/sg/happy-json-v2' into sg/stack-…
Kink3d Apr 28, 2020
6bc0953
Fix up after merge
Kink3d Apr 28, 2020
c8c3e59
Fix target initiailization
Kink3d Apr 28, 2020
a3e2723
Support upgrading blockmaps from multiple targets
Kink3d Apr 28, 2020
bcfac3b
merge of cross pipeline mvp into stack master v2 upgrade hdrp
elizabeth-legros Apr 28, 2020
25a1df8
fixing bugs
elizabeth-legros Apr 28, 2020
121a393
remove old function
elizabeth-legros Apr 28, 2020
4aa36a4
fixing some test code
elizabeth-legros Apr 28, 2020
27a1292
Shadergraph/bugfix 1186867 (#65)
elizabeth-legros Apr 28, 2020
e718b6d
more bugfix, one on creation of minimalgraphdata and updating some te…
elizabeth-legros Apr 28, 2020
999d408
Minor fixes
Kink3d Apr 29, 2020
ea75f75
Merge branch 'sg/stack-master-v2-upgrade-hdrp' into sg/stack-master-v…
elizabeth-legros Apr 29, 2020
f2f8624
working on node updates and unknown node types
elizabeth-legros Apr 29, 2020
1a31547
replace unkown node with known node
alindmanUnity Apr 29, 2020
8eef0ae
Add contextual menu for Context separators
Kink3d Apr 30, 2020
cc32563
Rename PassDescriptor block masks
Kink3d Apr 30, 2020
c4f5da9
Fix SG test project
Kink3d Apr 30, 2020
44b1401
Bump importers
Kink3d Apr 30, 2020
aec91e9
Add upgrade path for VFX
Kink3d Apr 30, 2020
79b631b
Fix VFX tests
Kink3d Apr 30, 2020
83dbac4
handling unknown json types
elizabeth-legros Apr 30, 2020
ab2a137
merge alex's work
elizabeth-legros Apr 30, 2020
415760d
Merge remote-tracking branch 'origin/master' into sg/stack-master-v2-…
Kink3d May 1, 2020
48d545e
Changes to get branch to compile
sainarayan-cse Apr 30, 2020
15e73bf
Moved target and subtarget settings to Internal Inspector
sainarayan-cse May 1, 2020
706a17a
Remove temporary inspector
Kink3d May 1, 2020
151dc1a
Fix HDLit clip threshold
Kink3d May 1, 2020
12198fb
Re-enable HD shader stripping for SG shaders
Kink3d May 1, 2020
d467be1
Fix HD SG vertex modification
Kink3d May 1, 2020
3b350c1
Various HDRP test fixes
Kink3d May 1, 2020
bcc42ae
Remove excess changes
Kink3d May 1, 2020
0780ace
fixing various upgrade bugs
elizabeth-legros May 1, 2020
4086eb7
merge back in stack-master-v2-upgrade-hdrp
elizabeth-legros May 1, 2020
fddc5e6
maybe fixed validity/activity???
elizabeth-legros May 1, 2020
224160b
[skip ci] fixing window handling issues with preview and BB, code cle…
sainarayan-cse May 1, 2020
c47018b
Merge remote-tracking branch 'origin/master' into sg/stack-master-v2-…
Kink3d May 4, 2020
d835e46
[Skip CI] Fix upgrade of AlphaClip / AlphaTest
Kink3d May 4, 2020
98886ef
[Skip CI] Fix condition for HDRP transparent cull mode GUI
Kink3d May 4, 2020
cfb71d9
[Skip CI] Fix shadeBaseUsingRefractedAngles GUI
Kink3d May 5, 2020
63bc780
[Skip CI] Fix StackLit debug GUI conditional
Kink3d May 5, 2020
1b7f082
[Skip CI] Revert some unecessary changes
Kink3d May 5, 2020
adc8515
[Skip CI] Fix sub window layout serialization
Kink3d May 5, 2020
bd0b966
[Skip CI] Fix compiling of downstream BlockNode
Kink3d May 5, 2020
b59cec9
[Skip CI] Pass connected nodes to GetFields (Fix HD test 1202)
Kink3d May 5, 2020
17cb126
[Skip CI] Hotfix for previews
Kink3d May 5, 2020
968daa3
[Skip CI] Fix Unlit zWrite upgrade for HDRP (Fix HD test 8104)
Kink3d May 5, 2020
781a92a
[skip ci] Inspector: Fixed bug 1244134 and property visible in inspec…
sainarayan-cse May 5, 2020
98d9ccc
Fixed bug 1244134 with precision settings on nodes
sainarayan-cse May 5, 2020
f911e2f
Fixed 8105_b test material data
alelievr May 6, 2020
06b39b6
[Skip CI] Add unit tests
Kink3d May 6, 2020
3a9f937
Fix 8104 materials
alelievr May 6, 2020
05f5d86
Merge branch 'sg/stack-master-v2-upgrade-hdrp' of https://github.com/…
alelievr May 6, 2020
2047c65
Upgraded HDRP Test material version
alelievr May 6, 2020
48bc5ce
[Skip CI] Revert HDRP DXR test 902 reference
Kink3d May 6, 2020
686bec9
[Skip CI] Fix HD DXR tests 101, 102, 103 and 900
Kink3d May 6, 2020
fd088f7
[Skip CI] Fix HD test 8103 - Wrong condition for depth post pass
Kink3d May 6, 2020
6d0fa76
Merge branch 'sg/stack-master-v2-upgrade-hdrp' of https://github.com/…
alelievr May 6, 2020
d74cb83
Updated HDRP Runtime Tests materials
alelievr May 6, 2020
31936f6
Updated DXR test materials
alelievr May 6, 2020
4db79a1
Updated perf and template materials
alelievr May 6, 2020
00d9bb4
Updated HDRP Hybrid materials
alelievr May 6, 2020
ab80ecc
created active state to deal with weird isactive states
elizabeth-legros May 6, 2020
c8cd0ae
Merge remote-tracking branch 'origin/sg/stack-master-v2-upgrade-hdrp'…
elizabeth-legros May 6, 2020
948f4c5
removing some logic from grapheditorview that really belongs at graph…
elizabeth-legros May 6, 2020
28377b8
Added behavior to hide inspector when nothing is selected
sainarayan-cse May 7, 2020
9e5361d
code cleanup and test case fixing
elizabeth-legros May 7, 2020
85328de
removed IHasSettings and moved subgraph/custom node settings to inspe…
sainarayan-cse May 7, 2020
b1749a6
Adding more types to HDRP target allowed nodes and fixing serializati…
elizabeth-legros May 7, 2020
6a9ea03
fixing some vfx serialization issues and adding another node to the H…
elizabeth-legros May 8, 2020
cecfee1
Started to re-organize the HDRP subtargets
alelievr May 11, 2020
4217d35
Sg/stack master v2 upgrade hdrp fix preview (#398)
May 11, 2020
430bc84
making diffusion profile material slot mark dependency on the asset a…
elizabeth-legros May 11, 2020
ebbbb93
Fix for Default Block Node slots not affecting initial preview renders
May 12, 2020
76fb47d
merge in master
elizabeth-legros May 13, 2020
b21cb26
merge in of cross pipeline work
elizabeth-legros May 13, 2020
be4916e
Fix for previews not rendering.
May 14, 2020
5595a4e
fixes for node property drawers, selection with undo/redo and inspec…
sainarayan-cse May 14, 2020
800b1c0
Fix for Virtual Texture usage
May 14, 2020
037276e
Fixing issues with PBR passes referencing old sigular Normal rather t…
elizabeth-legros May 14, 2020
25acedc
fix function signature
alindmanUnity May 14, 2020
a61c7b8
Merge branch 'sg/stack-master-v2-inspector-bugfixes' into sg/master-s…
sainarayan-cse May 14, 2020
ea324e7
removed reference to old IHasSettings interface
sainarayan-cse May 14, 2020
3cd8f7f
Fix for Duplicate Node and Copy/Paste exceptions that soft lock the g…
May 15, 2020
96c81ce
Fix for redirect nodes
May 15, 2020
b313d11
fixing issue where orphaned edges would try and update active trees o…
elizabeth-legros May 15, 2020
336a58b
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros May 15, 2020
8698a6d
Properly handle ShaderGraph failure when subgraph doesn't exist.
May 15, 2020
c71cb7f
Fix for issues after deleting a subgraph used by a graph.
May 16, 2020
bca5bfd
Disallow dragging block nodes into groups
May 18, 2020
742e802
Continue to clean HDRP subtargets
alelievr May 18, 2020
adb97ac
Merge branch 'sg/master-stack' of https://github.com/Unity-Technologi…
alelievr May 18, 2020
5d3fa19
fixing bug where changing active targets after load would not update …
elizabeth-legros May 18, 2020
a2edabe
fixing bug where material slots did not properly update on add/remove…
elizabeth-legros May 18, 2020
defc0a8
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros May 18, 2020
9cd405c
Fixing 3 small issues in PreviewManager:
May 19, 2020
e705de9
make target property gui context a visual element
alindmanUnity May 21, 2020
f83ca00
fixing a PBR upgrade issue that would not set correct surface setting…
elizabeth-legros May 22, 2020
315cc02
Merge HDRP/staging into shader stack branch (#580)
alelievr May 26, 2020
dc40a83
fix gbuffer pass in universal from merge
alindmanUnity May 27, 2020
54eabca
Made property row labels flexible (#604)
alelievr May 27, 2020
ed79ed2
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros May 27, 2020
6015a8d
fix alpha checking in Universal pass includes
alindmanUnity May 27, 2020
6a3ecd1
fix alpha to half in universal pass includes
alindmanUnity May 27, 2020
776e116
Reorganize HDRP shader targets to share code between them (part 1) (#…
alelievr May 27, 2020
45226bd
merge to local branch
elizabeth-legros May 27, 2020
e214aeb
Two bugs: DiffusionProfileInputSlot CopyValuesFrom was not clearing t…
May 27, 2020
bc2003c
initial fix of properties in graph vfx assets, looks like there is a …
elizabeth-legros May 27, 2020
fc71e56
Fix for color nodes not updating their previews when you change the c…
May 28, 2020
0710f41
Fix for subgraph output nodes being called "Out_Vector*" instead of "…
May 28, 2020
cace1b5
Bump the m_LastMaterialVersion to 4 for all HDRP projects (For Materi…
sebastienlagarde May 28, 2020
e8f2895
Sg/master stack cross pipeline bugfixes (#640)
elizabeth-legros May 28, 2020
0a568cf
Stack nodes no longer groupable
May 28, 2020
2c7de6b
Fixing block node test failure
elizabeth-legros May 28, 2020
17c3352
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros May 28, 2020
df4097d
making targets know what SRP they work in to handle which customGUI g…
elizabeth-legros May 28, 2020
bc730ac
add VFX graph target to create shader menu
alindmanUnity May 29, 2020
0295f4c
Merge branch 'sg/master-stack' of https://github.com/Unity-Technologi…
alindmanUnity May 29, 2020
f2016ad
fixes the right click node menu for stacks in a hacky way
alindmanUnity May 29, 2020
21b363a
Fix for undo/redo when moving the stack contexts (#662)
May 29, 2020
8cf69d0
Various fix for shader stack PR (#651)
sebastienlagarde May 29, 2020
89960c9
fix for failing unit test
alindmanUnity May 29, 2020
e1f876e
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros May 29, 2020
0f47672
PBR master node upgrade bugfixes
elizabeth-legros May 29, 2020
72221c1
Merge branch 'sg/master-stack-vfx-fix' into sg/master-stack
elizabeth-legros May 29, 2020
5a21d05
Fix SSR transparent migration (#676)
sebastienlagarde May 29, 2020
756740b
allow VFX target to use any node that is known, will be fixed correct…
elizabeth-legros May 29, 2020
980ee18
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros May 29, 2020
f065406
DXRP DXR Transparent RTR Second Fix (Test still not ok)
sebastienlagarde May 29, 2020
6fbba98
[SG Stacks] Tabbed Inspector View (#677)
alindmanUnity May 29, 2020
ea9368f
Fix for stack move undo/redo
May 29, 2020
9ea782e
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
May 29, 2020
ab9ef65
Fix stack separator hitbox so it doesn't cover the block nodes. [skip…
marctem May 30, 2020
6f2a49a
Merge 9.x.x/release into sg/master-stack + cleanup all the Material p…
sebastienlagarde May 31, 2020
98fcd14
Merge branch '9.x.x/release' into sg/master-stack
sebastienlagarde May 31, 2020
8b8eaff
reset screenshots to 9.x.x/release value
sebastienlagarde May 31, 2020
cb23376
fixing merge issue with shadergraph importer
elizabeth-legros May 31, 2020
bd7ecb7
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros May 31, 2020
f2c1c7f
Create ShaderGraphMetadata.cs.meta
sebastienlagarde May 31, 2020
894e122
Fix migration issue with SSS on lit shader
sebastienlagarde May 31, 2020
224d97c
Merge branch '9.x.x/release' into sg/master-stack
sebastienlagarde May 31, 2020
cc50576
Fix HDRP DXR 905_Materials_SG_TransparentRTR issue
sebastienlagarde May 31, 2020
cce620a
Fallback to premultiply blend mode when upgrading from multiply for HDRP
sebastienlagarde Jun 1, 2020
0bffeb7
Fix call to correct SetupMaterialKeywordsAndPass for SG Unlit
sebastienlagarde Jun 1, 2020
38cdc81
Null checking m_outputNode
elizabeth-legros Jun 1, 2020
e1659d8
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros Jun 1, 2020
90b696f
New Targets on blank shadergraphs default to "Lit" sub-target, if ava…
Jun 1, 2020
44e5f4d
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
Jun 1, 2020
116336b
[Draft] Fix upgrade of Unlit and PBR cross pipeline SG to HD SG [Skip…
sebastienlagarde Jun 2, 2020
d278289
fixing some nullrefs if the current renderpipeline is null
elizabeth-legros Jun 1, 2020
9271c76
Add clearCoat option in Lit target to be able to disable it. (#700)
alelievr Jun 2, 2020
3902efd
making VFX target a bit more explicit in only working with an srp active
elizabeth-legros Jun 2, 2020
b6b5b1f
Merge branch 'sg/master-stack' of github.com:Unity-Technologies/Graph…
elizabeth-legros Jun 2, 2020
3e3c439
change context to take in a tuple of (blockdescriptor descriptor,bool…
elizabeth-legros Jun 2, 2020
83daa6e
Merge branch '9.x.x/release' into sg/master-stack
sebastienlagarde Jun 2, 2020
f69a129
Add protection in migration when rendering pass was set to backgroun…
alelievr Jun 2, 2020
cbf8377
Fix RenderQueue generation for HDRP code (#691)
sebastienlagarde Jun 3, 2020
0a12bae
Merge branch '9.x.x/release' into sg/master-stack
sebastienlagarde Jun 3, 2020
366eb2d
change context to take in a tuple of (blockdescriptor descriptor,bool…
marctem Jun 3, 2020
ef1a6aa
Adding mesh deformation nodes to the BuiltIn node type list
Jun 3, 2020
f862e83
Added VT TextureStack.hlsl include to RT passes, and fixed a shader w…
Jun 4, 2020
f86fe76
connected slots are not default value
alindmanUnity Jun 4, 2020
da94b33
Fix for DOTS hybrid skinning in HDRP
Jun 4, 2020
ab8522e
Add settings for Virtual Texture Node back to Graph Inspector, fix a …
marctem Jun 4, 2020
80e0bba
Remove the unused settings code from Virtual Texture Node.
marctem Jun 4, 2020
5298da3
Merge branch '9.x.x/release' into sg/master-stack
sebastienlagarde Jun 8, 2020
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 @@ -22,4 +22,4 @@ MonoBehaviour:
m_WizardActiveTab: 0
m_WizardNeedRestartAfterChangingToDX12: 0
m_WizardNeedToRunFixAllAgainAfterDomainReload: 0
m_LastMaterialVersion: 3
m_LastMaterialVersion: 4
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ MonoBehaviour:
m_WizardActiveTab: 0
m_WizardNeedRestartAfterChangingToDX12: 0
m_WizardNeedToRunFixAllAgainAfterDomainReload: 0
m_LastMaterialVersion: 3
m_LastMaterialVersion: 4
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ MonoBehaviour:
m_WizardActiveTab: 0
m_WizardNeedRestartAfterChangingToDX12: 0
m_WizardNeedToRunFixAllAgainAfterDomainReload: 0
m_LastMaterialVersion: 3
m_LastMaterialVersion: 4
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ MonoBehaviour:
m_WizardActiveTab: 0
m_WizardNeedRestartAfterChangingToDX12: 0
m_WizardNeedToRunFixAllAgainAfterDomainReload: 0
m_LastMaterialVersion: 3
m_LastMaterialVersion: 4
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ MonoBehaviour:
m_WizardActiveTab: 0
m_WizardNeedRestartAfterChangingToDX12: 0
m_WizardNeedToRunFixAllAgainAfterDomainReload: 0
m_LastMaterialVersion: 3
m_LastMaterialVersion: 4
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ MonoBehaviour:
m_ProjectSettingFolderPath: HDRPDefaultResources
m_WizardPopupAtStart: 0
m_WizardActiveTab: 0
m_LastMaterialVersion: 2
m_LastMaterialVersion: 4
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ MonoBehaviour:
m_WizardActiveTab: 0
m_WizardNeedRestartAfterChangingToDX12: 0
m_WizardNeedToRunFixAllAgainAfterDomainReload: 0
m_LastMaterialVersion: 3
m_LastMaterialVersion: 4
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using System.Linq;
using System.Reflection;
using UnityEngine;
using UnityEditor.ShaderGraph;
using UnityEngine.Rendering.HighDefinition;
using UnityEditor.Rendering.HighDefinition.ShaderGraph;

// Material property names
using static UnityEngine.Rendering.HighDefinition.HDMaterialProperties;
Expand Down Expand Up @@ -129,7 +131,7 @@ static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAsse
AssetVersion assetVersion = null;
foreach (var subAsset in assetVersions)
{
if (subAsset.GetType() == typeof(AssetVersion))
if (subAsset != null && subAsset.GetType() == typeof(AssetVersion))
{
assetVersion = subAsset as AssetVersion;
break;
Expand Down Expand Up @@ -190,6 +192,7 @@ static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAsse
StencilRefactor,
ZWriteForTransparent,
RenderQueueUpgrade,
ShaderGraphStack,
};

#region Migrations
Expand Down Expand Up @@ -337,6 +340,59 @@ static void RenderQueueUpgrade(Material material, HDShaderUtils.ShaderID id)
HDShaderUtils.ResetMaterialKeywords(material);
}

// properties in this tab should be properties from Unlit or PBR cross pipeline shader
// that are suppose to be synchronize with the Material during upgrade
readonly static string[] s_ShadergraphStackFloatPropertiesToSynchronize = {
"_SurfaceType",
"_BlendMode",
"_DstBlend",
"_SrcBlend",
"_AlphaDstBlend",
"_AlphaSrcBlend",
"_AlphaCutoff",
"_AlphaCutoffEnable",
"_DoubleSidedEnable",
"_DoubleSidedNormalMode",
"_ZWrite", // Needed to fix older bug
"_RenderQueueType" // Needed as seems to not reset correctly
};

static void ShaderGraphStack(Material material, HDShaderUtils.ShaderID id)
{
Shader shader = material.shader;

if (shader.IsShaderGraph())
{
if (shader.TryGetMetadataOfType<HDMetadata>(out var obj))
{
// Material coming from old cross pipeline shader (Unlit and PBR) are not synchronize correctly with their
// shader graph. This code below ensure it is
if (obj.migrateFromOldCrossPipelineSG) // come from PBR or Unlit cross pipeline SG?
{
var defaultProperties = new Material(material.shader);

foreach (var floatToSync in s_ShadergraphStackFloatPropertiesToSynchronize)
if (material.HasProperty(floatToSync))
material.SetFloat(floatToSync, defaultProperties.GetFloat(floatToSync));

defaultProperties = null;

// Postprocess now that material is correctly sync
bool isTransparent = material.HasProperty("_SurfaceType") && material.GetFloat("_SurfaceType") > 0.0f;
bool alphaTest = material.HasProperty("_AlphaCutoffEnable") && material.GetFloat("_AlphaCutoffEnable") > 0.0f;

material.renderQueue = isTransparent ? (int)HDRenderQueue.Priority.Transparent :
alphaTest ? (int)HDRenderQueue.Priority.OpaqueAlphaTest : (int)HDRenderQueue.Priority.Opaque;

material.SetFloat("_RenderQueueType", isTransparent ? (float)HDRenderQueue.RenderQueueType.Transparent : (float)HDRenderQueue.RenderQueueType.Opaque);
}

}
}

HDShaderUtils.ResetMaterialKeywords(material);
}

#region Serialization_API
//Methods in this region interact on the serialized material
//without filtering on what used shader knows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void OnShaderGraphSaved(Shader shader, object saveContext)
if (!(saveContext is HDSaveContext hdSaveContext))
return;

HDRenderPipeline.currentPipeline.ResetPathTracing();
HDRenderPipeline.currentPipeline?.ResetPathTracing();

if (!hdSaveContext.updateMaterials)
return;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
using System;
using UnityEditor.ShaderGraph;

namespace UnityEditor.Rendering.HighDefinition
namespace UnityEditor.Rendering.HighDefinition.ShaderGraph
{
static class CreateDecalShaderGraph
{
[MenuItem("Assets/Create/Shader/HDRP/Decal Graph", false, 208)]
public static void CreateMaterialGraph()
[MenuItem("Assets/Create/Shader/HDRP/Decal Shader Graph", false, 208)]
public static void CreateDecalGraph()
{
GraphUtil.CreateNewGraph(new DecalMasterNode());
var target = (HDTarget)Activator.CreateInstance(typeof(HDTarget));
target.TrySetActiveSubTarget(typeof(DecalSubTarget));

var blockDescriptors = new []
{
BlockFields.VertexDescription.Position,
BlockFields.VertexDescription.Normal,
BlockFields.VertexDescription.Tangent,
BlockFields.SurfaceDescription.BaseColor,
BlockFields.SurfaceDescription.Alpha,
BlockFields.SurfaceDescription.NormalTS,
HDBlockFields.SurfaceDescription.NormalAlpha,
BlockFields.SurfaceDescription.Metallic,
BlockFields.SurfaceDescription.Occlusion,
BlockFields.SurfaceDescription.Smoothness,
HDBlockFields.SurfaceDescription.MAOSAlpha,
BlockFields.SurfaceDescription.Emission,
};

GraphUtil.CreateNewGraphWithOutputs(new [] {target}, blockDescriptors);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
using System;
using UnityEngine;
using UnityEngine.Rendering.HighDefinition;

namespace UnityEditor.Rendering.HighDefinition.ShaderGraph
{
class DecalData : HDTargetData
{
[SerializeField]
bool m_AffectsMetal = true;
public bool affectsMetal
{
get => m_AffectsMetal;
set => m_AffectsMetal = value;
}

[SerializeField]
bool m_AffectsAO = true;
public bool affectsAO
{
get => m_AffectsAO;
set => m_AffectsAO = value;
}

[SerializeField]
bool m_AffectsSmoothness = true;
public bool affectsSmoothness
{
get => m_AffectsSmoothness;
set => m_AffectsSmoothness = value;
}

[SerializeField]
bool m_AffectsAlbedo = true;
public bool affectsAlbedo
{
get => m_AffectsAlbedo;
set => m_AffectsAlbedo = value;
}

[SerializeField]
bool m_AffectsNormal = true;
public bool affectsNormal
{
get => m_AffectsNormal;
set => m_AffectsNormal = value;
}

[SerializeField]
bool m_AffectsEmission = true;
public bool affectsEmission
{
get => m_AffectsEmission;
set => m_AffectsEmission = value;
}

[SerializeField]
int m_DrawOrder;
public int drawOrder
{
get => m_DrawOrder;
set => m_DrawOrder = value;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading