Disk.shader 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Pcx - Point cloud importer & renderer for Unity
  2. // https://github.com/keijiro/Pcx
  3. Shader "Point Cloud/Disk"
  4. {
  5. Properties
  6. {
  7. _Tint("Tint", Color) = (0.5, 0.5, 0.5, 1)
  8. _PointSize("Point Size", Float) = 0.05
  9. }
  10. SubShader
  11. {
  12. Tags { "RenderType"="Opaque" }
  13. Cull Off
  14. Pass
  15. {
  16. Tags { "LightMode"="ForwardBase" }
  17. CGPROGRAM
  18. #pragma vertex Vertex
  19. #pragma geometry Geometry
  20. #pragma fragment Fragment
  21. #pragma multi_compile_fog
  22. #pragma multi_compile _ UNITY_COLORSPACE_GAMMA
  23. #pragma multi_compile _ _COMPUTE_BUFFER
  24. #include "Disk.cginc"
  25. ENDCG
  26. }
  27. Pass
  28. {
  29. Tags { "LightMode"="ShadowCaster" }
  30. CGPROGRAM
  31. #pragma vertex Vertex
  32. #pragma geometry Geometry
  33. #pragma fragment Fragment
  34. #pragma multi_compile _ _COMPUTE_BUFFER
  35. #define PCX_SHADOW_CASTER 1
  36. #include "Disk.cginc"
  37. ENDCG
  38. }
  39. }
  40. CustomEditor "Pcx.DiskMaterialInspector"
  41. }