浏览代码

MaterialUpgrader for Mobile to LDRenderPipeline and small changes to allow gloss & shineness on LDRenderPipeline. Temporary workaround the issue that was causing Lightmap to crash unity.

/vr_sandbox
Felipe Lira 8 年前
当前提交
11a8a1a4
共有 41 个文件被更改,包括 1739 次插入771 次删除
  1. 10
      Assets/LowEndRenderPipeline/Editor/StandardSpecularToLDMaterialUpgrader.cs
  2. 808
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene.unity
  3. 6
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/LightingData.asset
  4. 2
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/LightingData.asset.meta
  5. 1001
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/Lightmap-0_comp_light.exr
  6. 7
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/Lightmap-0_comp_light.exr.meta
  7. 7
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/ReflectionProbe-0.exr.meta
  8. 6
      Assets/LowEndRenderPipeline/LowEndRenderPipeline.cs
  9. 90
      Assets/LowEndRenderPipeline/Shaders/LDRenderPipe-Specular.shader
  10. 4
      Assets/ScriptableRenderPipeline/Editor/MaterialUpgrader.cs
  11. 2
      Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobilePlane.mat
  12. 29
      Assets/LowEndRenderPipeline/Editor/LegacyBumpSpecularToLDMaterialUpgrader.cs
  13. 12
      Assets/LowEndRenderPipeline/Editor/LegacyBumpSpecularToLDMaterialUpgrader.cs.meta
  14. 28
      Assets/LowEndRenderPipeline/Editor/MobileToLDMaterialUpgrader.cs
  15. 12
      Assets/LowEndRenderPipeline/Editor/MobileToLDMaterialUpgrader.cs.meta
  16. 9
      Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials.meta
  17. 9
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials.meta
  18. 75
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileAlpha.mat
  19. 9
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileAlpha.mat.meta
  20. 81
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileColors.mat
  21. 9
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileColors.mat.meta
  22. 81
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileGlass.mat
  23. 9
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileGlass.mat.meta
  24. 81
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobilePlane.mat
  25. 9
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobilePlane.mat.meta
  26. 81
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileSphere.mat
  27. 9
      Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileSphere.mat.meta
  28. 12
      Assets/LowEndRenderPipeline/LDMaterialInspector.cs
  29. 12
      Assets/LowEndRenderPipeline/LDMaterialInspector.cs.meta
  30. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileColors.mat.meta
  31. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileColorsTile.mat.meta
  32. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileGlass.mat
  33. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileGlass.mat.meta
  34. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobilePlane.mat.meta
  35. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileColors.mat
  36. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileColorsTile.mat
  37. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobilePlane.mat
  38. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/LDSpecularSphere0.mat.meta
  39. 0
      /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/LDSpecularSphere0.mat

10
Assets/LowEndRenderPipeline/Editor/StandardSpecularToLDMaterialUpgrader.cs


