浏览代码

added code credit to shadow HLSL files

/main
Dan Miller 3 年前
当前提交
c3f044a6
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2
      Assets/Shaders/Shadows/ShaderGraphs/BlurredShadowPlaneLighting.hlsl
  2. 2
      Assets/Shaders/Shadows/ShaderGraphs/PlaneContactShadows.hlsl

2
Assets/Shaders/Shadows/ShaderGraphs/BlurredShadowPlaneLighting.hlsl


// Code written by Landon Townsend
void MainLightBlurShadow_half(half rand, half fadeTightness, SamplerState pointClamp, half blurRadius, half3 worldPos, out half shadowAtten)
{
#if SHADERGRAPH_PREVIEW

2
Assets/Shaders/Shadows/ShaderGraphs/PlaneContactShadows.hlsl


// Code written by Landon Townsend
void PlaneContactShadow_float(float rand, float3 position, float dist, float depth, out float shadowAmount)
{
#if SHADERGRAPH_PREVIEW

正在加载...
取消
保存