您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
24 行
949 B
24 行
949 B
using UnityEngine.Experimental.Rendering;
|
|
|
|
namespace UnityEditor.Experimental.Rendering.HDPipeline
|
|
{
|
|
public class HDAdditionalShadowData
|
|
{
|
|
public static void InitDefaultHDAdditionalShadowData(AdditionalShadowData shadowData)
|
|
{
|
|
// Update bias control for HD
|
|
|
|
// bias control default value based on empirical experiment
|
|
shadowData.viewBiasMin = 0.2f;
|
|
shadowData.viewBiasMax = 100.0f; // Not used, high value to have no effect
|
|
shadowData.viewBiasScale = 1.0f;
|
|
shadowData.normalBiasMin = 0.5f;
|
|
shadowData.normalBiasMax = 0.5f;
|
|
shadowData.normalBiasScale = 1.0f;
|
|
shadowData.sampleBiasScale = false;
|
|
shadowData.edgeLeakFixup = true;
|
|
shadowData.edgeToleranceNormal = true;
|
|
shadowData.edgeTolerance = 1.0f;
|
|
}
|
|
}
|
|
}
|