From 20d80d1b93ec9bc6297c25141918ee77e3df1fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Vauchelles?= Date: Fri, 20 Apr 2018 17:03:27 +0200 Subject: [PATCH] (wip) reflection test scene --- SampleScenes.meta | 5 +- SampleScenes/HDTest.meta | 5 +- .../HDTest/AnimTest/CMUMocap/85_12.fbx.meta | 77 +++-- .../Common/Material/Mat_refraction_plane.mat | 322 ++++++++++++++++++ .../Material/Mat_refraction_plane.mat.meta | 8 + .../Common/Material/Mat_refraction_sphere.mat | 322 ++++++++++++++++++ .../Material/Mat_refraction_sphere.mat.meta | 8 + .../HDRenderPipelineAsset_HDReflection.asset | 86 +++++ ...enderPipelineAsset_HDReflection.asset.meta | 8 + 9 files changed, 806 insertions(+), 35 deletions(-) create mode 100644 SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane.mat create mode 100644 SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane.mat.meta create mode 100644 SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere.mat create mode 100644 SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere.mat.meta create mode 100644 SampleScenes/HDTest/HDRenderPipelineAsset_HDReflection.asset create mode 100644 SampleScenes/HDTest/HDRenderPipelineAsset_HDReflection.asset.meta diff --git a/SampleScenes.meta b/SampleScenes.meta index 24a1ceb..1580ea0 100644 --- a/SampleScenes.meta +++ b/SampleScenes.meta @@ -1,9 +1,8 @@ fileFormatVersion: 2 -guid: d3d521215985c1e4d804878dbdca6a99 +guid: f4088a36924c6584e96bf54ae62c9d10 folderAsset: yes -timeCreated: 1437475569 -licenseType: Pro DefaultImporter: + externalObjects: {} userData: assetBundleName: assetBundleVariant: diff --git a/SampleScenes/HDTest.meta b/SampleScenes/HDTest.meta index c3328d2..d1f487f 100644 --- a/SampleScenes/HDTest.meta +++ b/SampleScenes/HDTest.meta @@ -1,9 +1,8 @@ fileFormatVersion: 2 -guid: 8276fd7131b21b74f995f26f7712cf65 +guid: 4e9896f1337a5ca42a9eba5a17981857 folderAsset: yes -timeCreated: 1474299364 -licenseType: Pro DefaultImporter: + externalObjects: {} userData: assetBundleName: assetBundleVariant: diff --git a/SampleScenes/HDTest/AnimTest/CMUMocap/85_12.fbx.meta b/SampleScenes/HDTest/AnimTest/CMUMocap/85_12.fbx.meta index bdc5316..a26a16f 100644 --- a/SampleScenes/HDTest/AnimTest/CMUMocap/85_12.fbx.meta +++ b/SampleScenes/HDTest/AnimTest/CMUMocap/85_12.fbx.meta @@ -1,9 +1,7 @@ fileFormatVersion: 2 guid: c9bd9295f1cc0f24492fc79871a7e383 -timeCreated: 1482063438 -licenseType: Pro ModelImporter: - serializedVersion: 19 + serializedVersion: 22 fileIDToRecycleName: 100000: //RootNode 100002: Body @@ -139,31 +137,42 @@ ModelImporter: 400130: Neo_Spine2 7400000: 85_12 9500000: //RootNode + 2186277476908879412: ImportLogs + externalObjects: {} materials: importMaterials: 1 materialName: 0 materialSearch: 1 + materialLocation: 0 animations: legacyGenerateAnimations: 4 bakeSimulation: 0 resampleCurves: 1 optimizeGameObjects: 0 motionNodeName: + rigImportErrors: + rigImportWarnings: "Copied Avatar Rig Configuration mis-match. Errors found in + old project file will be treated as a warnings. Configuration mis-match will + be ignored, but current Configuration needs to be fixed:\n\tTransform 'Neo_Reference' + not found in HumanDescription.\nCopied Avatar Rig Configuration mis-match. Inbetween + bone rotation in copied configuration does not match rotation in animation file:\n\t'Neo_Spine2' + : rotation error = 1.266238 deg\n" animationImportErrors: - animationImportWarnings: "\nInbetween bone default rotation found in this file - is different from the one found in the source avatar:\n\t'Neo_Spine2' : rotation - error = 1.251687 deg\n\nClip '85_12' has import animation warnings that might + animationImportWarnings: "\nClip '85_12' has import animation warnings that might lower retargeting quality:\nNote: Activate translation DOF on avatar to improve retargeting quality.\n\t'Neo_Spine2' is inbetween humanoid transforms and has rotation animation that will be discarded.\n" animationRetargetingWarnings: animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 animationCompression: 3 animationRotationError: 0.5 animationPositionError: 0.5 animationScaleError: 0.5 animationWrapMode: 0 extraExposedTransformPaths: [] + extraUserProperties: [] clipAnimations: - serializedVersion: 16 name: 85_12 @@ -331,13 +340,18 @@ ModelImporter: globalScale: 1 meshCompression: 0 addColliders: 0 + importVisibility: 0 importBlendShapes: 1 + importCameras: 0 + importLights: 0 swapUVChannels: 0 generateSecondaryUV: 0 useFileUnits: 1 optimizeMeshForGPU: 1 keepQuads: 0 weldVertices: 1 + preserveHierarchy: 0 + indexFormat: 1 secondaryUVAngleDistortion: 8 secondaryUVAreaDistortion: 15.000001 secondaryUVHardAngle: 88 @@ -347,9 +361,11 @@ ModelImporter: normalSmoothAngle: 60 normalImportMode: 0 tangentImportMode: 3 + normalCalculationMode: 0 importAnimation: 1 copyAvatar: 1 humanDescription: + serializedVersion: 2 human: - boneName: Neo_Hips humanName: Hips @@ -521,120 +537,120 @@ ModelImporter: modified: 0 skeleton: - name: Base(Clone) + parentName: position: {x: 0, y: 0, z: 0} rotation: {x: 0, y: 0, z: 0, w: 1} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_Hips + parentName: position: {x: 0.000000023841856, y: 0.9469229, z: -0.09803119} rotation: {x: 0.514734, y: -0.4848184, z: -0.514734, w: 0.4848184} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_LeftUpLeg + parentName: position: {x: 0.040893186, y: 0.004726813, z: 0.09148609} rotation: {x: -0, y: 0, z: 0.9995527, w: -0.029907286} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_LeftLeg + parentName: position: {x: -0.4066052, y: -0.00000010288717, z: 0.000000085830685} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1.0000002, y: 1.0000002, z: 1.0000002} - transformModified: 1 - name: Neo_LeftFoot + parentName: position: {x: -0.44307178, y: -0.00000011197301, z: 0.00000008583067} rotation: {x: -0.00000018290748, y: 0.00000025019085, z: 0.59018934, w: 0.8072649} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_LeftToeBase + parentName: position: {x: -0.12445047, y: -9.436656e-10, z: 0.000000008691233} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_RightUpLeg + parentName: position: {x: 0.040893186, y: 0.004726813, z: -0.09148608} rotation: {x: -9.0349744e-10, y: 0.000000030245893, z: 0.029982578, w: 0.99955046} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_RightLeg + parentName: position: {x: 0.4066052, y: -0.00000001004606, z: -0.000000042149956} rotation: {x: -2.0322612e-13, y: -0.00000004154904, z: -0.000004891235, w: 1} scale: {x: 1.0000001, y: 1.0000001, z: 1.0000001} - transformModified: 1 - name: Neo_RightFoot + parentName: position: {x: 0.44307184, y: -0.000000020713253, z: -0.000000048151225} rotation: {x: -0.000023553679, y: 0.000032231466, z: 0.5901324, w: 0.80730647} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_RightToeBase + parentName: position: {x: 0.12445047, y: 0.0000000014492009, z: 0.000000007638004} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_Spine + parentName: position: {x: -0.0975585, y: 8.049232e-11, z: -2.1661274e-17} rotation: {x: 0, y: 0, z: 0.036113307, w: 0.99934775} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_Spine1 + parentName: position: {x: -0.17136289, y: 0.000000011315119, z: 0.000000005106558} rotation: {x: 0, y: 0, z: 0.0014559262, w: 0.9999989} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_Spine2 + parentName: position: {x: -0.13878137, y: 0.000000017048766, z: -3.4197903e-17} rotation: {x: 0, y: 0, z: 0.0026228526, w: 0.9999966} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_LeftShoulder + parentName: position: {x: -0.13279176, y: -0.01978109, z: 0.0889847} rotation: {x: -0.4060247, y: 0.5789162, z: 0.5704466, w: 0.4178404} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_LeftArm + parentName: position: {x: -0.11870083, y: -0.00000010170189, z: 0.00000000834465} rotation: {x: 0.69243336, y: -0.1433041, z: -0.1433041, w: 0.6924334} scale: {x: 0.99999994, y: 0.99999994, z: 0.99999994} - transformModified: 1 - name: Neo_LeftForeArm + parentName: position: {x: -0.24097936, y: 0.000000020265581, z: 8.5265126e-16} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 0.99999994, y: 0.99999994, z: 0.99999994} - transformModified: 1 - name: Neo_LeftHand + parentName: position: {x: -0.2732065, y: 0.000000022649767, z: 0} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 0.99999994, y: 0.99999994, z: 0.99999994} - transformModified: 1 - name: Neo_Neck + parentName: position: {x: -0.18629074, y: 0.0000000054149853, z: 5.820304e-13} rotation: {x: 0, y: 0, z: -0.1815168, w: 0.9833879} scale: {x: 1.0000002, y: 1.0000001, z: 1.0000002} - transformModified: 1 - name: Neo_Head + parentName: position: {x: -0.13223423, y: -0.000000013813483, z: -0.000000013861569} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1.0000002, y: 1.0000001, z: 1.0000002} - transformModified: 1 - name: Neo_RightShoulder + parentName: position: {x: -0.13279176, y: -0.019781096, z: -0.0889847} rotation: {x: 0.5789163, y: 0.4060247, z: -0.41784036, w: 0.57044655} scale: {x: 1, y: 1, z: 1} - transformModified: 1 - name: Neo_RightArm + parentName: position: {x: 0.11870083, y: 0.00000010170189, z: 0.0000000023841857} rotation: {x: 0.69243324, y: -0.14330453, z: -0.14330444, w: 0.69243336} scale: {x: 1.0000002, y: 1.0000001, z: 1.0000001} - transformModified: 1 - name: Neo_RightForeArm + parentName: position: {x: 0.24097924, y: -0.000000003576278, z: -2.842171e-16} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1.0000002, y: 1.0000001, z: 1.0000001} - transformModified: 1 - name: Neo_RightHand + parentName: position: {x: 0.2732064, y: -0.000000003576278, z: 0.000000013303687} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1.0000002, y: 1.0000001, z: 1.0000001} - transformModified: 1 armTwist: 0.5 foreArmTwist: 0.5 upperLegTwist: 0.5 @@ -643,7 +659,10 @@ ModelImporter: legStretch: 0.05 feetSpacing: 0 rootMotionBoneName: + rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 0 lastHumanDescriptionAvatarSource: {fileID: 9000000, guid: 06e286c09d18d0649b1bd0d731f9903f, type: 3} animationType: 3 diff --git a/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane.mat b/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane.mat new file mode 100644 index 0000000..8e8f918 --- /dev/null +++ b/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane.mat @@ -0,0 +1,322 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Mat_refraction_plane + m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3} + m_ShaderKeywords: SSRAY_REFRACTION_HIZ _BLENDMODE_ALPHA _BLENDMODE_PRESERVE_SPECULAR_LIGHTING + _ENABLE_FOG_ON_TRANSPARENT _NORMALMAP_TANGENT_SPACE _REFRACTION_PLANE _SURFACE_TYPE_TRANSPARENT + m_LightmapFlags: 1 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3000 + stringTagMap: + RenderType: Transparent + disabledShaderPasses: + - DistortionVectors + - TransparentBackfaceDebugDisplay + - TransparentDepthPrepass + - TransparentDepthPostpass + - TransparentBackface + - MOTIONVECTORS + 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} + - _BumpMap: + 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} + - _DetailAlbedoMap: + 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} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DiffuseLightingMap: + 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} + - _EmissionMap: + 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} + - _MetallicGlossMap: + 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} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + 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} + - _SpecularOcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SubSurfaceRadiusMap: + 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} + - _SubsurfaceRadiusMap: + 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: 1e+15 + - _AlbedoAffectEmissive: 0 + - _AlphaCutoff: 0.5 + - _AlphaCutoffEnable: 0 + - _AlphaCutoffPostpass: 0.5 + - _AlphaCutoffPrepass: 0.5 + - _Anisotropy: 0 + - _BlendMode: 0 + - _BumpScale: 1 + - _CoatCoverage: 1 + - _CoatIOR: 0.5 + - _CoatMask: 0 + - _CullMode: 2 + - _CullModeForward: 2 + - _Cutoff: 0.5 + - _DepthOffsetEnable: 0 + - _DetailAlbedoScale: 1 + - _DetailNormalMapScale: 1 + - _DetailNormalScale: 1 + - _DetailSmoothnessScale: 1 + - _DiffusionProfile: 0 + - _DisplacementLockObjectScale: 1 + - _DisplacementLockTilingScale: 1 + - _DisplacementMode: 0 + - _DistortionBlendMode: 0 + - _DistortionBlurBlendMode: 0 + - _DistortionBlurDstBlend: 1 + - _DistortionBlurRemapMax: 1 + - _DistortionBlurRemapMin: 0 + - _DistortionBlurScale: 1 + - _DistortionBlurSrcBlend: 1 + - _DistortionDepthTest: 0 + - _DistortionDstBlend: 1 + - _DistortionEnable: 0 + - _DistortionOnly: 0 + - _DistortionScale: 1 + - _DistortionSrcBlend: 1 + - _DistortionVectorBias: -1 + - _DistortionVectorScale: 2 + - _DoubleSidedEnable: 0 + - _DoubleSidedMirrorEnable: 1 + - _DoubleSidedMode: 0 + - _DoubleSidedNormalMode: 1 + - _Drag: 1 + - _DstBlend: 10 + - _EmissiveColorMode: 1 + - _EmissiveIntensity: 0 + - _EnableBlendModePreserveSpecularLighting: 1 + - _EnableFogOnTransparent: 1 + - _EnableMotionVectorForVertexAnimation: 0 + - _EnablePerPixelDisplacement: 0 + - _EnableSpecularOcclusion: 0 + - _EnableVertexDisplacement: 0 + - _EnableWind: 0 + - _EnergyConservingSpecularColor: 1 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _HeightAmplitude: 0.02 + - _HeightBias: 0 + - _HeightCenter: 0.5 + - _HeightMapMode: 0 + - _HeightMapParametrization: 1 + - _HeightMax: 1 + - _HeightMin: -1 + - _HeightOffset: 0 + - _HeightPoMAmplitude: 2 + - _HeightScale: 1 + - _HeightTessAmplitude: 2 + - _HeightTessCenter: 0.5 + - _HorizonFade: 1 + - _IOR: 1.01 + - _InitialBend: 1 + - _InvTilingScale: 1 + - _Ior: 2.5 + - _IridescenceMask: 1 + - _IridescenceThickness: 1 + - _LinkDetailsWithBase: 1 + - _MaterialID: 1 + - _Metalic: 1 + - _Metallic: 0.04 + - _Mode: 0 + - _NormalMapSpace: 0 + - _NormalScale: 1 + - _OcclusionStrength: 1 + - _PPDLodThreshold: 5 + - _PPDMaxSamples: 15 + - _PPDMinSamples: 5 + - _PPDPrimitiveLength: 1 + - _PPDPrimitiveWidth: 1 + - _Parallax: 0.02 + - _PerPixelDisplacementObjectScale: 1 + - _PreRefractionPass: 0 + - _PreTransparentPass: 0 + - _RefractionAbsorptionEnable: 0 + - _RefractionEnable: 0 + - _RefractionMode: 1 + - _RoughRefractionEnable: 1 + - _SSRayDepthSuccessBias: 0.2 + - _SSRayMaxIterations: 1024 + - _SSRayMaxLevel: 8 + - _SSRayMinLevel: 2 + - _SSRayRefractionMethod: 0 + - _SSSAndTransmissionType: 0 + - _ShiverDirectionality: 0.5 + - _ShiverDrag: 0.2 + - _Smoothness: 0.862 + - _SmoothnessRemapMax: 0.9999999 + - _SmoothnessRemapMin: 0 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _StencilRef: 2 + - _StencilRefMV: 128 + - _StencilWriteMask: 7 + - _StencilWriteMaskMV: 128 + - _Stiffness: 1 + - _SubSurfaceRadius: 0 + - _SubsurfaceMask: 1 + - _SubsurfaceProfile: 0 + - _SubsurfaceRadius: 1 + - _SupportDBuffer: 1 + - _SurfaceType: 1 + - _TexWorldScale: 1 + - _TexWorldScaleEmissive: 1 + - _Thickness: 1 + - _ThicknessMultiplier: 1 + - _TransmissionEnable: 1 + - _TransparentBackfaceEnable: 0 + - _TransparentDepthPostpassEnable: 0 + - _TransparentDepthPrepassEnable: 0 + - _TransparentSortPriority: 0 + - _UVBase: 0 + - _UVDetail: 0 + - _UVEmissive: 0 + - _UVMappingPlanar: 0 + - _UVSec: 0 + - _VertexDisplacementObjectScale: 1 + - _VertexDisplacementTilingScale: 1 + - _ZTestDepthEqualForOpaque: 4 + - _ZTestGBuffer: 4 + - _ZTestMode: 8 + - _ZTestModeDistortion: 8 + - _ZWrite: 0 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 0} + - _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _EmissiveColor: {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} + - _RefractionAbsorption: {r: 0, g: 0, b: 0, a: 1} + - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} + - _ThicknessRemap: {r: 0, g: 1, b: 0, a: 0} + - _TransmittanceColor: {r: 0.816, g: 0.6632562, b: 0.374544, 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} diff --git a/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane.mat.meta b/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane.mat.meta new file mode 100644 index 0000000..868c973 --- /dev/null +++ b/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dcead4c0f768dbf409c597b4902f062e +timeCreated: 1448039507 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere.mat b/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere.mat new file mode 100644 index 0000000..a2103be --- /dev/null +++ b/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere.mat @@ -0,0 +1,322 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Mat_refraction_sphere + m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3} + m_ShaderKeywords: SSRAY_REFRACTION_ESTIMATE _BLENDMODE_ALPHA _BLENDMODE_PRESERVE_SPECULAR_LIGHTING + _ENABLE_FOG_ON_TRANSPARENT _NORMALMAP_TANGENT_SPACE _REFRACTION_SPHERE _SURFACE_TYPE_TRANSPARENT + m_LightmapFlags: 1 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3000 + stringTagMap: + RenderType: Transparent + disabledShaderPasses: + - DistortionVectors + - TransparentBackfaceDebugDisplay + - TransparentDepthPrepass + - TransparentDepthPostpass + - TransparentBackface + - MOTIONVECTORS + 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} + - _BumpMap: + 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} + - _DetailAlbedoMap: + 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} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DiffuseLightingMap: + 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} + - _EmissionMap: + 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} + - _MetallicGlossMap: + 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} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + 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} + - _SpecularOcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SubSurfaceRadiusMap: + 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} + - _SubsurfaceRadiusMap: + 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: 1e+15 + - _AlbedoAffectEmissive: 0 + - _AlphaCutoff: 0.5 + - _AlphaCutoffEnable: 0 + - _AlphaCutoffPostpass: 0.5 + - _AlphaCutoffPrepass: 0.5 + - _Anisotropy: 0 + - _BlendMode: 0 + - _BumpScale: 1 + - _CoatCoverage: 1 + - _CoatIOR: 0.5 + - _CoatMask: 0 + - _CullMode: 2 + - _CullModeForward: 2 + - _Cutoff: 0.5 + - _DepthOffsetEnable: 0 + - _DetailAlbedoScale: 1 + - _DetailNormalMapScale: 1 + - _DetailNormalScale: 1 + - _DetailSmoothnessScale: 1 + - _DiffusionProfile: 0 + - _DisplacementLockObjectScale: 1 + - _DisplacementLockTilingScale: 1 + - _DisplacementMode: 0 + - _DistortionBlendMode: 0 + - _DistortionBlurBlendMode: 0 + - _DistortionBlurDstBlend: 1 + - _DistortionBlurRemapMax: 1 + - _DistortionBlurRemapMin: 0 + - _DistortionBlurScale: 1 + - _DistortionBlurSrcBlend: 1 + - _DistortionDepthTest: 0 + - _DistortionDstBlend: 1 + - _DistortionEnable: 0 + - _DistortionOnly: 0 + - _DistortionScale: 1 + - _DistortionSrcBlend: 1 + - _DistortionVectorBias: -1 + - _DistortionVectorScale: 2 + - _DoubleSidedEnable: 0 + - _DoubleSidedMirrorEnable: 1 + - _DoubleSidedMode: 0 + - _DoubleSidedNormalMode: 1 + - _Drag: 1 + - _DstBlend: 10 + - _EmissiveColorMode: 1 + - _EmissiveIntensity: 0 + - _EnableBlendModePreserveSpecularLighting: 1 + - _EnableFogOnTransparent: 1 + - _EnableMotionVectorForVertexAnimation: 0 + - _EnablePerPixelDisplacement: 0 + - _EnableSpecularOcclusion: 0 + - _EnableVertexDisplacement: 0 + - _EnableWind: 0 + - _EnergyConservingSpecularColor: 1 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _HeightAmplitude: 0.02 + - _HeightBias: 0 + - _HeightCenter: 0.5 + - _HeightMapMode: 0 + - _HeightMapParametrization: 1 + - _HeightMax: 1 + - _HeightMin: -1 + - _HeightOffset: 0 + - _HeightPoMAmplitude: 2 + - _HeightScale: 1 + - _HeightTessAmplitude: 2 + - _HeightTessCenter: 0.5 + - _HorizonFade: 1 + - _IOR: 1.01 + - _InitialBend: 1 + - _InvTilingScale: 1 + - _Ior: 2.276 + - _IridescenceMask: 1 + - _IridescenceThickness: 1 + - _LinkDetailsWithBase: 1 + - _MaterialID: 1 + - _Metalic: 1 + - _Metallic: 0.04 + - _Mode: 0 + - _NormalMapSpace: 0 + - _NormalScale: 1 + - _OcclusionStrength: 1 + - _PPDLodThreshold: 5 + - _PPDMaxSamples: 15 + - _PPDMinSamples: 5 + - _PPDPrimitiveLength: 1 + - _PPDPrimitiveWidth: 1 + - _Parallax: 0.02 + - _PerPixelDisplacementObjectScale: 1 + - _PreRefractionPass: 0 + - _PreTransparentPass: 0 + - _RefractionAbsorptionEnable: 0 + - _RefractionEnable: 0 + - _RefractionMode: 2 + - _RoughRefractionEnable: 1 + - _SSRayDepthSuccessBias: 0.2 + - _SSRayMaxIterations: 1024 + - _SSRayMaxLevel: 6 + - _SSRayMinLevel: 1 + - _SSRayRefractionMethod: 2 + - _SSSAndTransmissionType: 0 + - _ShiverDirectionality: 0.5 + - _ShiverDrag: 0.2 + - _Smoothness: 1 + - _SmoothnessRemapMax: 0.9999999 + - _SmoothnessRemapMin: 0 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _StencilRef: 2 + - _StencilRefMV: 128 + - _StencilWriteMask: 7 + - _StencilWriteMaskMV: 128 + - _Stiffness: 1 + - _SubSurfaceRadius: 0 + - _SubsurfaceMask: 1 + - _SubsurfaceProfile: 0 + - _SubsurfaceRadius: 1 + - _SupportDBuffer: 1 + - _SurfaceType: 1 + - _TexWorldScale: 1 + - _TexWorldScaleEmissive: 1 + - _Thickness: 0.747 + - _ThicknessMultiplier: 1 + - _TransmissionEnable: 1 + - _TransparentBackfaceEnable: 0 + - _TransparentDepthPostpassEnable: 0 + - _TransparentDepthPrepassEnable: 0 + - _TransparentSortPriority: 0 + - _UVBase: 0 + - _UVDetail: 0 + - _UVEmissive: 0 + - _UVMappingPlanar: 0 + - _UVSec: 0 + - _VertexDisplacementObjectScale: 1 + - _VertexDisplacementTilingScale: 1 + - _ZTestDepthEqualForOpaque: 4 + - _ZTestGBuffer: 4 + - _ZTestMode: 8 + - _ZTestModeDistortion: 8 + - _ZWrite: 0 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 0} + - _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _EmissiveColor: {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} + - _RefractionAbsorption: {r: 0, g: 0, b: 0, a: 1} + - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} + - _ThicknessRemap: {r: 0, g: 1, b: 0, a: 0} + - _TransmittanceColor: {r: 0.816, g: 0.6632562, b: 0.374544, 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} diff --git a/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere.mat.meta b/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere.mat.meta new file mode 100644 index 0000000..5e0aebb --- /dev/null +++ b/SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 21c66bcf940c90f4e9d720933aca92ee +timeCreated: 1448039507 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/SampleScenes/HDTest/HDRenderPipelineAsset_HDReflection.asset b/SampleScenes/HDTest/HDRenderPipelineAsset_HDReflection.asset new file mode 100644 index 0000000..108aea7 --- /dev/null +++ b/SampleScenes/HDTest/HDRenderPipelineAsset_HDReflection.asset @@ -0,0 +1,86 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cf1dab834d4ec34195b920ea7bbf9ec, type: 3} + m_Name: HDRenderPipelineAsset_HDReflection + m_EditorClassIdentifier: + m_RenderPipelineResources: {fileID: 11400000, guid: 3ce144cff5783da45aa5d4fdc2da14b7, + type: 2} + m_FrameSettings: + enableShadow: 1 + enableContactShadows: 1 + enableSSR: 1 + enableSSAO: 1 + enableSubsurfaceScattering: 1 + enableTransmission: 1 + diffuseGlobalDimmer: 1 + specularGlobalDimmer: 1 + enableForwardRenderingOnly: 0 + enableDepthPrepassWithDeferredRendering: 0 + enableTransparentPrepass: 1 + enableMotionVectors: 1 + enableObjectMotionVectors: 1 + enableDBuffer: 1 + enableAtmosphericScattering: 1 + enableRoughRefraction: 1 + enableTransparentPostpass: 1 + enableDistortion: 1 + enablePostprocess: 1 + enableStereo: 1 + enableAsyncCompute: 0 + enableOpaqueObjects: 1 + enableTransparentObjects: 1 + enableMSAA: 0 + enableShadowMask: 0 + lightLoopSettings: + enableTileAndCluster: 1 + enableComputeLightEvaluation: 1 + enableComputeLightVariants: 1 + enableComputeMaterialVariants: 1 + enableFptlForForwardOpaque: 1 + enableBigTilePrepass: 1 + isFptlEnabled: 1 + screenSpaceFallbackNDCThreshold: 0.1 + renderPipelineSettings: + supportShadowMask: 0 + supportSSR: 1 + supportSSAO: 1 + supportSubsurfaceScattering: 1 + supportForwardOnly: 0 + enableUltraQualitySSS: 0 + supportDBuffer: 1 + supportMSAA: 0 + msaaSampleCount: 1 + supportMotionVectors: 1 + supportStereo: 0 + lightLoopSettings: + cookieSize: 128 + cookieTexArraySize: 16 + pointCookieSize: 512 + cubeCookieTexArraySize: 16 + reflectionProbeCacheSize: 128 + planarReflectionProbeCacheSize: 128 + reflectionCubemapSize: 512 + planarReflectionTextureSize: 1024 + reflectionCacheCompressed: 0 + planarReflectionCacheCompressed: 0 + maxPlanarReflectionProbes: 128 + skyReflectionSize: 256 + skyLightingOverrideLayerMask: + serializedVersion: 2 + m_Bits: 256 + shadowInitParams: + shadowAtlasWidth: 4096 + shadowAtlasHeight: 4096 + decalSettings: + drawDistance: 1000 + atlasSize: 8192 + diffusionProfileSettings: {fileID: 11400000, guid: 404820c4cf36ad944862fa59c56064f0, + type: 2} diff --git a/SampleScenes/HDTest/HDRenderPipelineAsset_HDReflection.asset.meta b/SampleScenes/HDTest/HDRenderPipelineAsset_HDReflection.asset.meta new file mode 100644 index 0000000..a09a6e3 --- /dev/null +++ b/SampleScenes/HDTest/HDRenderPipelineAsset_HDReflection.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3544fd74ae19395438640569267f8823 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: