浏览代码

HDRenderPipeline: Fix compil of decal

/feature-ReflectionProbeFit
sebastienlagarde 7 年前
当前提交
4b23291d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/Material/Decal/DecalData.hlsl

4
ScriptableRenderPipeline/HDRenderPipeline/Material/Decal/DecalData.hlsl


// Fill SurfaceData/Builtin data function
//-------------------------------------------------------------------------------------
#include "ShaderLibrary/Packing.hlsl"
#include "ShaderLibrary/SampleUVMapping.hlsl"
#include "ShaderLibrary/Sampling/SampleUVMapping.hlsl"
void GetSurfaceData(float2 texCoordDS, out DecalSurfaceData surfaceData)
{

#if _COLORMAP
surfaceData.baseColor = SAMPLE_TEXTURE2D(_BaseColorMap, sampler_BaseColorMap, texCoordDS.xy);
surfaceData.baseColor = SAMPLE_TEXTURE2D(_BaseColorMap, sampler_BaseColorMap, texCoordDS.xy);
totalBlend *= surfaceData.baseColor.w;
surfaceData.baseColor.w = totalBlend;
#endif

正在加载...
取消
保存