Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ShaderPort.uss 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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.typeTexture.inactive {
  71. --port-color:#7F5C5C;
  72. }
  73. ShaderPort.typeTexture2D {
  74. /* Same as typeTexture */
  75. --port-color:#FF8B8B;
  76. }
  77. ShaderPort.typeTexture2D.inactive {
  78. /* Same as typeTexture */
  79. --port-color:#7F5C5C;
  80. }
  81. ShaderPort.typeTexture2DArray {
  82. /* Same as typeTexture */
  83. --port-color:#FF8B8B;
  84. }
  85. ShaderPort.typeTexture2DArray.inactive {
  86. /* Same as typeTexture */
  87. --port-color:#7F5C5C;
  88. }
  89. ShaderPort.typeTexture3D {
  90. /* Same as typeTexture */
  91. --port-color:#FF8B8B;
  92. }
  93. ShaderPort.typeTexture3D.inactive {
  94. /* Same as typeTexture */
  95. --port-color:#7F5C5C;
  96. }
  97. ShaderPort.typeCubemap {
  98. /* Same as typeTexture */
  99. --port-color:#FF8B8B;
  100. }
  101. ShaderPort.typeCubemap.inactive {
  102. /* Same as typeTexture */
  103. --port-color:#7F5C5C;
  104. }
  105. ShaderPort.typeGraphScript {
  106. /* Todo: there is no such type in Unity atm */
  107. --port-color:#E681BA;
  108. }
  109. ShaderPort.typeGraphScript.inactive {
  110. /* Todo: there is no such type in Unity atm */
  111. --port-color:#73405D;
  112. }
  113. ShaderPort.typeFloat4 {
  114. --port-color:#FBCBF4;
  115. }
  116. ShaderPort.typeFloat4.inactive {
  117. --port-color:#7D657A;
  118. }
  119. ShaderPort.typeVector4 {
  120. /* Same as typeFloat4 */
  121. --port-color:#FBCBF4;
  122. }
  123. ShaderPort.typeVector4.inactive {
  124. /* Same as typeFloat4 */
  125. --port-color:#7D657A;
  126. }
  127. ShaderPort.typeQuaternion {
  128. /* Same as typeFloat4 */
  129. --port-color:#FBCBF4;
  130. }
  131. ShaderPort.typeQuaternion.inactive {
  132. /* Same as typeFloat4 */
  133. --port-color:#7D657A;
  134. }
  135. ShaderPort.typeColor {
  136. /* Same as typeFloat4 */
  137. --port-color:#FBCBF4;
  138. }
  139. ShaderPort.typeColor.inactive {
  140. /* Same as typeFloat4 */
  141. --port-color:#7D657A;
  142. }
  143. ShaderPort.typeInt {
  144. --port-color:#9481E6;
  145. }
  146. ShaderPort.typeInt.inactive {
  147. --port-color:#4A4073;
  148. }
  149. ShaderPort.typeInt32 {
  150. /* Same as typeInt */
  151. --port-color:#9481E6;
  152. }
  153. ShaderPort.typeInt32.inactive {
  154. /* Same as typeInt */
  155. --port-color:#4A4073;
  156. }
  157. /* TEMP STUFF THAT SHOULD ACTUALLY STAY IN GRAPHVIEW */
  158. ShaderPort.typeInt64 {
  159. /* Same as typeInt */
  160. /* todo we might want to differentiate that from int32 */
  161. --port-color:#9481E6;
  162. }
  163. ShaderPort.typeInt64.inactive {
  164. /* Same as typeInt */
  165. /* todo we might want to differentiate that from int32 */
  166. --port-color:#4A4073;
  167. }
  168. ShaderPort.typeBoolean {
  169. --port-color:#9481E6;
  170. }
  171. ShaderPort.typeBoolean.inactive {
  172. --port-color:#4A4073;
  173. }
  174. ShaderPort.typeMatrix {
  175. --port-color:#8FC1DF;
  176. }
  177. ShaderPort.typeMatrix.inactive {
  178. --port-color:#47606F;
  179. }
  180. ShaderPort.typeMatrix4x4 {
  181. /* Same as typeMatrix */
  182. --port-color:#8FC1DF;
  183. }
  184. ShaderPort.typeMatrix4x4.inactive {
  185. /* Same as typeMatrix */
  186. --port-color:#47606F;
  187. }
  188. ShaderPort.typeGameObject {
  189. --port-color:#8FC1DF;
  190. }
  191. ShaderPort.typeGameObject.inactive {
  192. --port-color:#47606F;
  193. }
  194. ShaderPort.typeFloat {
  195. --port-color:#84E4E7;
  196. }
  197. ShaderPort.typeFloat.inactive {
  198. --port-color:#427273;
  199. }
  200. ShaderPort.typeFloat1 {
  201. /* Same as typeFloat */
  202. --port-color:#84E4E7;
  203. }
  204. ShaderPort.typeFloat1.inactive {
  205. /* Same as typeFloat */
  206. --port-color:#427273;
  207. }
  208. ShaderPort.typeSingle {
  209. /* Same as typeFloat */
  210. --port-color:#84E4E7;
  211. }
  212. ShaderPort.typeSingle.inactive {
  213. /* Same as typeFloat */
  214. --port-color:#427273;
  215. }
  216. ShaderPort.typeDouble {
  217. /* Same as typeFloat */
  218. /* todo we might want to differentiate that from float */
  219. --port-color:#84E4E7;
  220. }
  221. ShaderPort.typeDouble.inactive {
  222. /* Same as typeFloat */
  223. /* todo we might want to differentiate that from float */
  224. --port-color:#427273;
  225. }
  226. ShaderPort.typeFloat2 {
  227. --port-color:#9AEF92;
  228. }
  229. ShaderPort.typeFloat2.inactive {
  230. --port-color:#4D7749;
  231. }
  232. ShaderPort.typeVector2 {
  233. /* Same as typeFloat2 */
  234. --port-color:#9AEF92;
  235. }
  236. ShaderPort.typeVector2.inactive {
  237. /* Same as typeFloat2 */
  238. --port-color:#4D7749;
  239. }
  240. ShaderPort.typeComponent {
  241. --port-color:#C9F774;
  242. }
  243. ShaderPort.typeComponent.inactive {
  244. --port-color:#647B3A;
  245. }
  246. ShaderPort.typeFloat3 {
  247. --port-color:#F6FF9A;
  248. }
  249. ShaderPort.typeFloat3.inactive {
  250. --port-color:#7B7F4D;
  251. }
  252. ShaderPort.typeVector3 {
  253. /* Same as typeFloat3 */
  254. --port-color:#F6FF9A;
  255. }
  256. ShaderPort.typeVector3.inactive {
  257. /* Same as typeFloat3 */
  258. --port-color:#7B7F4D;
  259. }
  260. ShaderPort.typeString {
  261. --port-color:#FCD76E;
  262. }
  263. ShaderPort.typeString.inactive {
  264. --port-color:#7E6B37;
  265. }