浏览代码

HDRenderLoop: Fix issue after the merge of debug shaders

/main
sebastienlagarde 8 年前
当前提交
1f0c5be7
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 3
      Assets/ScriptableRenderLoop/HDRenderLoop/Shaders/DisneyGGX.shader
  2. 6
      Assets/ScriptableRenderLoop/ShaderLibrary/Color.hlsl

3
Assets/ScriptableRenderLoop/HDRenderLoop/Shaders/DisneyGGX.shader


#pragma shader_feature _HEIGHTMAP
#pragma shader_feature _HEIGHTMAP_AS_DISPLACEMENT
#include "TemplateDisneyGGX.hlsl"
#include "TemplateDisneyGGX.hlsl"
ENDHLSL

#include "Assets/ScriptableRenderLoop/ShaderLibrary/Color.hlsl"
#include "Assets/ScriptableRenderLoop/HDRenderLoop/Shaders/Debug/DebugCommon.hlsl"
#include "TemplateDisneyGGX.hlsl"
#if SHADER_STAGE_FRAGMENT

6
Assets/ScriptableRenderLoop/ShaderLibrary/Color.hlsl


float3 RGBToYCoCg(float3 rgb)
{
float3 YCoCg;
YCoCg.x = dot(RGB, float3(0.25, 0.5, 0.25));
YCoCg.y = dot(RGB, float3(0.5, 0.0, -0.5)) + CHROMA_BIAS;
YCoCg.z = dot(RGB, float3(-0.25, 0.5, -0.25)) + CHROMA_BIAS;
YCoCg.x = dot(rgb, float3(0.25, 0.5, 0.25));
YCoCg.y = dot(rgb, float3(0.5, 0.0, -0.5)) + CHROMA_BIAS;
YCoCg.z = dot(rgb, float3(-0.25, 0.5, -0.25)) + CHROMA_BIAS;
return YCoCg;
}

正在加载...
取消
保存