Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InstancingOptions.cs 798B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. [GenerationAPI]
  5. internal enum InstancingOptions
  6. {
  7. RenderingLayer,
  8. NoLightProbe,
  9. NoLodFade,
  10. }
  11. [GenerationAPI]
  12. internal static class InstancingOptionsExtensions
  13. {
  14. public static string ToShaderString(this InstancingOptions options)
  15. {
  16. switch (options)
  17. {
  18. case InstancingOptions.RenderingLayer:
  19. return "renderinglayer";
  20. case InstancingOptions.NoLightProbe:
  21. return "nolightprobe";
  22. case InstancingOptions.NoLodFade:
  23. return "nolodfade";
  24. default:
  25. throw new ArgumentOutOfRangeException();
  26. }
  27. }
  28. }
  29. }