public class StandardSpecularToLDMaterialUpgrader : MaterialUpgrader
{
[MenuItem("LDRenderPipeline/Upgrade Materials")]
[MenuItem("LDRenderPipeline/Upgrade Standard Materials to LDRenderPipeline")]
private static void UpgradeMaterialsToLD()
{
List<MaterialUpgrader> upgraders = new List<MaterialUpgrader>();

StandardSpecularToLDMaterialUpgrader(string oldShaderName)
{
RenameShader(oldShaderName, "RenderLoop/LowEnd");
RemoveTexture("_OcclusionMap");
RemoveTexture("_DetailAlbedoMap");
RemoveTexture("_DetailNormalMap");
RenameShader(oldShaderName, "LDRenderPipeline/Specular");
//RemoveTexture("_OcclusionMap");
//RemoveTexture("_DetailAlbedoMap");
//RemoveTexture("_DetailNormalMap");
}
}

808
Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene.unity


tileSize: 256
accuratePlacement: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &49749411
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 49749412}
- component: {fileID: 49749415}
- component: {fileID: 49749414}
- component: {fileID: 49749413}
m_Layer: 0
m_Name: Capsule (5)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 5
m_IsActive: 1
--- !u!4 &49749412
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 49749411}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -6.563582, y: 9.653463, z: 9.891475}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &49749413
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 49749411}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 643fa6df7367be74e863bd5843cd2c94, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!136 &49749414
CapsuleCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 49749411}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: 0.5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &49749415
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 49749411}
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &126291025
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 1592048727}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: -0.33200002, y: -365.245, z: 189.77199}
--- !u!1 &384255571
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 384255572}
- component: {fileID: 384255575}
- component: {fileID: 384255574}
- component: {fileID: 384255573}
m_Layer: 0
m_Name: Capsule (4)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 5
m_IsActive: 1
--- !u!4 &384255572
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 384255571}
m_LocalRotation: {x: -0.45457986, y: -0.24911958, z: 0.7948072, w: -0.31556}
m_LocalPosition: {x: -3.5135822, y: 9.653463, z: 7.4870586}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 43.071003, y: -50.710003, z: 202.125}
--- !u!23 &384255573
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 384255571}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 643fa6df7367be74e863bd5843cd2c94, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!136 &384255574
CapsuleCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 384255571}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: 0.5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &384255575
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 384255571}
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &428540111
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 428540112}
- component: {fileID: 428540115}
- component: {fileID: 428540114}
- component: {fileID: 428540113}
m_Layer: 0
m_Name: Sphere (4)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 4
m_IsActive: 1
--- !u!4 &428540112
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 428540111}
m_LocalRotation: {x: 0.04534631, y: -0.0067818314, z: -0.99533, w: 0.08494744}
m_LocalPosition: {x: -4.833582, y: 9.183463, z: 13.577059}
m_LocalScale: {x: 2, y: 2, z: 2}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: -0.33200002, y: -365.245, z: 189.77199}
--- !u!23 &428540113
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 428540111}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 2cbb16400afc3434f82480d3d0491ae6, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!135 &428540114
SphereCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 428540111}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &428540115
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 428540111}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &460325731
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 460325732}
- component: {fileID: 460325735}
- component: {fileID: 460325734}
- component: {fileID: 460325733}
m_Layer: 0
m_Name: Sphere (5)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &460325732
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 460325731}
m_LocalRotation: {x: -0, y: 0.6952887, z: -0, w: 0.71873057}
m_LocalPosition: {x: -9.603582, y: 10.233463, z: 13.367059}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 88.100006, z: 0}
--- !u!23 &460325733
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 460325731}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: d2b12cb90e76a254896e874c91509614, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!135 &460325734
SphereCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 460325731}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &460325735
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 460325731}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &529372582
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 766602296}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &530981200
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 530981201}
- component: {fileID: 530981204}
- component: {fileID: 530981203}
- component: {fileID: 530981202}
m_Layer: 0
m_Name: Sphere (6)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 5
m_IsActive: 1
--- !u!4 &530981201
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 530981200}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -8.193583, y: 9.193463, z: 8.437058}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &530981202
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 530981200}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 643fa6df7367be74e863bd5843cd2c94, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!135 &530981203
SphereCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 530981200}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &530981204
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 530981200}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &531853420
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 1592048727}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: -2.8060002, y: 16.156, z: -8.627001}
--- !u!1 &567281919
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 567281920}
- component: {fileID: 567281923}
- component: {fileID: 567281922}
- component: {fileID: 567281921}
m_Layer: 0
m_Name: Plane (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 5
m_IsActive: 1
--- !u!4 &567281920
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 567281919}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -5.513582, y: 8.926302, z: 9.891474}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &567281921
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 567281919}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: b7c2bc2a920282a42bf3afca898b643c, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!64 &567281922
MeshCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 567281919}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Convex: 0
m_InflateMesh: 0
m_SkinWidth: 0.01
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!33 &567281923
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 567281919}
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &660517135
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &905055740
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 905055741}
- component: {fileID: 905055744}
- component: {fileID: 905055743}
- component: {fileID: 905055742}
m_Layer: 0
m_Name: Capsule (3)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 5
m_IsActive: 1
--- !u!4 &905055741
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 905055740}
m_LocalRotation: {x: -0.034737714, y: 0.1382549, z: -0.07101164, w: 0.98723674}
m_LocalPosition: {x: -1.9535818, y: 9.653463, z: 11.427059}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: -2.8060002, y: 16.156, z: -8.627001}
--- !u!23 &905055742
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 905055740}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 643fa6df7367be74e863bd5843cd2c94, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!136 &905055743
CapsuleCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 905055740}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: 0.5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &905055744
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 905055740}
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1054948396
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 1054948397}
- component: {fileID: 1054948400}
- component: {fileID: 1054948399}
- component: {fileID: 1054948398}
m_Layer: 0
m_Name: Sphere (7)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 5
m_IsActive: 1
--- !u!4 &1054948397
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1054948396}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -5.513582, y: 9.193463, z: 8.877058}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &1054948398
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1054948396}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 643fa6df7367be74e863bd5843cd2c94, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!135 &1054948399
SphereCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1054948396}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &1054948400
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1054948396}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1084503476
GameObject:
m_ObjectHideFlags: 0

