Subversion Repositories Games.Chess Giants

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. # Scene lights configuration file
  2. #
  3. # Ambient light is a global, scene-wide parameter. Only one ambient light value is admissible.
  4. # Table reflection alpha ranges from 0 to 255 (0 = no reflection, 255 = full mirror).
  5. #
  6. # The materials can be one of those listed in the 3D engine's materials.cfg file.
  7. #
  8. # Lights can be of type directional (like the sun), point (a light bulb) or spot (flashlight beam).
  9. # The attenuation formula for point lights is :
  10. #    Atten = 1 / (att0 + (att1 * d) + (att2 * d²))
  11. # In spot lights, Phi is the outer cone angle. Theta is the inner cone angle.
  12. # Cone widths are to be specified in degrees.
  13. #
  14. # Lights and colors are specified as: Red, Green, Blue (ranging from 0 to 255)
  15. # Sources and directions are specified as: X, Y, Z (Z being the vertical axis)
  16. # Attenuations are specified as: att0, att1, att2
  17. # Cone widths are specified as: inner, outer
  18. #
  19. # Directional lights need: type, color, direction.
  20. # Point lights need: type, color, source, range, attenuation
  21. # Spot lights need: type, color, source, direction, range, attenuation, cone
  22. # Warning : avoid spot lights which are CPU and GPU-intensive.
  23. #
  24. # Leave empty fields that are not relevant for each particular light type
  25.  
  26. [global]
  27. ambient light = 200, 200, 200
  28. board material = "polish"
  29. table material = "polish"
  30. table reflection alpha = 50
  31. black material = "polish"
  32. white material = "polish"
  33.  
  34. [light 1]
  35. type = point
  36. color = 255, 255, 255
  37. source = 0, 0, 20
  38. direction =
  39. range = 200
  40. attenuation = 0, 0.03, 0
  41. cone =
  42.  
  43. [light 2]
  44. type = directional
  45. color = 100, 100, 100
  46. source =
  47. direction = 0, 5, 3
  48. range =
  49. attenuation =
  50. cone =
  51.  
  52. [light 3]
  53. type = directional
  54. color = 200, 200, 200
  55. source =
  56. direction = 0, 5, -3
  57. range =
  58. attenuation =
  59. cone =
  60.  
  61. [light 4]
  62. type = directional
  63. color = 100, 100, 100
  64. source =
  65. direction = 0, -5, 3
  66. range =
  67. attenuation =
  68. cone =
  69.  
  70. [light 5]
  71. type = directional
  72. color = 200, 200, 200
  73. source =
  74. direction = 0, -5, -3
  75. range =
  76. attenuation =
  77. cone =