浏览代码

Merge pull request #1918 from Unity-Technologies/lw/light-attenuation-test-scene

Lw/light attenuation test scene
/main
GitHub 6 年前
当前提交
cfe04a9f
共有 15 个文件被更改,包括 2798 次插入0 次删除
  1. 3
      TestProjects/LWGraphicsTest/ProjectSettings/EditorBuildSettings.asset
  2. 88
      com.unity.testing.srp.lightweight/Tests/CommonAssets/Materials/Matte.mat
  3. 8
      com.unity.testing.srp.lightweight/Tests/CommonAssets/Materials/Matte.mat.meta
  4. 251
      com.unity.testing.srp.lightweight/Tests/ReferenceImages/Linear/OSXEditor/Metal/055_Lighting_Attenuation_Spot_Point.png
  5. 88
      com.unity.testing.srp.lightweight/Tests/ReferenceImages/Linear/OSXEditor/Metal/055_Lighting_Attenuation_Spot_Point.png.meta
  6. 152
      com.unity.testing.srp.lightweight/Tests/ReferenceImages/Linear/WindowsEditor/Direct3D11/055_Lighting_Attenuation_Spot_Point.png
  7. 88
      com.unity.testing.srp.lightweight/Tests/ReferenceImages/Linear/WindowsEditor/Direct3D11/055_Lighting_Attenuation_Spot_Point.png.meta
  8. 8
      com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point.meta
  9. 1001
      com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point.unity
  10. 7
      com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point.unity.meta
  11. 7
      com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point/LightingData.asset
  12. 8
      com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point/LightingData.asset.meta
  13. 1001
      com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point/Lightmap-0_comp_light.exr
  14. 88
      com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point/Lightmap-0_comp_light.exr.meta

3
TestProjects/LWGraphicsTest/ProjectSettings/EditorBuildSettings.asset


- enabled: 1
path: Packages/com.unity.testing.srp.lightweight/Tests/Scenes/054_Lighting_Attenuation.unity
guid: 93a99004f07ca6f4dbbc9ccb319c7698
- enabled: 1
path: Packages/com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point.unity
guid: 362b9a0c21a9b4e798504044c7604e80
m_configObjects: {}

88
com.unity.testing.srp.lightweight/Tests/CommonAssets/Materials/Matte.mat


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Matte
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
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}
- _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}
- _EmissionMap:
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}
- _MetallicGlossMap:
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}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 1
- _GlossyReflections: 1
- _Metallic: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _ReceiveShadows: 1
- _SampleGI: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _UVSec: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}

8
com.unity.testing.srp.lightweight/Tests/CommonAssets/Materials/Matte.mat.meta


fileFormatVersion: 2
guid: bf226724c6bd04230bf6088bc6034242
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

251
com.unity.testing.srp.lightweight/Tests/ReferenceImages/Linear/OSXEditor/Metal/055_Lighting_Attenuation_Spot_Point.png

之前 之后
宽度: 640  |  高度: 360  |  大小: 55 KiB

88
com.unity.testing.srp.lightweight/Tests/ReferenceImages/Linear/OSXEditor/Metal/055_Lighting_Attenuation_Spot_Point.png.meta


fileFormatVersion: 2
guid: 90e09d8eb62d8344892528234b07e809
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 1
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

152
com.unity.testing.srp.lightweight/Tests/ReferenceImages/Linear/WindowsEditor/Direct3D11/055_Lighting_Attenuation_Spot_Point.png

之前 之后
宽度: 640  |  高度: 360  |  大小: 56 KiB

88
com.unity.testing.srp.lightweight/Tests/ReferenceImages/Linear/WindowsEditor/Direct3D11/055_Lighting_Attenuation_Spot_Point.png.meta


fileFormatVersion: 2
guid: a2e365c2852999f4aa0515527155bcdb
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 1
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

8
com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point.meta


fileFormatVersion: 2
guid: a42c8cf86f9beff45ab4fb2c6e22033c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1001
com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point.unity
文件差异内容过多而无法显示
查看文件

