scene.material 8.3 KB

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