m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1177504217}
--- !u!1 &1233819869
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 1233819870}
m_Layer: 0
m_Name: Mobile
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1233819870
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1233819869}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 14.543582, y: -8.103463, z: -5.8570585}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 428540112}
- {fileID: 905055741}
- {fileID: 460325732}
- {fileID: 567281920}
- {fileID: 384255572}
- {fileID: 530981201}
- {fileID: 49749412}
- {fileID: 1054948397}
- {fileID: 1516926044}
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1254169577
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 766602296}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1516926043
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 1516926044}
- component: {fileID: 1516926047}
- component: {fileID: 1516926046}
- component: {fileID: 1516926045}
m_Layer: 0
m_Name: Sphere (8)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 4
m_IsActive: 1
--- !u!4 &1516926044
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1516926043}
m_LocalRotation: {x: -0.0041517415, y: -0.29575256, z: -0.18984698, w: 0.9362005}
m_LocalPosition: {x: -4.833582, y: 9.323463, z: 12.527059}
m_LocalScale: {x: 2, y: 2, z: 2}
m_Children: []
m_Father: {fileID: 1233819870}
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: -6.8960004, y: -33.794003, z: -20.829}
--- !u!23 &1516926045
MeshRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1516926043}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 2cbb16400afc3434f82480d3d0491ae6, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!135 &1516926046
SphereCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1516926043}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &1516926047
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1516926043}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1592048726
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 722899211}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 18.036001, y: 49.154003, z: -0.014}
--- !u!1 &1678103613
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 1678103614}
m_Layer: 0
m_Name: Metallic
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1678103614
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1678103613}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -9.96}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1680776005
GameObject:
m_ObjectHideFlags: 0

6
Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/LightingData.asset


