浏览代码

Removed dummy workaround passes from shader. Added dynamic pixel lights to scene.

/vr_sandbox
Felipe Lira 8 年前
当前提交
e72ab523
共有 8 个文件被更改,包括 1410 次插入498 次删除
  1. 878
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene.unity
  2. 4
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/LightingData.asset
  3. 2
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/LightingData.asset.meta
  4. 1001
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/Lightmap-0_comp_light.exr
  5. 2
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/Lightmap-0_comp_light.exr.meta
  6. 2
      Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/ReflectionProbe-0.exr.meta
  7. 2
      Assets/LowEndRenderPipeline/LowEndPipeline.asset
  8. 17
      Assets/LowEndRenderPipeline/Shaders/LDRenderPipe-Specular.shader

878
Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene.unity
文件差异内容过多而无法显示
查看文件

4
Assets/LowEndRenderPipeline/LDRenderPipelineBasicScene/LightingData.asset


19 1 2017.1.0a1������:'���BIr���:�b���7���������� �� ��".�+���� ��".�+H��������1�1����� @���
1;L1 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=�?�?�?�?��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;
��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>�I?�?�?�?�?�?�?��[+`=[+`=h=���>�?�?�?�?�?�?��H>H>J>�?�?�?�?�?�?��[+`=[+`=h=<��>�?�?�?�?�?�?���O>�O>C��>�(I>�?�?�?�?�?�?��G>G>">�?�?�?�?�?�?�?��[+`=[+`= J�>�?�?�?�?�?�?��[+`=[+`=<��>�?�?�?�?�?�?��G>G>�?�?�?�?�?�?�?��H>H>">�>�?�?�?�?�?�?����+=��+=�v�>�?�?�?�?�?�?����+=��+=h= J�>�?�?�?�?�?�?����+=��+=�=���>�?�?�?�?�?�?����+=��+=4=�v�>�?�?�?�?�?�?����+=��+=�=�v�>�?�?�?�?�?�?��[+`=[+`=���>�?�?�?�?�?�?��H>H>�>�?�?�?�?�?�?����+=��+=�= J�>�?�?�?�?�?�?��D1!>D1!>�\'��XI>�?�?�?�?�?�?��H>H>�?�?�?�?�?�?��H>H>">J>�?�?�?�?�?�?��[+`=[+`=���>�?�?��)mp����� �5EKP���d�44fUF�R �F�.d�wCh� �hR!�\(_.<�>���v�*e�ZYJ5�V OL �!�V�X��J�BnQ?$�b�������������͇;UnityFS5.x.x2017.1.0a1;
�Pk

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


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

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

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


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

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


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

2
Assets/LowEndRenderPipeline/LowEndPipeline.asset


m_Script: {fileID: 11500000, guid: ae13646e45aa3634da32df7c7da1c380, type: 3}
m_Name: LowEndPipeline
m_EditorClassIdentifier:
m_SupportsVertexLight: 0
m_SupportsVertexLight: 1
m_EnableLightmaps: 1
m_EnableAmbientProbe: 1
m_ShadowType: 1

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


#else
half3 normal : TEXCOORD2;
#endif
half4 viewDir : TEXCOORD5; // xyz: viewDir, w: grazingTerm;
half4 viewDir : TEXCOORD5; // xyz: viewDir
float4 hpos : SV_POSITION;
float4 hpos : SV_POSITION;
};
struct LightInput

o.fogCoord.yzw += max(half3(0, 0, 0), ShadeSH9(half4(normal, 1)));
#endif
o.fogCoord.x = 1.0;
UNITY_TRANSFER_FOG(o, o.hpos);
return o;
}

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, only for lightmap baking.
Pass
{

正在加载...
取消
保存