浏览代码

fixed shadows on gles2

/main
Felipe Lira 7 年前
当前提交
e279a4bb
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 8
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightShadowPass.cs

8
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightShadowPass.cs


private void BuildShadowSettings(LightweightPipelineAsset pipelineAsset)
{
bool isOpenGLES2 = SystemInfo.graphicsDeviceType == GraphicsDeviceType.OpenGLES2;
m_ShadowSettings.screenSpace = SystemInfo.graphicsDeviceType != GraphicsDeviceType.OpenGLES2;
m_ShadowSettings.directionalLightCascadeCount = pipelineAsset.CascadeCount;
// Until we can have keyword stripping forcing single cascade hard shadows on gles2
m_ShadowSettings.screenSpace = !isOpenGLES2;
m_ShadowSettings.directionalLightCascadeCount = (isOpenGLES2)? 1 : pipelineAsset.CascadeCount;
m_ShadowSettings.directionalShadowAtlasWidth = pipelineAsset.ShadowAtlasResolution;
m_ShadowSettings.directionalShadowAtlasHeight = pipelineAsset.ShadowAtlasResolution;

正在加载...
取消
保存