Deprecated.cs 989 B

12345678910111213141516171819
  1. // This file should be used as a container for things on its
  2. // way to being deprecated and removed in future releases
  3. using System;
  4. namespace UnityEngine.Rendering.Universal
  5. {
  6. public static partial class ShaderInput
  7. {
  8. //Even when RenderingUtils.useStructuredBuffer is true we do not this structure anymore, because in shader side worldToShadowMatrix and shadowParams must be stored in arrays of different sizes
  9. // To specify shader-side shadow matrices and shadow parameters, see code in AdditionalLightsShadowCasterPass.SetupAdditionalLightsShadowReceiverConstants
  10. [Obsolete("ShaderInput.ShadowData was deprecated. Shadow slice matrices and per-light shadow parameters are now passed to the GPU using entries in buffers m_AdditionalLightsWorldToShadow_SSBO and m_AdditionalShadowParams_SSBO", false)]
  11. public struct ShadowData
  12. {
  13. public Matrix4x4 worldToShadowMatrix;
  14. public Vector4 shadowParams;
  15. }
  16. }
  17. }