191 5.6.0b6������:'���BIr���:�b���7���������� �� ��".�+���� ��".�+H��������1�1����� @���
19 1 2017.1.0a1������:'���BIr���:�b���7���������� �� ��".�+���� ��".�+H��������1�1����� @���
��j� ��� LightingDataAssetPPtr<EditorExtension>m_FileIDm_PathIDm_LightmapsLightmapDatam_Lightmapm_DirLightmapm_ShadowMaskPPtr<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>uvMeshterrainDynamicUVSTxyzwterrainChunkDynamicUVSTlightmapIndexlightmapIndexDynamiclightmapSTlightmapSTDynamicm_LightmappedRendererDataIDsSceneObjectIdentifiertargetObjecttargetPrefabEnlightenSceneMappingm_EnlightenSceneMappingm_RenderersEnlightenRendererInformationrendererdynamicLightmapSTInSystemsystemIdHash128instanceHashbytes[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]geometryHashm_SystemsEnlightenSystemInformationrendererIndexrendererSizeatlasIndexatlasOffsetXatlasOffsetYinputSystemHashradiositySystemHashm_Probesetsm_SystemAtlasesEnlightenSystemAtlasInformationatlasSizeatlasHashfirstSystemIdm_TerrainChunksEnlightenTerrainChunksInformationnumChunksInXnumChunksInYm_EnlightenSceneMappingRendererIDsm_Lightsm_LightBakingOutputsLightBakingOutputprobeOcclusionLightIndexocclusionMaskChannellightmappingMaskm_BakedReflectionProbeCubemapsm_BakedReflectionProbesm_EnlightenDatam_EnlightenDataVersion@��H��H�<'��S��I�3�UO�-1�ʭ�G��A��R�@ LightingData LightingData��*@��v�;>l����<���d���R�;NAV<$��q��<�Fh>$�*=��i<��5P��K�1<�L�<�����%=�ߖ>�/�=��<d��� 9L��x�<��<�B5�tC=�?�?�?�?��[+`=[+`=�0?�>�?�?�?�?�?�?����+=��+=??�>�?�?�?�?�?�?��[+`=[+`="?�>�?�?�?�?�?�?����+=��+=??��&>�?�?�?�?�?�?����+=��+=�?�>�?�?�?�?�?�?��H>H>�I?�?�?�?�?�?�?��H>H>I>�?�?�?�?�?�?��D1!>D1!>)�J?�\'��?�?�?�?�?�?��H>H>��>�?�?�?�?�?�?��H>H>@?�?�?�?�?�?�?��G>G>I>�?�?�?�?�?�?��[+`=[+`=�J?,(�=�?�?�?�?�?�?���O>�O>!�?�zW��?�?�?�?�?�?����+=��+=�?��&>�?�?�?�?�?�?��G>G>�?�?�?�?�?�?��G>G>�>�?�?�V�X�wChmp�\(_e�ZY�v�* OLJ5�V���F�.dR ��44fEKP� �h���d��)��J�BnQ?$�b�������������͇8UnityFS5.x.x5.6.0b68
�Pk
��j� ��� LightingDataAssetPPtr<EditorExtension>m_FileIDm_PathIDm_LightmapsLightmapDatam_Lightmapm_DirLightmapm_ShadowMaskPPtr<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>uvMeshterrainDynamicUVSTxyzwterrainChunkDynamicUVSTlightmapIndexlightmapIndexDynamiclightmapSTlightmapSTDynamicm_LightmappedRendererDataIDsSceneObjectIdentifiertargetObjecttargetPrefabEnlightenSceneMappingm_EnlightenSceneMappingm_RenderersEnlightenRendererInformationrendererdynamicLightmapSTInSystemsystemIdHash128instanceHashbytes[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]geometryHashm_SystemsEnlightenSystemInformationrendererIndexrendererSizeatlasIndexatlasOffsetXatlasOffsetYinputSystemHashradiositySystemHashm_Probesetsm_SystemAtlasesEnlightenSystemAtlasInformationatlasSizeatlasHashfirstSystemIdm_TerrainChunksEnlightenTerrainChunksInformationnumChunksInXnumChunksInYm_EnlightenSceneMappingRendererIDsm_Lightsm_LightBakingOutputsLightBakingOutputprobeOcclusionLightIndexocclusionMaskChannellightmappingMaskm_BakedReflectionProbeCubemapsm_BakedReflectionProbesm_EnlightenDatam_EnlightenDataVersion@��H��H�<'��S��I�3�UO�-1�ʭ�G��A��R�@ LightingData LightingData��*@��v�;>l����<���d���R�;NAV<$��q��<�Fh>$�*=��i<��5P��K�1<�L�<�����%=�ߖ>�/�=��<d��� 9L��x�<��<�B5�tC=�?�?�?�?��G>G>�?�?�?�?�?�?����+=��+=�?��&>�?�?�?�?�?�?��G>G>�>�?�?�?�?�?�?���O>�O>!�?�zW��?�?�?�?�?�?��G>G>I>�?�?�?�?�?�?��[+`=[+`=�0?�>�?�?�?�?�?�?��[+`=[+`=�J?,(�=�?�?�?�?�?�?��H>H>I>�?�?�?�?�?�?����+=��+=�?�>�?�?�?�?�?�?��H>H>��>�?�?�?�?�?�?����+=��+=??��&>�?�?�?�?�?�?��D1!>D1!>)�J?�\'��?�?�?�?�?�?����+=��+=??�>�?�?�?�?�?�?��H>H>@?�?�?�?�?�?�?��H>H>�I?�?�?�?�?�?�?��[+`=[+`="?�>�?�?���d� �h��)EKPR �mp��44f OLe�ZY���\(_J5�V�wChF�.d�v�*�V�X��J�BnQ?$�b�������������͇;UnityFS5.x.x2017.1.0a1;
�Pk

2
Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/LightingData.asset.meta


fileFormatVersion: 2
guid: 740b181ab47c46a47ae28377711d7097
timeCreated: 1487263301
timeCreated: 1487694078
licenseType: Pro
NativeFormatImporter:
mainObjectFileID: 25800000

1001
Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/Lightmap-0_comp_light.exr
文件差异内容过多而无法显示
查看文件

7
Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/Lightmap-0_comp_light.exr.meta