7
com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point.unity.meta


fileFormatVersion: 2
guid: 362b9a0c21a9b4e798504044c7604e80
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

7
com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point/LightingData.asset


5�9�62018.3.0a11�������-%)oZæu���_��7���������� E� ��"�.�+�4a� ��"�.�+���r� ��" �.�+
�H������� �1�1����� @��� Q�j�IX�����_z�������������1�1�����@����j�P������������������������0������" ��&!��*"��.#��2$��6%��:&��>'��B(��F)��J����*�1�1�����+@���,��j� - ��U. ��W/ ��Y0 ��[����1�1�1�����2@���3gj�4u}5���6���7���8���9���:���;���<���=���>���?���@���A���B���C��D��E��F��#G��*����H�1�1�����I@���J��j� K ��UL ��WM ��YN ��6����O1�1�����P���Q�j�Ru��S���T���U���V���W���X���Y���Z���[���\���]���^���_���`���a��b��c��
�d��[����e�1�1�����f@���goj�lh���i���j���k���l���m���n���o���p���q���r���s���t���u���v���w���x���y���z��{�� |��}��~����%���,���3���:���A������1�1������@����Wj������;�k�����1�1������������j��;�������1�1������������j��;�������1�1����������5�j��LightProbesPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>LightProbeDatam_DataProbeSetTetrahedralizationm_Tetrahedralizationm_TetrahedraTetrahedronindices[0]indices[1]indices[2]indices[3]neighbors[0]neighbors[1]neighbors[2]neighbors[3]Matrix3x4fmatrixe00e01e02e03e10e11e12e13e20e21e22e23m_HullRaysxyzm_ProbeSetsProbeSetIndexHash128m_Hashbytes[0]bytes[1]bytes[2]bytes[3]bytes[4]bytes[5]bytes[6]bytes[7]bytes[8]bytes[9]bytes[10]bytes[11]bytes[12]bytes[13]bytes[14]bytes[15]m_Offsetm_Sizem_Positionsm_NonTetrahedralizedProbeSetIndexMapm_BakedCoefficientsSphericalHarmonicsL2sh[ 0]sh[ 1]sh[ 2]sh[ 3]sh[ 4]sh[ 5]sh[ 6]sh[ 7]sh[ 8]sh[ 9]sh[10]sh[11]sh[12]sh[13]sh[14]sh[15]sh[16]sh[17]sh[18]sh[19]sh[20]sh[21]sh[22]sh[23]sh[24]sh[25]sh[26]m_BakedLightOcclusionLightProbeOcclusionm_ProbeOcclusionLightIndexm_Occlusionm_OcclusionMaskChannel`���I���]�O楃_���5�7����������E� ��(�.�1�:a� ��(�.�1���r� ��( �.�1
�H������� �1�1����� @��� Q�j�O` ��(�.�1���h�����1�1�����@���tj�$��� ��(�.�1���� ��(�.�1���� ��(�.�1���������1�1����� ����!H�j�����"�1�1�����#@���$Q�j�%�� &��('�.�1(����)�l*��+��%,��,-��3.��:/��A0��H1��O2��V3��]4��d5��k6��r7��y8���9���:���;���<���=���>���?���@���A���B���C���D���E�������F�1�1�����G@���H�j�`I  J��(K�.�1L���M ��'N ��)O ��+P ��-Q ��/R ��'S ��)T ��+U ��-V ��GW��UX��jY ��'Z ��)[ ��+\ ��-] ��u^ ��'_ ��)` ��+a ��-b ��c���d���e���f���g���h���i���j���k���l���m���n��o��p��q��&r��0s��:����t�1�1�����u@���vWj�w.�mx.�zy������z��������{�1�1�����|@���}�j�@~y�� ��(��.�1������ ��'� ��)� ��+� ��-� ����
��������������������������������������������������������&���0�������������������������������������������������������������������������&����0����$������1�1������@����.j�4���I���W���d���o���|�����������������������������������������������������������&���0�����������������������������������������������������������&���0����������1�1������@�����j���������������������������������������������������������&���0����������1�1������@�����j����������������������������������������������������������������&���0������� �����1�1�����@���j� �����=��J��W�����1�1�����@��� Wj�
.�m .�z ��z���� �1�1�����@���Wj�.�m.�z��������1�1����������j��������������� L�@��%�����1�1���������H�j����� �1�1�����!@���"Q�j�#��M����$�1�1�����%@���&��j� '��((�.�1)���l����*�1�1�����+@���,Wj�-.�m..�z/�������0�1�1�����1@���2��j�3���4LightingDataAssetPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>PPtr<SceneAsset>m_Scenem_LightmapsLightmapDatam_Lightmapm_DirLightmapm_ShadowMaskm_LightmapsCacheFilesPPtr<LightProbes>m_LightProbesm_LightmapsModeSphericalHarmonicsL2m_BakedAmbientProbeInLinearsh[ 0]sh[ 1]sh[ 2]sh[ 3]sh[ 4]sh[ 5]sh[ 6]sh[ 7]sh[ 8]sh[ 9]sh[10]sh[11]sh[12]sh[13]sh[14]sh[15]sh[16]sh[17]sh[18]sh[19]sh[20]sh[21]sh[22]sh[23]sh[24]sh[25]sh[26]m_LightmappedRendererDataRendererDataPPtr<Mesh>uvMeshterrainDynamicUVSTxyzwterrainChunkDynamicUVSTlightmapIndexlightmapIndexDynamiclightmapSTlightmapSTDynamicHash128explicitProbeSetHashbytes[0]bytes[1]bytes[2]bytes[3]bytes[4]bytes[5]bytes[6]bytes[7]bytes[8]bytes[9]bytes[10]bytes[11]bytes[12]bytes[13]bytes[14]bytes[15]m_LightmappedRendererDataIDsSceneObjectIdentifiertargetObjecttargetPrefabEnlightenSceneMappingm_EnlightenSceneMappingm_RenderersEnlightenRendererInformationrendererdynamicLightmapSTInSystemsystemIdinstanceHashgeometryHashm_SystemsEnlightenSystemInformationrendererIndexrendererSizeatlasIndexatlasOffsetXatlasOffsetYinputSystemHashradiositySystemHashm_Probesetsm_SystemAtlasesEnlightenSystemAtlasInformationatlasSizeatlasHashfirstSystemIdm_TerrainChunksEnlightenTerrainChunksInformationnumChunksInXnumChunksInYm_EnlightenSceneMappingRendererIDsm_Lightsm_LightBakingOutputsLightBakingOutputprobeOcclusionLightIndexocclusionMaskChannelLightmapBakeModelightmapBakeModelightmapBakeTypemixedLightingModeisBakedm_BakedReflectionProbeCubemapCacheFilesm_BakedReflectionProbeCubemapsm_BakedReflectionProbesm_EnlightenDatam_EnlightenDataVersion@��T��Xhc����K~�D|������`E�I��z�� LightingData LightingData !"��*@���?�?�?�?����>��>�?�?�?�?�?�?����>��>�>�?�?���8�".3K� :1!�)�+0��_J��ar�cnz��������������������������������<UnityFS5.x.x2018.3.0a11<
�Pp

8
com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point/LightingData.asset.meta


fileFormatVersion: 2
guid: d31e59a690c5e0b4faa520c1b7185db3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 25800000
userData:
assetBundleName:
assetBundleVariant:

1001
com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point/Lightmap-0_comp_light.exr
文件差异内容过多而无法显示
查看文件

88
com.unity.testing.srp.lightweight/Tests/Scenes/055_Lighting_Attenuation_Spot_Point/Lightmap-0_comp_light.exr.meta


fileFormatVersion: 2
guid: 1fdebb7ec1ae0654b894fadea7dd708c
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 1
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 3
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 0
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 6
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 2
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存