box.material 960 B

123456789101112131415161718192021222324252627282930313233343536
  1. material lambert1
  2. {
  3. technique
  4. {
  5. pass 0
  6. {
  7. // shaders
  8. vertexShader = res/shaders/textured.vert
  9. fragmentShader = res/shaders/textured.frag
  10. defines = DIRECTIONAL_LIGHT_COUNT 1
  11. // uniforms
  12. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  13. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  14. u_ambientColor = 0.4, 0.4, 0.4
  15. // samplers
  16. sampler u_diffuseTexture
  17. {
  18. path = res/png/crate.png
  19. mipmap = true
  20. wrapS = CLAMP
  21. wrapT = CLAMP
  22. minFilter = NEAREST_MIPMAP_LINEAR
  23. magFilter = LINEAR
  24. }
  25. // render state
  26. renderState
  27. {
  28. cullFace = true
  29. depthTest = true
  30. }
  31. }
  32. }
  33. }