fileFormatVersion: 2
guid: c3725aec356fa894fa33910a5551f44f
timeCreated: 1487263299
timeCreated: 1487694075
licenseType: Pro
TextureImporter:
fileIDToRecycleName: {}

textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
wrapMode: 1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 1
lightmap: 0
compressionQuality: 50

7
Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/ReflectionProbe-0.exr.meta


fileFormatVersion: 2
guid: d270136facda2a745b3c14bddd257f04
timeCreated: 1487263301
timeCreated: 1487694078
licenseType: Pro
TextureImporter:
fileIDToRecycleName:

textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
wrapMode: 1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 1
lightmap: 0
compressionQuality: 50

6
Assets/LowEndRenderPipeline/LowEndRenderPipeline.cs


SetupShadowShaderVariables(context, camera.nearClipPlane, cullingParameters.shadowDistance, m_ShadowSettings.directionalLightCascadeCount);
// Render Opaques
var settings = new DrawRendererSettings(cull, camera, new ShaderPassName("ForwardBase"));
var settings = new DrawRendererSettings(cull, camera, new ShaderPassName("LDForwardLight"));
settings.sorting.flags = SortFlags.CommonOpaque;
settings.inputFilter.SetQueuesOpaque();

// TODO: shadow resolution per cascade in case cascades endup being supported.
float invShadowResolution = 1.0f / shadowResolution;
float[] pcfKernel = {-1.5f * invShadowResolution, 0.5f * invShadowResolution,
float[] pcfKernel = {-0.5f * invShadowResolution, 0.5f * invShadowResolution,
-1.5f * invShadowResolution, -0.5f * invShadowResolution,
-0.5f * invShadowResolution, -0.5f * invShadowResolution,
0.5f * invShadowResolution, -0.5f * invShadowResolution };
var setupShadow = new CommandBuffer() { name = "SetupShadowShaderConstants" };

90
Assets/LowEndRenderPipeline/Shaders/LDRenderPipe-Specular.shader


//
// The parameters and inspector of the shader are the same as Standard shader,
// for easier experimentation.
Shader "LDRenderPipeline/LowEndSpecular"
Shader "LDRenderPipeline/Specular"
{
// Properties is just a copy of Standard (Specular Setup).shader. Our example shader does not use all of them,
// but the inspector UI expects all these to exist.

_MainTex("Albedo", 2D) = "white" {}
_MainTex("Base (RGB) Glossiness / Alpha (A)", 2D) = "white" {}
_Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5
_GlossMapScale("Smoothness Factor", Range(0.0, 1.0)) = 1.0
[Enum(Specular Alpha,0,Albedo Alpha,1)] _SmoothnessTextureChannel("Smoothness texture channel", Float) = 0
_Glossiness("Shininess", Range(0.0, 1.0)) = 0.5
[HideInInspector] _GlossMapScale("Smoothness Factor", Range(0.0, 1.0)) = 1.0
[HideInInspector] [Enum(Specular Alpha,0,Albedo Alpha,1)] _SmoothnessTextureChannel("Smoothness texture channel", Float) = 0
_SpecColor("Specular", Color) = (0.2,0.2,0.2)
_SpecGlossMap("Specular", 2D) = "white" {}
[ToggleOff] _SpecularHighlights("Specular Highlights", Float) = 1.0
[ToggleOff] _GlossyReflections("Glossy Reflections", Float) = 1.0
_SpecColor("Specular", Color) = (1.0, 1.0, 1.0)
[HideInInspector] _SpecGlossMap("Specular", 2D) = "white" {}
[HideInInspector] [ToggleOff] _SpecularHighlights("Specular Highlights", Float) = 1.0
[HideInInspector] [ToggleOff] _GlossyReflections("Glossy Reflections", Float) = 1.0
_BumpScale("Scale", Float) = 1.0
_BumpMap("Normal Map", 2D) = "bump" {}
[HideInInspector] _BumpScale("Scale", Float) = 1.0
[NoScaleOffset] _BumpMap("Normal Map", 2D) = "bump" {}
_Parallax("Height Scale", Range(0.005, 0.08)) = 0.02
_ParallaxMap("Height Map", 2D) = "black" {}
[HideInInspector] _Parallax("Height Scale", Range(0.005, 0.08)) = 0.02
[HideInInspector] _ParallaxMap("Height Map", 2D) = "black" {}
_OcclusionStrength("Strength", Range(0.0, 1.0)) = 1.0
_OcclusionMap("Occlusion", 2D) = "white" {}
[HideInInspector] _OcclusionStrength("Strength", Range(0.0, 1.0)) = 1.0
[HideInInspector] _OcclusionMap("Occlusion", 2D) = "white" {}
_EmissionColor("Color", Color) = (0,0,0)
_EmissionMap("Emission", 2D) = "white" {}
_EmissionColor("Emission Color", Color) = (0,0,0)
[HideInInspector] _EmissionMap("Emission", 2D) = "white" {}
_DetailMask("Detail Mask", 2D) = "white" {}
[HideInInspector] _DetailMask("Detail Mask", 2D) = "white" {}
_DetailAlbedoMap("Detail Albedo x2", 2D) = "grey" {}
_DetailNormalMapScale("Scale", Float) = 1.0
_DetailNormalMap("Normal Map", 2D) = "bump" {}
[HideInInspector] _DetailAlbedoMap("Detail Albedo x2", 2D) = "grey" {}
[HideInInspector] _DetailNormalMapScale("Scale", Float) = 1.0
[HideInInspector] _DetailNormalMap("Normal Map", 2D) = "bump" {}
[Enum(UV0,0,UV1,1)] _UVSec("UV Set for secondary textures", Float) = 0
[HideInInspector] [Enum(UV0,0,UV1,1)] _UVSec("UV Set for secondary textures", Float) = 0
// Blending state
[HideInInspector] _Mode("__mode", Float) = 0.0

SubShader
{
Tags { "RenderType" = "Opaque" "PerformanceChecks" = "False" "RenderPipeline" = "LDRenderPipeline"}
Tags { "RenderType" = "Opaque" "PerformanceChecks" = "False" "RenderPipeline" = "LDRenderPipeline" }
Tags { "LightMode" = "ForwardBase" }
Tags { "LightMode" = "LDForwardLight" }
// Use same blending / depth states as Standard shader
Blend[_SrcBlend][_DstBlend]

half3 lightColor = lightInput.color.rgb * lightAtten;
half3 diffuse = diffuseColor * lightColor * NdotL;
half3 specular = specularGloss.rgb * lightColor * pow(NdotH, 128.0) * specularGloss.a;
half3 specular = specularGloss.rgb * lightColor * pow(NdotH, _Glossiness * 128.0) * specularGloss.a;
return diffuse + specular;
}

#if _SPECGLOSSMAP
half4 specularGloss = tex2d(_SpecGlossMap, i.uv01.xy);
half4 specularGloss = tex2D(_SpecGlossMap, i.uv01.xy);
half4 specularGloss = half4(_SpecColor.rgb, _Glossiness);
half4 specularGloss = _SpecColor;
#endif
float3 posWorld = i.posWS.xyz;

}
ENDCG
}
// Temporary Hack to overcome the globalrender pipeline crashing
// When baking lightmap due to lack of META pass
Pass
{
NAME "Dummy1"
}
Pass
{
NAME "Dummy2"
}
// This pass it not used during regular rendering.
Pass
{
Name "META"
Tags{ "LightMode" = "Meta" }
Cull Off
CGPROGRAM
#pragma vertex vert_meta
#pragma fragment frag_meta
#pragma shader_feature _EMISSION
#pragma shader_feature _METALLICGLOSSMAP
#pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
#pragma shader_feature ___ _DETAIL_MULX2
#pragma shader_feature EDITOR_VISUALIZATION
#include "UnityStandardMeta.cginc"
ENDCG
}
CustomEditor "StandardShaderGUI"
//CustomEditor "StandardShaderGUI"
}

