Skip to content

Custom Pass API part 2 #227

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 52 commits into from
Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
fbd37c5
Begin to write the new custom pass API
alelievr Feb 5, 2020
09f3faa
Begin to add custom pass utils shader
alelievr Feb 17, 2020
a0ff2ed
Merge branch 'HDRP/staging' into HDRP/feature/custom-pass-api
alelievr Mar 27, 2020
c68a4d9
Begin to add custom pass API test scenes
alelievr Apr 7, 2020
71dee6c
Fixes for the Gaussian blur of the custom pass API
alelievr Apr 8, 2020
328fe7e
Fix blur release
alelievr Apr 9, 2020
909a75c
Added custom pass copy test and fixed blur
alelievr Apr 10, 2020
1bd7c28
Merge branch 'HDRP/staging' into HDRP/feature/custom-pass-api
alelievr Apr 10, 2020
a8e9d95
Added more custom pass documentation
alelievr Apr 16, 2020
9839fb4
Merge remote-tracking branch 'origin/HDRP/staging' into HDRP/feature/…
alelievr Apr 16, 2020
90dfdda
Added custom pass API graphic test reference image
alelievr Apr 16, 2020
6dce389
Added more obsolete things
alelievr Apr 16, 2020
e32b4ac
fix function visibility
alelievr Apr 16, 2020
8526268
Added the API to override camera rendering
alelievr Apr 17, 2020
4cb6126
Updated changelog
alelievr Apr 17, 2020
9d8dd99
Updated changelog
alelievr Apr 17, 2020
18323db
Merge branch 'HDRP/feature/camera-override-api' into HDRP/feature/cus…
alelievr Apr 17, 2020
27f9e29
Fixed compilation issue
alelievr Apr 17, 2020
0d83b23
Merge branch 'HDRP/feature/camera-override-api' into HDRP/feature/cus…
alelievr Apr 17, 2020
3cc615c
Added custom pass API test scene
alelievr Apr 17, 2020
0cef95c
Merge branch 'HDRP/feature/custom-pass-api' into HDRP/feature/custom-…
alelievr Apr 17, 2020
4f11b76
Begin to add custom pass override test
alelievr Apr 17, 2020
a71e6de
Factorized protection function
alelievr Apr 17, 2020
44290d3
Merge branch 'HDRP/feature/camera-override-api' into HDRP/feature/cus…
alelievr Apr 17, 2020
30c9659
Update custom pass test scene
alelievr Apr 17, 2020
8c60071
Fixed custom pass API doc
alelievr Apr 17, 2020
e451f79
Begin to add camera override tests
alelievr Apr 20, 2020
b386cc5
Fixed camera override in scene view
alelievr Apr 20, 2020
4d8883c
Merge branch 'HDRP/feature/camera-override-api' into HDRP/feature/cus…
alelievr Apr 20, 2020
0aa3c56
Finished RenderFrom API fucntions
alelievr Apr 21, 2020
98e3ab8
Fixed XR disable class
alelievr Apr 21, 2020
5775566
Added isPersistant bool in HDCamera and allocateHistoryBuffers param …
alelievr Apr 21, 2020
1e025ea
Merge branch 'HDRP/feature/camera-override-api' into HDRP/feature/cus…
alelievr Apr 21, 2020
eb48fe6
Fix MSAA for before pre refraction and added errors for fullscreen MS…
alelievr Apr 22, 2020
6aafcc1
Finished to fix the RenderFrom* functions
alelievr Apr 22, 2020
4392b6b
Moved obsolete execute function into the new one
alelievr Apr 22, 2020
4650b43
Merge remote-tracking branch 'origin/HDRP/staging' into HDRP/feature/…
alelievr Apr 22, 2020
c13a32c
Update reference images
alelievr Apr 22, 2020
ad05dbc
Added all the API doc
alelievr Apr 23, 2020
b7d6c22
Updated changelog
alelievr Apr 23, 2020
df87576
revert mats
alelievr Apr 23, 2020
ff259e2
Merge branch 'HDRP/feature/custom-pass-api' into HDRP/feature/custom-…
alelievr Apr 23, 2020
b63c1d7
Updated custom clear pass to use the new API
alelievr Apr 27, 2020
847ec3f
Merge branch 'HDRP/staging' into HDRP/feature/custom-pass-api-2
alelievr May 25, 2020
7312495
Merge branch 'HDRP/staging' into HDRP/feature/custom-pass-api-2
sebastienlagarde May 26, 2020
95d8434
Fixed depth buffer random read/write error
alelievr May 27, 2020
c35cd91
Disable custom pass blur test part
alelievr May 27, 2020
b7db3f8
Merge branch 'HDRP/staging' into HDRP/feature/custom-pass-api-2
sebastienlagarde Jun 3, 2020
1bffab0
Revert camera pixel rect changes
alelievr Jun 3, 2020
313b047
Rename multi-pass to single pass
alelievr Jun 3, 2020
a8975b3
Disable custom pass test on vulkan and XR
alelievr Jun 4, 2020
7689a38
Merge branch 'HDRP/staging' into HDRP/feature/custom-pass-api-2
sebastienlagarde Jun 4, 2020
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-8979609692401830921
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 3
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 9702_LitUV
m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3}
m_ShaderKeywords: _DISABLE_SSR_TRANSPARENT _NORMALMAP_TANGENT_SPACE
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- DistortionVectors
- MOTIONVECTORS
- TransparentDepthPrepass
- TransparentDepthPostpass
- TransparentBackface
- RayTracingPrepass
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _AnisotropyMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseColorMap:
m_Texture: {fileID: 2800000, guid: b23bea53bdbdb5a4aaacf12522910599, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BentNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BentNormalMapOS:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _CoatMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DistortionVectorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissiveColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _HeightMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _IridescenceMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _IridescenceThicknessMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: b23bea53bdbdb5a4aaacf12522910599, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMapOS:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecularColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SubsurfaceMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TangentMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TangentMapOS:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ThicknessMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmittanceColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _AORemapMax: 1
- _AORemapMin: 0
- _ATDistance: 1
- _AddPrecomputedVelocity: 0
- _AlbedoAffectEmissive: 0
- _AlphaCutoff: 0.5
- _AlphaCutoffEnable: 0
- _AlphaCutoffPostpass: 0.5
- _AlphaCutoffPrepass: 0.5
- _AlphaCutoffShadow: 0.5
- _AlphaDstBlend: 0
- _AlphaSrcBlend: 1
- _AlphaToMask: 0
- _Anisotropy: 0
- _BlendMode: 0
- _CoatMask: 0
- _CullMode: 2
- _CullModeForward: 2
- _Cutoff: 0.5
- _DepthOffsetEnable: 0
- _DetailAlbedoScale: 1
- _DetailNormalScale: 1
- _DetailSmoothnessScale: 1
- _DiffusionProfile: 0
- _DiffusionProfileHash: 0
- _DisplacementLockObjectScale: 1
- _DisplacementLockTilingScale: 1
- _DisplacementMode: 0
- _DistortionBlendMode: 0
- _DistortionBlurBlendMode: 0
- _DistortionBlurDstBlend: 1
- _DistortionBlurRemapMax: 1
- _DistortionBlurRemapMin: 0
- _DistortionBlurScale: 1
- _DistortionBlurSrcBlend: 1
- _DistortionDepthTest: 1
- _DistortionDstBlend: 1
- _DistortionEnable: 0
- _DistortionScale: 1
- _DistortionSrcBlend: 1
- _DistortionVectorBias: -1
- _DistortionVectorScale: 2
- _DoubleSidedEnable: 0
- _DoubleSidedNormalMode: 1
- _DstBlend: 0
- _EmissiveColorMode: 1
- _EmissiveExposureWeight: 1
- _EmissiveIntensity: 1
- _EmissiveIntensityUnit: 0
- _EnableBlendModePreserveSpecularLighting: 1
- _EnableFogOnTransparent: 1
- _EnableGeometricSpecularAA: 0
- _EnergyConservingSpecularColor: 1
- _HeightAmplitude: 0.02
- _HeightCenter: 0.5
- _HeightMapParametrization: 0
- _HeightMax: 1
- _HeightMin: -1
- _HeightOffset: 0
- _HeightPoMAmplitude: 2
- _HeightTessAmplitude: 2
- _HeightTessCenter: 0.5
- _InvTilingScale: 1
- _Ior: 1.5
- _IridescenceMask: 1
- _IridescenceThickness: 1
- _LinkDetailsWithBase: 1
- _MaterialID: 1
- _Metallic: 0
- _NormalMapSpace: 0
- _NormalScale: 1
- _PPDLodThreshold: 5
- _PPDMaxSamples: 15
- _PPDMinSamples: 5
- _PPDPrimitiveLength: 1
- _PPDPrimitiveWidth: 1
- _RayTracing: 0
- _ReceivesSSR: 1
- _ReceivesSSRTransparent: 0
- _RefractionModel: 0
- _SSRefractionProjectionModel: 0
- _Smoothness: 0.5
- _SmoothnessRemapMax: 1
- _SmoothnessRemapMin: 0
- _SpecularAAScreenSpaceVariance: 0.1
- _SpecularAAThreshold: 0.2
- _SpecularOcclusionMode: 1
- _SrcBlend: 1
- _StencilRef: 0
- _StencilRefDepth: 8
- _StencilRefDistortionVec: 4
- _StencilRefGBuffer: 10
- _StencilRefMV: 40
- _StencilWriteMask: 6
- _StencilWriteMaskDepth: 8
- _StencilWriteMaskDistortionVec: 4
- _StencilWriteMaskGBuffer: 14
- _StencilWriteMaskMV: 40
- _SubsurfaceMask: 1
- _SupportDecals: 1
- _SurfaceType: 0
- _TexWorldScale: 1
- _TexWorldScaleEmissive: 1
- _Thickness: 1
- _TransmissionEnable: 1
- _TransparentBackfaceEnable: 0
- _TransparentCullMode: 2
- _TransparentDepthPostpassEnable: 0
- _TransparentDepthPrepassEnable: 0
- _TransparentSortPriority: 0
- _TransparentWritingMotionVec: 0
- _TransparentZWrite: 0
- _UVBase: 0
- _UVDetail: 0
- _UVEmissive: 0
- _UseEmissiveIntensity: 0
- _UseShadowThreshold: 0
- _ZTestDepthEqualForOpaque: 3
- _ZTestGBuffer: 4
- _ZTestModeDistortion: 4
- _ZTestTransparent: 4
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
- _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
- _EmissiveColor: {r: 0, g: 0, b: 0, a: 1}
- _EmissiveColorLDR: {r: 0, g: 0, b: 0, a: 1}
- _InvPrimScale: {r: 1, g: 1, b: 0, a: 0}
- _IridescenceThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _ThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
- _TransmittanceColor: {r: 1, g: 1, b: 1, a: 1}
- _UVDetailsMappingMask: {r: 1, g: 0, b: 0, a: 0}
- _UVMappingMask: {r: 1, g: 0, b: 0, a: 0}
- _UVMappingMaskEmissive: {r: 1, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []

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

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ protected override void Execute(CustomPassContext ctx)
new Vector4(0.5f, 0.5f, 0, 0), new Vector4(0.25f, 0.25f, 0.5f, 0.75f),
1, 0
);

}

protected override void Cleanup() => halfResTarget.Release();
Expand Down
Loading