publicreadonlyGUIContentcontactShadowLength=newGUIContent("Length","Length of rays used to gather contact shadows in world units.\nZero will disable the feature.");
publicreadonlyGUIContentcontactShadowDistanceScaleFactor=newGUIContent("Distance Scale Factor","Contact Shadows are scaled up with distance. Use this parameter to dampen this effect.");
publicreadonlyGUIContentcontactShadowMaxDistance=newGUIContent("Max Distance","Distance from the camera in world units at which contact shadows are faded out to zero.");
publicreadonlyGUIContentcontactShadowFadeDistance=newGUIContent("Fade Distance","Distance in world units over which the contact shadows are faded out (see Max Distance).");
publicreadonlyGUIContentcontactShadowSampleCount=newGUIContent("Sample Count","Number of samples when ray casting.");
SerializedDataParameterm_Enable;
SerializedDataParameterm_Length;
SerializedDataParameterm_DistanceScaleFactor;
SerializedDataParameterm_Opacity;
publicoverridevoidOnEnable()
m_MaxDistance=Unpack(o.Find(x=>x.maxDistance));
m_FadeDistance=Unpack(o.Find(x=>x.fadeDistance));
m_SampleCount=Unpack(o.Find(x=>x.sampleCount));
m_Opacity=Unpack(o.Find(x=>x.opacity));
}
publicoverridevoidOnInspectorGUI()
PropertyField(m_MaxDistance,CoreEditorUtils.GetContent("Max Distance|Distance from the camera in world units at which contact shadows are faded out to zero."));
PropertyField(m_FadeDistance,CoreEditorUtils.GetContent("Fade Distance|Distance in world units over which the contact shadows fade out (see Max Distance)."));
PropertyField(m_SampleCount,CoreEditorUtils.GetContent("Sample Count|Number of samples when ray casting."));
PropertyField(m_Opacity,CoreEditorUtils.GetContent("Opacity|Opacity of the resulting contact shadow."));