4
Assets/ScriptableRenderPipeline/Editor/MaterialUpgrader.cs


public static void UpgradeProjectFolder(List<MaterialUpgrader> upgraders, string progressBarName)
{
if (!EditorUtility.DisplayDialog("Material Upgrader", "The upgrade will overwrite material settings in your project." +
"Be sure to have a project backup before proceeding", "Proceed", "Cancel"))
return;
int totalMaterialCount = 0;
foreach (string s in UnityEditor.AssetDatabase.GetAllAssetPaths())
{

2
Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobilePlane.mat


m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999997, g: 0.19999997, b: 0.19999997, a: 1}
- _SpecColor: {r: 0.5294118, g: 0.5294118, b: 0.5294118, a: 1}

29
Assets/LowEndRenderPipeline/Editor/LegacyBumpSpecularToLDMaterialUpgrader.cs


using System.Collections.Generic;
using UnityEditor.Experimental.Rendering;
using UnityEditor;
public class LegacyBumpSpecularToLDMaterialUpgrader : MaterialUpgrader
{
[MenuItem("LDRenderPipeline/Upgrade Legacy Shaders to LDRenderPipeline Materials")]
public static void UpgradeMaterialsToLD()
{
List<MaterialUpgrader> materialUpgraders = new List<MaterialUpgrader>();
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Mobile/Bumped Specular"));
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Mobile/Bumped Specular(1 Directional Light)"));
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Legacy Shaders/Lightmapped/Bumped Diffuse"));
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Legacy Shaders/Lightmapped/Bumped Specular"));
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Legacy Shaders/Lightmapped/Diffuse"));
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Legacy Shaders/Bumped Diffuse"));
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Legacy Shaders/Bumped Specular"));
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Legacy Shaders/Diffuse"));
materialUpgraders.Add(new LegacyBumpSpecularToLDMaterialUpgrader("Legacy Shaders/Lightmapped/Bumped Specular"));
MaterialUpgrader.UpgradeProjectFolder(materialUpgraders, "Upgrade to LD Materials");
}
LegacyBumpSpecularToLDMaterialUpgrader(string oldShaderName)
{
RenameShader(oldShaderName, "LDRenderPipeline/Specular");
RenameFloat("_Shininess", "_Glossiness");
}
}

12
Assets/LowEndRenderPipeline/Editor/LegacyBumpSpecularToLDMaterialUpgrader.cs.meta


fileFormatVersion: 2
guid: 9a1c411526f5afc44a4cfc7cf16c5cde
timeCreated: 1487765059
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

28
Assets/LowEndRenderPipeline/Editor/MobileToLDMaterialUpgrader.cs


using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.Experimental.Rendering;
public class MobileToLDMaterialUpgrader : MaterialUpgrader
{
[MenuItem("LDRenderPipeline/Upgrade Mobile Materials to LDRenderPipeline")]
public static void UpgradeMaterialsToLD()
{
List<MaterialUpgrader> materialUpgraders = new List<MaterialUpgrader>();
materialUpgraders.Add(new MobileToLDMaterialUpgrader("Mobile/Diffuse")); // _MainTex
materialUpgraders.Add(new MobileToLDMaterialUpgrader("Mobile/Bumped Specular")); // _Shininess, _MainTex, _BumpMap
materialUpgraders.Add(new MobileToLDMaterialUpgrader("Mobile/Bumped Specular(1 Directional Light)")); // ""
materialUpgraders.Add(new MobileToLDMaterialUpgrader("Mobile/Bumped Diffuse")); // _MainTex, _BumpMap
materialUpgraders.Add(new MobileToLDMaterialUpgrader("Mobile/Unlit (Supports Lightmap)")); // _MainTex
materialUpgraders.Add(new MobileToLDMaterialUpgrader("Mobile/VertexLit")); // MainTex
materialUpgraders.Add(new MobileToLDMaterialUpgrader("TerrainSurface"));
MaterialUpgrader.UpgradeProjectFolder(materialUpgraders, "Upgrade to LD Materials");
}
MobileToLDMaterialUpgrader(string oldShaderName)
{
RenameShader(oldShaderName, "LDRenderPipeline/Specular");
RenameFloat("_Shininess", "_Glossiness");
}
}

12
Assets/LowEndRenderPipeline/Editor/MobileToLDMaterialUpgrader.cs.meta


fileFormatVersion: 2
guid: 8ca28808ea3d6ea48a14815a267f8016
timeCreated: 1487764514
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

9
Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials.meta


fileFormatVersion: 2
guid: 308e8e53de09484409ac0dffaaf5d276
folderAsset: yes
timeCreated: 1487753937
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

9
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials.meta


fileFormatVersion: 2
guid: 02b87bca4d6e8f1499bc89202d5cc9ff
folderAsset: yes
timeCreated: 1487753991
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

75
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileAlpha.mat


%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: LegacyMobileAlpha
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 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}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

