ShaderPort.uss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /* THIS FILE IS FROM GRAPHVIEW BUT CONTAINS MODIFICATIONS */
  2. ShaderPort {
  3. height: 24px;
  4. align-items: center;
  5. padding-left: 4px;
  6. padding-right: 4px;
  7. --port-color: rgb(200, 200, 200);
  8. --disabled-port-color: rgb(70, 70, 70);
  9. }
  10. ShaderPort.input {
  11. flex-direction: row;
  12. }
  13. ShaderPort.output {
  14. flex-direction: row-reverse;
  15. }
  16. ShaderPort > #connector {
  17. border-color: rgb(70, 70, 70);
  18. background-color: #212121;
  19. width: 8px;
  20. height: 8px;
  21. border-radius: 8px;
  22. align-items: center;
  23. justify-content: center;
  24. margin-left: 4px;
  25. margin-right: 4px;
  26. border-left-width: 1px;
  27. border-top-width: 1px;
  28. border-right-width: 1px;
  29. border-bottom-width: 1px;
  30. }
  31. ShaderPort > #connector:hover {
  32. border-color: #f0f0f0
  33. }
  34. ShaderPort > #connector > #cap
  35. {
  36. background-color: #212121;
  37. width: 4px;
  38. height: 4px;
  39. border-radius: 4px;
  40. }
  41. ShaderPort > #connector > #cap:hover
  42. {
  43. background-color: #f0f0f0;
  44. }
  45. ShaderPort > #connector.portHighlight {
  46. border-color: #f0f0f0;
  47. }
  48. ShaderPort > #type {
  49. color: #c1c1c1;
  50. font-size: 11px;
  51. height: 16px;
  52. padding-left: 0;
  53. padding-right: 0;
  54. margin-left: 4px;
  55. margin-right: 4px;
  56. margin-top: 4px;
  57. }
  58. ShaderPort.input > #type {
  59. -unity-text-align: middle-left;
  60. }
  61. ShaderPort.output > #type {
  62. -unity-text-align:middle-right;
  63. }
  64. /*******************************/
  65. /* ShaderPorts colors by types */
  66. /*******************************/
  67. ShaderPort.typeTexture {
  68. --port-color:#FF8B8B;
  69. }
  70. ShaderPort.typeTexture2D {
  71. /* Same as typeTexture */
  72. --port-color:#FF8B8B;
  73. }
  74. ShaderPort.typeTexture2DArray {
  75. /* Same as typeTexture */
  76. --port-color:#FF8B8B;
  77. }
  78. ShaderPort.typeTexture3D {
  79. /* Same as typeTexture */
  80. --port-color:#FF8B8B;
  81. }
  82. ShaderPort.typeCubemap {
  83. /* Same as typeTexture */
  84. --port-color:#FF8B8B;
  85. }
  86. ShaderPort.typeGraphScript {
  87. /* Todo: there is no such type in Unity atm */
  88. --port-color:#E681BA;
  89. }
  90. ShaderPort.typeFloat4 {
  91. --port-color:#FBCBF4;
  92. }
  93. ShaderPort.typeVector4 {
  94. /* Same as typeFloat4 */
  95. --port-color:#FBCBF4;
  96. }
  97. ShaderPort.typeQuaternion {
  98. /* Same as typeFloat4 */
  99. --port-color:#FBCBF4;
  100. }
  101. ShaderPort.typeColor {
  102. /* Same as typeFloat4 */
  103. --port-color:#FBCBF4;
  104. }
  105. ShaderPort.typeInt {
  106. --port-color:#9481E6;
  107. }
  108. ShaderPort.typeInt32 {
  109. /* Same as typeInt */
  110. --port-color:#9481E6;
  111. }
  112. /* TEMP STUFF THAT SHOULD ACTUALLY STAY IN GRAPHVIEW */
  113. ShaderPort.typeInt64 {
  114. /* Same as typeInt */
  115. /* todo we might want to differentiate that from int32 */
  116. --port-color:#9481E6;
  117. }
  118. ShaderPort.typeBoolean {
  119. --port-color:#9481E6;
  120. }
  121. ShaderPort.typeMatrix {
  122. --port-color:#8FC1DF;
  123. }
  124. ShaderPort.typeMatrix4x4 {
  125. /* Same as typeMatrix */
  126. --port-color:#8FC1DF;
  127. }
  128. ShaderPort.typeGameObject {
  129. --port-color:#8FC1DF;
  130. }
  131. ShaderPort.typeFloat {
  132. --port-color:#84E4E7;
  133. }
  134. ShaderPort.typeFloat1 {
  135. /* Same as typeFloat */
  136. --port-color:#84E4E7;
  137. }
  138. ShaderPort.typeSingle {
  139. /* Same as typeFloat */
  140. --port-color:#84E4E7;
  141. }
  142. ShaderPort.typeDouble {
  143. /* Same as typeFloat */
  144. /* todo we might want to differentiate that from float */
  145. --port-color:#84E4E7;
  146. }
  147. ShaderPort.typeFloat2 {
  148. --port-color:#9AEF92;
  149. }
  150. ShaderPort.typeVector2 {
  151. /* Same as typeFloat2 */
  152. --port-color:#9AEF92;
  153. }
  154. ShaderPort.typeComponent {
  155. --port-color:#C9F774;
  156. }
  157. ShaderPort.typeFloat3 {
  158. --port-color:#F6FF9A;
  159. }
  160. ShaderPort.typeVector3 {
  161. /* Same as typeFloat3 */
  162. --port-color:#F6FF9A;
  163. }
  164. ShaderPort.typeString {
  165. --port-color:#FCD76E;
  166. }