浏览代码

Renamed LW shaders and changed the default to be the Physically Based one.

/RenderPassXR_Sandbox
Felipe Lira 7 年前
当前提交
78a2ad28
共有 10 个文件被更改,包括 7 次插入7 次删除
  1. 4
      ScriptableRenderPipeline/LightweightPipeline/LightweightPipelineAsset.asset
  2. 2
      ScriptableRenderPipeline/LightweightPipeline/Materials/Lightweight-StandardSimpleLighting.mat
  3. 6
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardSimpleLighting.shader
  4. 2
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShaderPBS.shader
  5. 0
      /ScriptableRenderPipeline/LightweightPipeline/Materials/Lightweight-StandardSimpleLighting.mat.meta
  6. 0
      /ScriptableRenderPipeline/LightweightPipeline/Materials/Lightweight-StandardSimpleLighting.mat
  7. 0
      /ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardSimpleLighting.shader.meta
  8. 0
      /ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShaderPBS.shader.meta
  9. 0
      /ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardSimpleLighting.shader
  10. 0
      /ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShaderPBS.shader

4
ScriptableRenderPipeline/LightweightPipeline/LightweightPipelineAsset.asset


m_LinearRendering: 1
m_AttenuationTexture: {fileID: 2800000, guid: ee420ad43ff580149a07f10ad66c49ff,
type: 3}
m_DefaultDiffuseMaterial: {fileID: 2100000, guid: 6a1143ee683302f4aa628c052723efc1,
m_DefaultDiffuseMaterial: {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d,
type: 2}
m_DefaultParticleMaterial: {fileID: 2100000, guid: e823cd5b5d27c0f4b8256e7c12ee3e6d,
type: 2}

type: 2}
m_DefaultUIMaterial: {fileID: 2100000, guid: 786cc499ea3906946b10ab7d24c8d0e7, type: 2}
m_DefaultShader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_DefaultShader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}

2
ScriptableRenderPipeline/LightweightPipeline/Materials/Lightweight-StandardSimpleLighting.mat


m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Lightweight-Default
m_Name: Lightweight-StandardSimpleLighting
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_ShaderKeywords: _SPECULAR_COLOR
m_LightmapFlags: 4

6
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardSimpleLighting.shader


// Shader targeted for low end devices. Single Pass Forward Rendering. Shader Model 2
Shader "ScriptableRenderPipeline/LightweightPipeline/NonPBR"
Shader "ScriptableRenderPipeline/LightweightPipeline/Standard (Simple Lighting)"
{
// Keep properties of StandardSpecular shader for upgrade reasons.
Properties

float3 worldPos = i.posWS.xyz;
half3 lightDirection;
#ifndef _MULTIPLE_LIGHTS
LightInput lightInput;
INITIALIZE_MAIN_LIGHT(lightInput);

#else
half3 color = LightingLambert(diffuse, lightDirection, normal, lightAtten) * lightInput.color;
#endif
#else
half3 color = half3(0, 0, 0);

2
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShaderPBS.shader


Shader "ScriptableRenderPipeline/LightweightPipeline/Standard"
Shader "ScriptableRenderPipeline/LightweightPipeline/Standard (PBS)"
{
Properties
{

/ScriptableRenderPipeline/LightweightPipeline/Materials/Lightweight-Default.mat.meta → /ScriptableRenderPipeline/LightweightPipeline/Materials/Lightweight-StandardSimpleLighting.mat.meta

/ScriptableRenderPipeline/LightweightPipeline/Materials/Lightweight-Default.mat → /ScriptableRenderPipeline/LightweightPipeline/Materials/Lightweight-StandardSimpleLighting.mat

/ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightPipeline.shader.meta → /ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardSimpleLighting.shader.meta

/ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShader.shader.meta → /ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShaderPBS.shader.meta

/ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightPipeline.shader → /ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardSimpleLighting.shader

/ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShader.shader → /ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShaderPBS.shader

正在加载...
取消
保存