浏览代码

Fix issue with sss profile decoding

/main
Sebastien Lagarde 7 年前
当前提交
9d76a937
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/Material/SubsurfaceScattering/SubsurfaceScattering.hlsl

2
ScriptableRenderPipeline/HDRenderPipeline/Material/SubsurfaceScattering/SubsurfaceScattering.hlsl


void DecodeSSSProfileFromSSSBuffer(SSSBufferType0 inSSSBuffer0, uint2 positionSS, out int subsurfaceProfile)
{
float unused;
UnpackFloatInt8bit(inSSSBuffer0.b, 16.0, unused, subsurfaceProfile);
UnpackFloatInt8bit(inSSSBuffer0.a, 16.0, unused, subsurfaceProfile);
}
void DecodeFromSSSBuffer(uint2 positionSS, out SSSData sssData)

正在加载...
取消
保存