9
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileAlpha.mat.meta


fileFormatVersion: 2
guid: 7d3b639840adb124384d0527c0515c18
timeCreated: 1487764332
licenseType: Pro
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

81
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileColors.mat


%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: MobileColors
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_ShaderKeywords: _EMISSION _NORMALMAP
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 2800000, guid: 3f3b8bdf3ccd30c4fb97b62bd26ef1f6, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 10, y: 10}
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: 2800000, guid: 618126695341ad844ac048b062fd2688, type: 3}
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:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.078125
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Shininess: 0.078125
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.21323532, g: 0.21323532, b: 0.21323532, a: 1}

9
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileColors.mat.meta


fileFormatVersion: 2
guid: ed6bedab6efb5394bb6e1ab693888835
timeCreated: 1481626510
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

81
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileGlass.mat


%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: MobileGlass
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_ShaderKeywords: _ALPHABLEND_ON _EMISSION _METALLICGLOSSMAP
m_LightmapFlags: 1
m_EnableInstancingVariants: 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: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 894ecea3849c1417180f79a5ca555a6a, type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 2800000, guid: 894ecea3849c1417180f79a5ca555a6a, type: 3}
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:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _GlossMapScale: 1
- _Glossiness: 0.078125
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 2
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Shininess: 0.078125
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 5
- _UVSec: 0
- _ZWrite: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}

