sample.material 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. material texturedUnlit
  2. {
  3. technique
  4. {
  5. pass
  6. {
  7. vertexShader = res/shaders/textured.vert
  8. fragmentShader = res/shaders/textured.frag
  9. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  10. sampler u_diffuseTexture
  11. {
  12. mipmap = true
  13. wrapS = CLAMP
  14. wrapT = CLAMP
  15. minFilter = LINEAR_MIPMAP_LINEAR
  16. magFilter = LINEAR
  17. }
  18. renderState
  19. {
  20. cullFace = true
  21. depthTest = true
  22. }
  23. }
  24. }
  25. }
  26. material texturedSpecular
  27. {
  28. technique
  29. {
  30. pass
  31. {
  32. vertexShader = res/shaders/textured.vert
  33. fragmentShader = res/shaders/textured.frag
  34. defines = SPECULAR;DIRECTIONAL_LIGHT_COUNT 1
  35. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  36. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  37. u_worldViewMatrix = WORLD_VIEW_MATRIX
  38. u_cameraPosition = CAMERA_VIEW_POSITION
  39. u_ambientColor = SCENE_AMBIENT_COLOR
  40. u_specularExponent = 50
  41. sampler u_diffuseTexture
  42. {
  43. mipmap = true
  44. wrapS = CLAMP
  45. wrapT = CLAMP
  46. minFilter = LINEAR_MIPMAP_LINEAR
  47. magFilter = LINEAR
  48. }
  49. renderState
  50. {
  51. cullFace = true
  52. depthTest = true
  53. }
  54. }
  55. }
  56. }
  57. material texturedTransparent
  58. {
  59. technique
  60. {
  61. pass
  62. {
  63. vertexShader = res/shaders/textured.vert
  64. fragmentShader = res/shaders/textured.frag
  65. defines = DIRECTIONAL_LIGHT_COUNT 1
  66. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  67. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  68. sampler u_diffuseTexture
  69. {
  70. mipmap = true
  71. wrapS = CLAMP
  72. wrapT = CLAMP
  73. minFilter = LINEAR_MIPMAP_LINEAR
  74. magFilter = LINEAR
  75. }
  76. renderState
  77. {
  78. cullFace = true
  79. depthTest = true
  80. blend = true
  81. blendSrc = SRC_ALPHA
  82. blendDst = ONE_MINUS_SRC_ALPHA
  83. }
  84. }
  85. }
  86. }
  87. material colored
  88. {
  89. technique
  90. {
  91. pass
  92. {
  93. vertexShader = res/shaders/colored.vert
  94. fragmentShader = res/shaders/colored.frag
  95. defines = DIRECTIONAL_LIGHT_COUNT 1
  96. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  97. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  98. renderState
  99. {
  100. cullFace = true
  101. depthTest = true
  102. }
  103. }
  104. }
  105. }
  106. material boy : texturedTransparent
  107. {
  108. technique
  109. {
  110. pass
  111. {
  112. defines = SKINNING;SKINNING_JOINT_COUNT 31;MODULATE_ALPHA;DIRECTIONAL_LIGHT_COUNT 1
  113. u_matrixPalette = MATRIX_PALETTE
  114. u_modulateAlpha = 1.0
  115. sampler u_diffuseTexture
  116. {
  117. path = @character
  118. }
  119. }
  120. }
  121. }
  122. material boyshadow : texturedTransparent
  123. {
  124. technique
  125. {
  126. pass
  127. {
  128. sampler u_diffuseTexture
  129. {
  130. path = @shadow
  131. }
  132. }
  133. }
  134. }
  135. material floortiles : texturedUnlit
  136. {
  137. technique
  138. {
  139. pass
  140. {
  141. sampler u_diffuseTexture
  142. {
  143. path = @floortiles
  144. }
  145. }
  146. }
  147. }
  148. material floor : texturedUnlit
  149. {
  150. technique
  151. {
  152. pass
  153. {
  154. sampler u_diffuseTexture
  155. {
  156. path = @floor
  157. }
  158. }
  159. }
  160. }
  161. material wallwest : texturedUnlit
  162. {
  163. technique
  164. {
  165. pass
  166. {
  167. sampler u_diffuseTexture
  168. {
  169. path = @wallwest
  170. }
  171. }
  172. }
  173. }
  174. material walleast : texturedUnlit
  175. {
  176. technique
  177. {
  178. pass
  179. {
  180. sampler u_diffuseTexture
  181. {
  182. path = @walleast
  183. }
  184. }
  185. }
  186. }
  187. material wallnorth : texturedUnlit
  188. {
  189. technique
  190. {
  191. pass
  192. {
  193. sampler u_diffuseTexture
  194. {
  195. path = @wallnorth
  196. }
  197. }
  198. }
  199. }
  200. material wallsouth : texturedUnlit
  201. {
  202. technique
  203. {
  204. pass
  205. {
  206. sampler u_diffuseTexture
  207. {
  208. path = @wallsouth
  209. }
  210. }
  211. }
  212. }
  213. material walloverhang : texturedUnlit
  214. {
  215. technique
  216. {
  217. pass
  218. {
  219. sampler u_diffuseTexture
  220. {
  221. path = @walloverhang
  222. }
  223. }
  224. }
  225. }
  226. material toybox : texturedUnlit
  227. {
  228. technique
  229. {
  230. pass
  231. {
  232. sampler u_diffuseTexture
  233. {
  234. path = @toybox
  235. }
  236. }
  237. }
  238. }
  239. material green : colored
  240. {
  241. technique
  242. {
  243. pass
  244. {
  245. u_diffuseColor = 0.65, 0.7, 0, 1
  246. }
  247. }
  248. }
  249. material lightblue : colored
  250. {
  251. technique
  252. {
  253. pass
  254. {
  255. u_diffuseColor = 0.38, 0.72, 0.85, 1
  256. }
  257. }
  258. }
  259. material basketball : texturedSpecular
  260. {
  261. technique
  262. {
  263. pass
  264. {
  265. u_specularExponent = 12
  266. sampler u_diffuseTexture
  267. {
  268. path = @basketball
  269. wrapS = REPEAT
  270. wrapT = REPEAT
  271. }
  272. }
  273. }
  274. }
  275. material playtable : texturedUnlit
  276. {
  277. technique
  278. {
  279. pass
  280. {
  281. sampler u_diffuseTexture
  282. {
  283. path = @playtable
  284. }
  285. }
  286. }
  287. }
  288. material easel : texturedUnlit
  289. {
  290. technique
  291. {
  292. pass
  293. {
  294. sampler u_diffuseTexture
  295. {
  296. path = @easel
  297. }
  298. }
  299. }
  300. }
  301. material door : texturedUnlit
  302. {
  303. technique
  304. {
  305. pass
  306. {
  307. sampler u_diffuseTexture
  308. {
  309. path = @door
  310. }
  311. }
  312. }
  313. }
  314. material basketballnet : texturedUnlit
  315. {
  316. technique
  317. {
  318. pass
  319. {
  320. sampler u_diffuseTexture
  321. {
  322. path = @basketballnet
  323. }
  324. }
  325. }
  326. }
  327. material backboard : texturedUnlit
  328. {
  329. technique
  330. {
  331. pass
  332. {
  333. sampler u_diffuseTexture
  334. {
  335. path = @backboard
  336. }
  337. }
  338. }
  339. }
  340. material doorframe : texturedUnlit
  341. {
  342. technique
  343. {
  344. pass
  345. {
  346. sampler u_diffuseTexture
  347. {
  348. path = @doorframe
  349. }
  350. }
  351. }
  352. }
  353. material windowledge : texturedUnlit
  354. {
  355. technique
  356. {
  357. pass
  358. {
  359. sampler u_diffuseTexture
  360. {
  361. path = @windowledge
  362. }
  363. }
  364. }
  365. }
  366. material bookshelf : texturedUnlit
  367. {
  368. technique
  369. {
  370. pass
  371. {
  372. sampler u_diffuseTexture
  373. {
  374. path = @bookshelf
  375. }
  376. }
  377. }
  378. }
  379. material book : texturedUnlit
  380. {
  381. technique
  382. {
  383. pass
  384. {
  385. sampler u_diffuseTexture
  386. {
  387. path = @book
  388. }
  389. }
  390. }
  391. }
  392. material tabletop : texturedUnlit
  393. {
  394. technique
  395. {
  396. pass
  397. {
  398. sampler u_diffuseTexture
  399. {
  400. path = @tabletop
  401. }
  402. }
  403. }
  404. }
  405. material tableleg1 : texturedUnlit
  406. {
  407. technique
  408. {
  409. pass
  410. {
  411. sampler u_diffuseTexture
  412. {
  413. path = @tableleg1
  414. }
  415. }
  416. }
  417. }
  418. material tableleg2 : texturedUnlit
  419. {
  420. technique
  421. {
  422. pass
  423. {
  424. sampler u_diffuseTexture
  425. {
  426. path = @tableleg2
  427. }
  428. }
  429. }
  430. }
  431. material tableleg3 : texturedUnlit
  432. {
  433. technique
  434. {
  435. pass
  436. {
  437. sampler u_diffuseTexture
  438. {
  439. path = @tableleg3
  440. }
  441. }
  442. }
  443. }
  444. material tableleg4 : texturedUnlit
  445. {
  446. technique
  447. {
  448. pass
  449. {
  450. sampler u_diffuseTexture
  451. {
  452. path = @tableleg4
  453. }
  454. }
  455. }
  456. }
  457. material storageorganizer : texturedUnlit
  458. {
  459. technique
  460. {
  461. pass
  462. {
  463. sampler u_diffuseTexture
  464. {
  465. path = @storageorganizer
  466. }
  467. }
  468. }
  469. }