Skip to content

HDRP sub targets refactor #773

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 38 commits into from
Jun 9, 2020
Merged

Conversation

alelievr
Copy link
Member

@alelievr alelievr commented Jun 8, 2020

Purpose of this PR

Reduce the code we need to write to add a new master node and share the pass declaration between shaders.

https://yamato.prd.cds.internal.unity3d.com/jobs/902-Graphics/tree/HDRP%252Fstack-targets-refactor-2/.yamato%252Fupm-ci-abv.yml%2523all_project_ci_CUSTOM-REVISION/2447908/job

alelievr added 30 commits May 20, 2020 18:59
…D blocks

# Conflicts:
#	TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/9x_Other/9701_CustomPass_DrawRenderers/9701_UnlitRT.mat
# Conflicts:
#	com.unity.render-pipelines.high-definition/Editor/Material/Eye/ShaderGraph/EyeSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Fabric/ShaderGraph/FabricSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Hair/ShaderGraph/HairSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/StackLit/ShaderGraph/StackLitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Unlit/ShaderGraph/HDUnlitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/ShaderGraph/TargetData/LightingData.cs
# Conflicts:
#	com.unity.render-pipelines.high-definition/Editor/Material/Eye/ShaderGraph/EyeSettingsView.cs.meta
#	com.unity.render-pipelines.high-definition/Editor/Material/Eye/ShaderGraph/EyeSubrafceOptionPropertyBlock.cs.meta
#	com.unity.render-pipelines.high-definition/Editor/Material/Eye/ShaderGraph/EyeSurfaceOptionPropertyBlock.cs.meta
#	com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/LightingSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/SurfaceOptionPropertyBlock.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/StackLit/ShaderGraph/StackLitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Unlit/ShaderGraph/HDUnlitSubTarget.cs
…tor-2

# Conflicts:
#	com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/StackLit/ShaderGraph/StackLitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Unlit/ShaderGraph/HDUnlitSubTarget.cs
# Conflicts:
#	TestProjects/HDRP_DXR_Tests/Assets/Scenes/5007_PathTracing_Materials_SG_Lit.unity.meta
#	com.unity.render-pipelines.high-definition/Editor/Material/Fabric/ShaderGraph/FabricSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Hair/ShaderGraph/HairSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Unlit/ShaderGraph/HDUnlitDistortionPropertyBlock.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Unlit/ShaderGraph/HDUnlitSubTarget.Migration.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/Unlit/ShaderGraph/HDUnlitSubTarget.cs
# Conflicts:
#	com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/LightingSubTarget.cs
#	com.unity.render-pipelines.high-definition/Editor/Material/StackLit/ShaderGraph/StackLitSubTarget.cs
@alelievr alelievr requested a review from sebastienlagarde June 8, 2020 16:51
@alelievr alelievr requested a review from a team as a code owner June 8, 2020 16:51
@alelievr alelievr self-assigned this Jun 8, 2020
@github-actions github-actions bot added the HDRP label Jun 8, 2020
Base automatically changed from sg/master-stack to 9.x.x/release June 8, 2020 23:39
@alelievr alelievr changed the base branch from 9.x.x/release to sg/master-stack June 9, 2020 12:55
@alelievr alelievr merged commit 6fa0ec8 into sg/master-stack Jun 9, 2020
sebastienlagarde pushed a commit that referenced this pull request Jun 9, 2020
* Moved sub-target upgrade code to migration files and refactored the HD blocks

# Conflicts:
#	TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/9x_Other/9701_CustomPass_DrawRenderers/9701_UnlitRT.mat

* Made property row labels flexible

* Fixed indent level of propertyRow

* Added more control to indent level and clear foldout

* Refactored inspector GUI for HD lit and hair master node

* Fixed compilation

* Moved fabric subtarget GUI to new system

* Converted Eye and stacklit settings to new GUI system

* Finished decal and unlit inspector settings

* Add missing unlit distortion only + remove unlitPass template + fix duplicated alpha to mask option

* Testing new pass override system

* Revert assets

* Started to factorize passes for Unlit & fix distortion only in the inspector UI

* Shared all non DXR passes between shaders

* Fixed unlit depth prepass

* Fix lot of issues with shared render passes

* Moved SSS property to target specific and converted all ray tracing passes

* Fix missing normal space

* Shared more code between passes

* Added file dependency and remove unused template path

* Added target block context changes

* Removed all the commented code

* Fix anisotropy indent level

* Fixed yamato compilation issue

* Fixed stacklit and raytracing prepass shader issues

* Invert pass order

* Fixed shadow matte

* Enable virtual texturing in forward only

* Wrong emplacement for virtual texture feedback

* Fixed unwanted require field list modification
sebastienlagarde pushed a commit that referenced this pull request Jun 9, 2020
* Moved sub-target upgrade code to migration files and refactored the HD blocks

# Conflicts:
#	TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/9x_Other/9701_CustomPass_DrawRenderers/9701_UnlitRT.mat

* Made property row labels flexible

* Fixed indent level of propertyRow

* Added more control to indent level and clear foldout

* Refactored inspector GUI for HD lit and hair master node

* Fixed compilation

* Moved fabric subtarget GUI to new system

* Converted Eye and stacklit settings to new GUI system

* Finished decal and unlit inspector settings

* Add missing unlit distortion only + remove unlitPass template + fix duplicated alpha to mask option

* Testing new pass override system

* Revert assets

* Started to factorize passes for Unlit & fix distortion only in the inspector UI

* Shared all non DXR passes between shaders

* Fixed unlit depth prepass

* Fix lot of issues with shared render passes

