BRGSamples.cs 690 B

1234567891011121314151617181920212223242526
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace Core.BRG
  4. {
  5. [System.Serializable]
  6. public class BRGSamples
  7. {
  8. public Mesh Mesh;
  9. public Material Material;
  10. public List<BRGShaderValue> AllShaderValues = new List<BRGShaderValue>();
  11. public bool castShadows;
  12. public bool receiveShadows;
  13. public bool staticShadowCaster;
  14. public bool allDepthSorted;
  15. public int GetAllShaderValueSize()
  16. {
  17. int totalSize = 0;
  18. foreach (var shaderValue in AllShaderValues)
  19. {
  20. totalSize += shaderValue.GetSize();
  21. }
  22. return totalSize;
  23. }
  24. }
  25. }