9
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileGlass.mat.meta


fileFormatVersion: 2
guid: ea9fe2235ce15b34bb11390a91702005
timeCreated: 1478093906
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

81
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobilePlane.mat


%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: MobilePlane
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_ShaderKeywords: _EMISSION _NORMALMAP
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 2800000, guid: d63435d934a30fd439a005c25fa542f0, type: 3}
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: 2800000, guid: 70218f73fcdf828428151dfdd3104a8f, type: 3}
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:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.078125
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Shininess: 0.078125
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999997, g: 0.19999997, b: 0.19999997, a: 1}

9
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobilePlane.mat.meta


fileFormatVersion: 2
guid: 902a730ec9379894b8aecdd235c7bf86
timeCreated: 1481626510
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

81
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileSphere.mat


%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: MobileSphere
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 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:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 0.186
- _Glossiness: 0.078125
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Shininess: 0.078125
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.97058815, g: 0.97058815, b: 0.97058815, a: 1}

9
Assets/LowEndRenderPipeline/Materials/LegacyMobileMaterials/LegacyMobileSphere.mat.meta


fileFormatVersion: 2
guid: d2b12cb90e76a254896e874c91509614
timeCreated: 1487679711
licenseType: Pro
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

12
Assets/LowEndRenderPipeline/LDMaterialInspector.cs


using UnityEngine;
using UnityEditor;
public class LDMaterialInspector : MaterialEditor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
Material materialTarget = target as Material;
}
}

12
Assets/LowEndRenderPipeline/LDMaterialInspector.cs.meta


fileFormatVersion: 2
guid: b4af54958c9ad944a8c9bb428b1d2d38
timeCreated: 1487688270
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

/Assets/LowEndRenderPipeline/Materials/MobileColors.mat.meta → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileColors.mat.meta

/Assets/LowEndRenderPipeline/Materials/MobileColorsTile.mat.meta → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileColorsTile.mat.meta

/Assets/LowEndRenderPipeline/Materials/MobileGlass.mat → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileGlass.mat

/Assets/LowEndRenderPipeline/Materials/MobileGlass.mat.meta → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileGlass.mat.meta

/Assets/LowEndRenderPipeline/Materials/MobilePlane.mat.meta → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobilePlane.mat.meta

/Assets/LowEndRenderPipeline/Materials/MobileColors.mat → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileColors.mat

/Assets/LowEndRenderPipeline/Materials/MobileColorsTile.mat → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobileColorsTile.mat

/Assets/LowEndRenderPipeline/Materials/MobilePlane.mat → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/MobilePlane.mat

/Assets/LowEndRenderPipeline/Materials/LDSpecularSphere0.mat.meta → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/LDSpecularSphere0.mat.meta

/Assets/LowEndRenderPipeline/Materials/LDSpecularSphere0.mat → /Assets/LowEndRenderPipeline/Materials/LDRenderPipeMaterials/LDSpecularSphere0.mat

正在加载...
取消
保存