-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Test Coverage for Custom Velocity and Precomputed Velocity (#5508)
* Add Test 9304: Motion Vector (Custom & Precomputed) * Add the new animate material time override for deterministic motion vector testing * Update HDCamera.cs * update reference screenshots * Update the test to use a static alembic with prebaked velocity * Update reference images Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
- Loading branch information
1 parent
2234b9e
commit 8e4939d
Showing
83 changed files
with
36,020 additions
and
83 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...cts/HDRP_Tests/Assets/GraphicTests/Scenes/9x_Other/9301_MotionVectors/CustomVelocity.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
275 changes: 275 additions & 0 deletions
275
...s/GraphicTests/Scenes/9x_Other/9301_MotionVectors/CustomVelocity/M_CustomVelocity_Eye.mat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &-233197530010501509 | ||
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: 12 | ||
hdPluginSubTargetMaterialVersions: | ||
m_Keys: [] | ||
m_Values: | ||
--- !u!21 &2100000 | ||
Material: | ||
serializedVersion: 6 | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_Name: M_CustomVelocity_Eye | ||
m_Shader: {fileID: -6465566751694194690, guid: e84d9d78859cc43478ae0ed363e706be, | ||
type: 3} | ||
m_ShaderKeywords: _DISABLE_SSR_TRANSPARENT | ||
m_LightmapFlags: 4 | ||
m_EnableInstancingVariants: 0 | ||
m_DoubleSidedGI: 0 | ||
m_CustomRenderQueue: 2225 | ||
stringTagMap: | ||
MotionVector: User | ||
disabledShaderPasses: | ||
- TransparentDepthPrepass | ||
- TransparentDepthPostpass | ||
- TransparentBackface | ||
- RayTracingPrepass | ||
- ForwardEmissiveForDeferred | ||
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: 0} | ||
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} | ||
- _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: 0} | ||
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} | ||
- unity_Lightmaps: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- unity_LightmapsInd: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- unity_ShadowMasks: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
m_Ints: [] | ||
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 | ||
- _AlphaToMaskInspectorValue: 0 | ||
- _Anisotropy: 0 | ||
- _BlendMode: 0 | ||
- _CoatMask: 0 | ||
- _ConservativeDepthOffsetEnable: 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 | ||
- _DoubleSidedEnable: 0 | ||
- _DoubleSidedGIMode: 0 | ||
- _DoubleSidedNormalMode: 0 | ||
- _DstBlend: 0 | ||
- _EmissiveColorMode: 1 | ||
- _EmissiveExposureWeight: 1 | ||
- _EmissiveIntensity: 1 | ||
- _EmissiveIntensityUnit: 0 | ||
- _EnableBlendModePreserveSpecularLighting: 1 | ||
- _EnableFogOnTransparent: 1 | ||
- _EnableGeometricSpecularAA: 0 | ||
- _EnergyConservingSpecularColor: 1 | ||
- _ForceForwardEmissive: 0 | ||
- _Frequency: 4.77 | ||
- _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 | ||
- _MetallicRemapMax: 1 | ||
- _MetallicRemapMin: 0 | ||
- _NormalMapSpace: 0 | ||
- _NormalScale: 1 | ||
- _OpaqueCullMode: 2 | ||
- _PPDLodThreshold: 5 | ||
- _PPDMaxSamples: 15 | ||
- _PPDMinSamples: 5 | ||
- _PPDPrimitiveLength: 1 | ||
- _PPDPrimitiveWidth: 1 | ||
- _RayTracing: 0 | ||
- _ReceivesSSR: 1 | ||
- _ReceivesSSRTransparent: 0 | ||
- _RefractionModel: 0 | ||
- _RenderQueueType: 1 | ||
- _RequireSplitLighting: 0 | ||
- _Scale: 1 | ||
- _Smoothness: 0.5 | ||
- _SmoothnessRemapMax: 1 | ||
- _SmoothnessRemapMin: 0 | ||
- _SpecularAAScreenSpaceVariance: 0.1 | ||
- _SpecularAAThreshold: 0.2 | ||
- _SpecularOcclusionMode: 1 | ||
- _Speed: 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 | ||
- _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} | ||
- _Vector3: {r: 0.035, g: 0, b: 0, a: 0} | ||
m_BuildTextureStacks: [] |
8 changes: 8 additions & 0 deletions
8
...phicTests/Scenes/9x_Other/9301_MotionVectors/CustomVelocity/M_CustomVelocity_Eye.mat.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.