racer.material 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. material textured
  2. {
  3. // uniforms
  4. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  5. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  6. // samplers
  7. sampler u_diffuseTexture
  8. {
  9. mipmap = true
  10. wrapS = REPEAT
  11. wrapT = REPEAT
  12. minFilter = LINEAR_MIPMAP_LINEAR
  13. magFilter = LINEAR
  14. }
  15. // render state
  16. renderState
  17. {
  18. cullFace = true
  19. depthTest = true
  20. }
  21. technique
  22. {
  23. pass 0
  24. {
  25. // shaders
  26. vertexShader = res/shaders/textured.vert
  27. fragmentShader = res/shaders/textured.frag
  28. defines = DIRECTIONAL_LIGHT_COUNT 1
  29. }
  30. }
  31. }
  32. material texturedUnlit
  33. {
  34. // uniforms
  35. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  36. // samplers
  37. sampler u_diffuseTexture
  38. {
  39. mipmap = true
  40. wrapS = REPEAT
  41. wrapT = REPEAT
  42. minFilter = LINEAR_MIPMAP_LINEAR
  43. magFilter = LINEAR
  44. }
  45. // render state
  46. renderState
  47. {
  48. cullFace = true
  49. depthTest = true
  50. }
  51. technique
  52. {
  53. pass 0
  54. {
  55. // shaders
  56. vertexShader = res/shaders/textured.vert
  57. fragmentShader = res/shaders/textured.frag
  58. }
  59. }
  60. }
  61. material textured-alphatest : texturedUnlit
  62. {
  63. technique
  64. {
  65. pass 0
  66. {
  67. defines = TEXTURE_DISCARD_ALPHA
  68. }
  69. }
  70. }
  71. material colored
  72. {
  73. // uniforms
  74. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  75. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  76. // render state
  77. renderState
  78. {
  79. cullFace = true
  80. depthTest = true
  81. }
  82. technique
  83. {
  84. pass 0
  85. {
  86. // shaders
  87. vertexShader = res/shaders/colored.vert
  88. fragmentShader = res/shaders/colored.frag
  89. defines = DIRECTIONAL_LIGHT_COUNT 1
  90. }
  91. }
  92. }
  93. material coloredUnlit
  94. {
  95. // uniforms
  96. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  97. // render state
  98. renderState
  99. {
  100. cullFace = true
  101. depthTest = true
  102. }
  103. technique
  104. {
  105. pass 0
  106. {
  107. // shaders
  108. vertexShader = res/shaders/colored.vert
  109. fragmentShader = res/shaders/colored.frag
  110. }
  111. }
  112. }
  113. material car : textured
  114. {
  115. sampler u_diffuseTexture
  116. {
  117. path = @car
  118. }
  119. }
  120. material tile : texturedUnlit
  121. {
  122. }
  123. material tile1 : tile
  124. {
  125. sampler u_diffuseTexture
  126. {
  127. path = @panel_1
  128. }
  129. }
  130. material tile2 : tile
  131. {
  132. sampler u_diffuseTexture
  133. {
  134. path = @panel_2
  135. }
  136. }
  137. material tile3 : tile
  138. {
  139. sampler u_diffuseTexture
  140. {
  141. path = @panel_3
  142. }
  143. }
  144. material tile4 : tile
  145. {
  146. sampler u_diffuseTexture
  147. {
  148. path = @panel_4
  149. }
  150. }
  151. material tile5 : tile
  152. {
  153. sampler u_diffuseTexture
  154. {
  155. path = @panel_5
  156. }
  157. }
  158. material tile6 : tile
  159. {
  160. sampler u_diffuseTexture
  161. {
  162. path = @panel_6
  163. }
  164. }
  165. material tile7 : tile
  166. {
  167. sampler u_diffuseTexture
  168. {
  169. path = @panel_7
  170. }
  171. }
  172. material tile8 : tile
  173. {
  174. sampler u_diffuseTexture
  175. {
  176. path = @panel_8
  177. }
  178. }
  179. material tile9 : tile
  180. {
  181. sampler u_diffuseTexture
  182. {
  183. path = @panel_9
  184. }
  185. }
  186. material tile10 : tile
  187. {
  188. sampler u_diffuseTexture
  189. {
  190. path = @panel_10
  191. }
  192. }
  193. material tile11 : tile
  194. {
  195. sampler u_diffuseTexture
  196. {
  197. path = @panel_11
  198. }
  199. }
  200. material tile12 : tile
  201. {
  202. sampler u_diffuseTexture
  203. {
  204. path = @panel_12
  205. }
  206. }
  207. material tile13 : tile
  208. {
  209. sampler u_diffuseTexture
  210. {
  211. path = @panel_13
  212. }
  213. }
  214. material tile14 : tile
  215. {
  216. sampler u_diffuseTexture
  217. {
  218. path = @panel_14
  219. }
  220. }
  221. material tile15 : tile
  222. {
  223. sampler u_diffuseTexture
  224. {
  225. path = @panel_15
  226. }
  227. }
  228. material tile16 : tile
  229. {
  230. sampler u_diffuseTexture
  231. {
  232. path = @panel_16
  233. }
  234. }
  235. material track : texturedUnlit
  236. {
  237. sampler u_diffuseTexture
  238. {
  239. path = @gravel_2
  240. }
  241. sampler u_lightmapTexture
  242. {
  243. path = @track_1
  244. mipmap = true
  245. wrapS = REPEAT
  246. wrapT = REPEAT
  247. minFilter = LINEAR_MIPMAP_LINEAR
  248. magFilter = LINEAR
  249. }
  250. technique
  251. {
  252. pass 0
  253. {
  254. defines = LIGHTMAP;TEXCOORD1
  255. }
  256. }
  257. }
  258. material pillar : textured
  259. {
  260. sampler u_diffuseTexture
  261. {
  262. path = @textures_8
  263. }
  264. }
  265. material rail : texturedUnlit
  266. {
  267. sampler u_diffuseTexture
  268. {
  269. path = @rails
  270. }
  271. renderState
  272. {
  273. cullFace = false
  274. blend = true
  275. srcBlend = SRC_ALPHA
  276. dstBlend = ONE_MINUS_SRC_ALPHA
  277. }
  278. }
  279. material tree : textured-alphatest
  280. {
  281. renderState
  282. {
  283. cullFace = false
  284. }
  285. }
  286. material treepine : tree
  287. {
  288. sampler u_diffuseTexture
  289. {
  290. path = @tree_3
  291. }
  292. }
  293. material treelightgreen : tree
  294. {
  295. sampler u_diffuseTexture
  296. {
  297. path = @tree_7
  298. }
  299. }
  300. material treebig : tree
  301. {
  302. sampler u_diffuseTexture
  303. {
  304. path = @tree_4
  305. }
  306. }
  307. material treebrown : tree
  308. {
  309. sampler u_diffuseTexture
  310. {
  311. path = @tree_2
  312. }
  313. }
  314. material treetall : tree
  315. {
  316. sampler u_diffuseTexture
  317. {
  318. path = @tree
  319. }
  320. }
  321. material treetallpine : tree
  322. {
  323. sampler u_diffuseTexture
  324. {
  325. path = @tree_5
  326. }
  327. }
  328. material treewhitepine : tree
  329. {
  330. sampler u_diffuseTexture
  331. {
  332. path = @tree_6
  333. }
  334. }
  335. material treedetailed : tree
  336. {
  337. sampler u_diffuseTexture
  338. {
  339. path = @d_tree
  340. }
  341. }
  342. material shrublightgreen : tree
  343. {
  344. sampler u_diffuseTexture
  345. {
  346. path = @shrub_1
  347. }
  348. }
  349. material shrubdark : tree
  350. {
  351. sampler u_diffuseTexture
  352. {
  353. path = @shrub_2
  354. }
  355. }
  356. material shruborange : tree
  357. {
  358. sampler u_diffuseTexture
  359. {
  360. path = @shrub_3
  361. }
  362. }
  363. material grassgreen : tree
  364. {
  365. sampler u_diffuseTexture
  366. {
  367. path = @grassbunch_1
  368. }
  369. }
  370. material grassred : tree
  371. {
  372. sampler u_diffuseTexture
  373. {
  374. path = @grassbunch_2
  375. }
  376. }
  377. material trunk : textured
  378. {
  379. sampler u_diffuseTexture
  380. {
  381. path = @trunk_1
  382. }
  383. }
  384. material trunk2 : textured
  385. {
  386. sampler u_diffuseTexture
  387. {
  388. path = @trunk_2
  389. }
  390. }
  391. material chain : textured-alphatest
  392. {
  393. sampler u_diffuseTexture
  394. {
  395. path = @chain_fence_1
  396. }
  397. renderState
  398. {
  399. cullFace = false
  400. }
  401. }
  402. material wall : texturedUnlit
  403. {
  404. sampler u_diffuseTexture
  405. {
  406. path = @design_11
  407. }
  408. }
  409. material lightpost : colored
  410. {
  411. u_diffuseColor = 0.1, 0.1, 0.1, 1.0
  412. }
  413. material lightbulb : coloredUnlit
  414. {
  415. u_diffuseColor = 1, 1, 0.815, 1
  416. }
  417. material water : colored
  418. {
  419. u_diffuseColor = 0.75, 0.9, 0.95, 0.85
  420. renderState
  421. {
  422. blend = true
  423. srcBlend = SRC_ALPHA
  424. dstBlend = ONE_MINUS_SRC_ALPHA
  425. }
  426. }
  427. material mountains : texturedUnlit
  428. {
  429. sampler u_diffuseTexture
  430. {
  431. path = @panorama_2
  432. }
  433. renderState
  434. {
  435. cullFace = false
  436. depthWrite = false
  437. blend = true
  438. srcBlend = SRC_ALPHA
  439. dstBlend = ONE_MINUS_SRC_ALPHA
  440. }
  441. }
  442. material skydome : texturedUnlit
  443. {
  444. sampler u_diffuseTexture
  445. {
  446. path = @panorama_3
  447. }
  448. renderState
  449. {
  450. cullFace = false
  451. }
  452. }