shapes.material 983 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. material textured
  2. {
  3. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  4. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  5. u_ambientColor = SCENE_AMBIENT_COLOR
  6. u_directionalLightDirection[0] = LIGHT_DIRECTION_0
  7. u_directionalLightColor[0] = LIGHT_COLOR_0
  8. sampler u_diffuseTexture
  9. {
  10. mipmap = true
  11. wrapS = CLAMP
  12. wrapT = CLAMP
  13. minFilter = LINEAR_MIPMAP_LINEAR
  14. magFilter = LINEAR
  15. }
  16. renderState
  17. {
  18. cullFace = true
  19. depthTest = true
  20. }
  21. technique
  22. {
  23. pass
  24. {
  25. vertexShader = res/shaders/textured.vert
  26. fragmentShader = res/shaders/textured.frag
  27. defines = DIRECTIONAL_LIGHT_COUNT 1
  28. }
  29. }
  30. }
  31. material sphere : textured
  32. {
  33. sampler u_diffuseTexture
  34. {
  35. path = res/png/dirt.png
  36. }
  37. }
  38. material box : textured
  39. {
  40. sampler u_diffuseTexture
  41. {
  42. path = res/png/crate.png
  43. }
  44. }