* Moved SSS property to target specific and converted all ray tracing passes

* Fix missing normal space

* Shared more code between passes

* Added file dependency and remove unused template path

* Added target block context changes

* Removed all the commented code

* Fix anisotropy indent level

* Fixed yamato compilation issue

* Fixed stacklit and raytracing prepass shader issues

* Invert pass order

* Fixed shadow matte

* Enable virtual texturing in forward only

* Wrong emplacement for virtual texture feedback

* Fixed unwanted require field list modification
sebastienlagarde added a commit that referenced this pull request Jun 10, 2020
* HDRP sub targets refactor (#773)

* Moved sub-target upgrade code to migration files and refactored the HD blocks

# Conflicts:
#	TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/9x_Other/9701_CustomPass_DrawRenderers/9701_UnlitRT.mat

* Made property row labels flexible

* Fixed indent level of propertyRow

* Added more control to indent level and clear foldout

* Refactored inspector GUI for HD lit and hair master node

* Fixed compilation

* Moved fabric subtarget GUI to new system

* Converted Eye and stacklit settings to new GUI system

* Finished decal and unlit inspector settings

* Add missing unlit distortion only + remove unlitPass template + fix duplicated alpha to mask option

* Testing new pass override system

* Revert assets

* Started to factorize passes for Unlit & fix distortion only in the inspector UI

* Shared all non DXR passes between shaders

* Fixed unlit depth prepass

* Fix lot of issues with shared render passes

* Moved SSS property to target specific and converted all ray tracing passes

* Fix missing normal space

* Shared more code between passes

* Added file dependency and remove unused template path

* Added target block context changes

* Removed all the commented code

* Fix anisotropy indent level

* Fixed yamato compilation issue

* Fixed stacklit and raytracing prepass shader issues

* Invert pass order

* Fixed shadow matte

* Enable virtual texturing in forward only

* Wrong emplacement for virtual texture feedback

* Fixed unwanted require field list modification

* Update HDShaderPasses.cs

Co-authored-by: Antoine Lelievre <antoinel@unity3d.com>
sebastienlagarde added a commit that referenced this pull request Jun 10, 2020
* Merging into master:   squash merge sg/master-stack into 9.x.x/release

Effectively taking the diff between
   sg/master-stack commit: b6b5b1f
   9.x.x/release commit:  808d18e
and applying it to master

# Conflicts:
#	com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/SpriteForwardPass.hlsl
#	com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/SpriteLitPass.hlsl
#	com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/SpriteUnlitPass.hlsl
#	com.unity.shadergraph/Editor/Drawing/Views/MaterialNodeView.cs
#	com.unity.shadergraph/Editor/Drawing/Views/PortInputView.cs

* Add  protection in migration when rendering pass was set to background (#703)

* Add  protection in migration when rendering pass was set to background

* Fix rendering pass migration for unlit

Co-authored-by: sebastienlagarde <sebastien@unity3d.com>

* Fix RenderQueue generation for HDRP code (#691)

* Fix renderqueu generation

* fix renderingPass correctly

* clean m_AddPrecomputedVelocity usuage

* update edge type converstion test to stacks

* change context to take in a tuple of (blockdescriptor descriptor,bool isDefaultValue)

* Adding mesh deformation nodes to the BuiltIn node type list

* Added VT TextureStack.hlsl include to RT passes, and fixed a shader warning spam

* connected slots are not default value

* Fix for DOTS hybrid skinning in HDRP

* Add settings for Virtual Texture Node back to Graph Inspector, fix a layout issue.

* HDRP sub targets refactor (#773)

* Moved sub-target upgrade code to migration files and refactored the HD blocks

# Conflicts:
#	TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/9x_Other/9701_CustomPass_DrawRenderers/9701_UnlitRT.mat

* Made property row labels flexible

* Fixed indent level of propertyRow

* Added more control to indent level and clear foldout

* Refactored inspector GUI for HD lit and hair master node

* Fixed compilation

* Moved fabric subtarget GUI to new system

* Converted Eye and stacklit settings to new GUI system

* Finished decal and unlit inspector settings

* Add missing unlit distortion only + remove unlitPass template + fix duplicated alpha to mask option

* Testing new pass override system

* Revert assets

* Started to factorize passes for Unlit & fix distortion only in the inspector UI

* Shared all non DXR passes between shaders

* Fixed unlit depth prepass

* Fix lot of issues with shared render passes

* Moved SSS property to target specific and converted all ray tracing passes

* Fix missing normal space

* Shared more code between passes

* Added file dependency and remove unused template path

* Added target block context changes

* Removed all the commented code

* Fix anisotropy indent level

* Fixed yamato compilation issue

* Fixed stacklit and raytracing prepass shader issues

* Invert pass order

* Fixed shadow matte

* Enable virtual texturing in forward only

* Wrong emplacement for virtual texture feedback

* Fixed unwanted require field list modification

* Update 801_SubSurfaceScatteringDeferred.png

* Fix vulkan and metal

* Revert "Fix vulkan and metal"

This reverts commit 367ad17.

* Update HDShaderPasses.cs

* Update materials

* Update materials part 2 HDRP-test

* Update material for DXR projects

* update VFX project material

Co-authored-by: Chris Tchou <ctchou@unity3d.com>
Co-authored-by: Antoine Lelievre <antoinel@unity3d.com>
Co-authored-by: Alex Lindman <alexandral@unity3d.com>
Co-authored-by: Elizabeth LeGros <elizabeth.legros@unity3d.com>
Co-authored-by: Marc Templin <marcte@unity3d.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant