浏览代码
Updated LWRP tests, fixed shadow cascades (#1808)
Updated LWRP tests, fixed shadow cascades (#1808)
* Init push -Updated existing tests, simplified and compressed -Added new tests, many more, to cover missing coverage and prepare for upcoming features -Compressed Images to save space -Removed duplicate or unused assets * Added Shadergraph test scene Tweaked existing material files * Updated missing prefabs (due to nested prefabs) Added all OSX Metal reference images * Fixed issue with test 050_shader_graphs where the UVs broke in playmode * Updated Build List * Added check for only enabled scenes in the build menu, this will help avoid issues running tests not in the build and also easily be able to disable tests if needed * Tweaked tests Added OSXEditor Metal reference images Added WindowsEditor DX11 reference images * Fix shadow cascade issue that was due to cut and paste error lol * Updated cascade test with correct references Updated Adam prefab to nested prefabs * Update windowsEditor DX11 .../main
Tim Cooper
6 年前
当前提交
5380179a
共有 705 个文件被更改,包括 10249 次插入 和 17546 次删除
-
10TestProjects/LWGraphicsTest/Assets/CommonAssets/Materials/LDpipe_targetTex.mat
-
46TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/ConvertedSubstances/IndustrialGlass/IndustrialGlass_metallic.tif.meta
-
47TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/ConvertedSubstances/rocks_dirt_ground/rocks_dirt_ground_basecolor.tif.meta
-
58TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/ScifiFloor_Spec.tif.meta
-
6TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/CeramicTiles.mat
-
6TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/Challenge-Brick.mat
-
14TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/Hole_mesh.mat
-
16TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/IndustrialGlass.mat
-
6TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/PW_WoodLog.mat
-
6TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/Pyramids Wall - v01.mat
-
6TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/bark.mat
-
9TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/herringbone_brick_floor.mat
-
6TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/metal_aluminium_directional.mat
-
6TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/metal_brushed_copper.mat
-
6TestProjects/LWGraphicsTest/Assets/CommonAssets/Textures/SubstancesMats/red_paint.mat
-
2TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal.meta
-
99TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/001_SimpleCube.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/001_SimpleCube.png.meta
-
638TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/005_LitBakedEmission.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/005_LitBakedEmission.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/006_LitShaderLightProbes.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/006_LitShaderLightProbes.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/007_LitShaderMaps.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/007_LitShaderMaps.png.meta
-
131TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/011_UnlitSprites.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/011_UnlitSprites.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/012_PBS_EnvironmentBRDF_Spheres.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/012_PBS_EnvironmentBRDF_Spheres.png.meta
-
521TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/016_Lighting_Scene_Directional.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/016_Lighting_Scene_Directional.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/017_Lighting_Scene_DirectionalBaked.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/017_Lighting_Scene_DirectionalBaked.png.meta
-
803TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/020_Lighting_BasicDirectional.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/020_Lighting_BasicDirectional.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/021_Lighting_BasicPoint.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/021_Lighting_BasicPoint.png.meta
-
917TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/022_Lighting_BasicSpot.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/022_Lighting_BasicSpot.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/026_Shader_PBRscene.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/026_Shader_PBRscene.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/035_Shader_TerrainShaders.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/035_Shader_TerrainShaders.png.meta
-
28TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/045_CustomLWPipe.png
-
2TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/045_CustomLWPipe.png.meta
-
881TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/037_Particles_Standard.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/002_Camera_Clip.png.meta
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/003_Camera_Ortho.png.meta
-
775TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/005_LitBakedEmission.png
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/006_LitShaderLightProbes.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/006_LitShaderLightProbes.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/007_LitShaderMaps.png
-
137TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/011_UnlitSprites.png
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/012_PBS_EnvironmentBRDF_Spheres.png
-
540TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/016_Lighting_Scene_Directional.png
-
6TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/016_Lighting_Scene_Directional.png.meta
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/017_Lighting_Scene_DirectionalBaked.png
-
779TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/020_Lighting_BasicDirectional.png
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/021_Lighting_BasicPoint.png
-
814TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/022_Lighting_BasicSpot.png
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/026_Shader_PBRscene.png
-
999TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/035_Shader_TerrainShaders.png
-
11TestProjects/LWGraphicsTest/Assets/Scenes/001_SimpleCube.unity
-
8TestProjects/LWGraphicsTest/Assets/Scenes/001_SimpleCube/001_SimpleCube.mat
-
108TestProjects/LWGraphicsTest/Assets/Scenes/002_Camera_Clip.unity
-
103TestProjects/LWGraphicsTest/Assets/Scenes/003_Camera_Ortho.unity
-
334TestProjects/LWGraphicsTest/Assets/Scenes/004_Camera_TargetTexture.unity
-
10TestProjects/LWGraphicsTest/Assets/Scenes/004_Camera_TargetTexture/004_CameraTargetTextureSphere.mat
-
29TestProjects/LWGraphicsTest/Assets/Scenes/005_LitBakedEmission.unity
-
17TestProjects/LWGraphicsTest/Assets/Scenes/005_LitBakedEmission/005_LitBakeEmission_Sphere.mat
-
12TestProjects/LWGraphicsTest/Assets/Scenes/005_LitBakedEmission/LightingData.asset
-
2TestProjects/LWGraphicsTest/Assets/Scenes/005_LitBakedEmission/LightingData.asset.meta
-
1001TestProjects/LWGraphicsTest/Assets/Scenes/005_LitBakedEmission/Lightmap-0_comp_light.exr
-
427TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes.unity
-
6TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes/006_LitShaderLightProbes_Sphere.mat
-
91TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes/LightingData.asset
-
2TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes/LightingData.asset.meta
-
1001TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes/Lightmap-0_comp_light.exr
-
23TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes/Lightmap-0_comp_light.exr.meta
-
104TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps.unity
-
27TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/007_LitShaderMaps_01_BaseWhite.mat
-
12TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/007_LitShaderMaps_02_BaseColor.mat
-
14TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/007_LitShaderMaps_03_Specular.mat
-
14TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/007_LitShaderMaps_04_Normal.mat
-
12TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/007_LitShaderMaps_05_Emission.mat
-
19TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/007_LitShaderMaps_06_All.mat
-
10TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/007_LitShaderMaps_UnlitMatTexture_08.mat
-
27TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/007_LitShaderMaps_UnlitMat_07.mat
-
5TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/LightingData.asset
-
878TestProjects/LWGraphicsTest/Assets/Scenes/011_UnlitSprites.unity
-
1TestProjects/LWGraphicsTest/Assets/Scenes/011_UnlitSprites/Scripts/Oscilate.cs
-
35TestProjects/LWGraphicsTest/Assets/Scenes/012_PBS_EnvironmentBRDF_Spheres.unity
-
11TestProjects/LWGraphicsTest/Assets/Scenes/012_PBS_EnvironmentBRDF_Spheres/LightingData.asset
-
2TestProjects/LWGraphicsTest/Assets/Scenes/012_PBS_EnvironmentBRDF_Spheres/LightingData.asset.meta
-
651TestProjects/LWGraphicsTest/Assets/Scenes/013_CameraMulti_Splitscreen.unity
-
6TestProjects/LWGraphicsTest/Assets/Scenes/013_CameraMulti_Splitscreen/LightingData.asset
-
2TestProjects/LWGraphicsTest/Assets/Scenes/013_CameraMulti_Splitscreen/LightingData.asset.meta
-
1001TestProjects/LWGraphicsTest/Assets/Scenes/013_CameraMulti_Splitscreen/ReflectionProbe-0.exr
-
55TestProjects/LWGraphicsTest/Assets/Scenes/013_CameraMulti_Splitscreen/Scripts/AutoSizeGrid.cs
-
321TestProjects/LWGraphicsTest/Assets/Scenes/014_CameraMulti_MiniMap.unity
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/006_LitShaderLightProbes.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/007_LitShaderMaps.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/012_PBS_EnvironmentBRDF_Spheres.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/017_Lighting_Scene_DirectionalBaked.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/021_Lighting_BasicPoint.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/026_Shader_PBRscene.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/OSXEditor/Metal/035_Shader_TerrainShaders.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/006_LitShaderLightProbes.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/007_LitShaderMaps.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/012_PBS_EnvironmentBRDF_Spheres.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/017_Lighting_Scene_DirectionalBaked.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/021_Lighting_BasicPoint.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/026_Shader_PBRscene.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/LWGraphicsTest/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/035_Shader_TerrainShaders.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
12
TestProjects/LWGraphicsTest/Assets/Scenes/005_LitBakedEmission/LightingData.asset
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
1001
TestProjects/LWGraphicsTest/Assets/Scenes/005_LitBakedEmission/Lightmap-0_comp_light.exr
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
427
TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
91
TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes/LightingData.asset
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
1001
TestProjects/LWGraphicsTest/Assets/Scenes/006_LitShaderLightProbes/Lightmap-0_comp_light.exr
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
5
TestProjects/LWGraphicsTest/Assets/Scenes/007_LitShaderMaps/LightingData.asset
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
878
TestProjects/LWGraphicsTest/Assets/Scenes/011_UnlitSprites.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
11
TestProjects/LWGraphicsTest/Assets/Scenes/012_PBS_EnvironmentBRDF_Spheres/LightingData.asset
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
651
TestProjects/LWGraphicsTest/Assets/Scenes/013_CameraMulti_Splitscreen.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
6
TestProjects/LWGraphicsTest/Assets/Scenes/013_CameraMulti_Splitscreen/LightingData.asset
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
1001
TestProjects/LWGraphicsTest/Assets/Scenes/013_CameraMulti_Splitscreen/ReflectionProbe-0.exr
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
using System.Collections; |
|||
using System.Collections; |
|||
public class AutoSizeGrid : MonoBehaviour |
|||
{ |
|||
public GridLayoutGroup layout; |
|||
public bool dynamic = false; |
|||
private int rows = 2; |
|||
private int columns = 2; |
|||
public class AutoSizeGrid : MonoBehaviour { |
|||
|
|||
public GridLayoutGroup layout; |
|||
public bool dynamic = false; |
|||
private int rows = 2; |
|||
private int columns = 2; |
|||
// Use this for initialization
|
|||
void Start() |
|||
{ |
|||
SetCellSize(); |
|||
} |
|||
// Use this for initialization
|
|||
void Start () { |
|||
SetCellSize (); |
|||
} |
|||
|
|||
// Update is called once per frame
|
|||
void Update () { |
|||
#if UNITY_EDITOR
|
|||
SetCellSize (); |
|||
#else
|
|||
if(dynamic){ |
|||
SetCellSize (); |
|||
} |
|||
#endif
|
|||
} |
|||
// Update is called once per frame
|
|||
void Update() |
|||
{ |
|||
#if UNITY_EDITOR
|
|||
SetCellSize(); |
|||
#else
|
|||
if (dynamic) |
|||
{ |
|||
SetCellSize(); |
|||
} |
|||
#endif
|
|||
} |
|||
void SetCellSize(){ |
|||
Vector2 vec = new Vector2 (Screen.width / columns, Screen.height / rows); |
|||
layout.cellSize = vec / transform.parent.localScale.x; |
|||
} |
|||
void SetCellSize() |
|||
{ |
|||
Vector2 vec = new Vector2(Screen.width / columns, Screen.height / rows); |
|||
layout.cellSize = vec / transform.parent.localScale.x; |
|||
} |
|||
} |
321
TestProjects/LWGraphicsTest/Assets/Scenes/014_CameraMulti_MiniMap.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue