浏览代码

fix linear rendering

/main
vlad-andreev 8 年前
当前提交
1f47f98c
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 9
      Assets/ScriptableRenderLoop/fptl/Internal-DeferredShading.shader

9
Assets/ScriptableRenderLoop/fptl/Internal-DeferredShading.shader


#pragma vertex vert
#pragma fragment frag
#pragma multi_compile __ UNITY_COLORSPACE_GAMMA
//#include "UnityCG.cginc"
//#include "UnityPBSLighting.cginc"
//#include "UnityDeferredLibrary.cginc"

float3 c = ExecuteLightList(pixCoord, offs);
//c = OverlayHeatMap(FetchLightCount(offs), c);
return float4(c,1.0);
//return float4(pow(c,1/2.2),1.0);
#if defined(UNITY_COLORSPACE_GAMMA)
return float4(c, 1.0);
#else
return float4(pow(c, 1 / 2.2), 1.0);
#endif
}
struct StandardData

正在加载...
取消
保存