Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
3.9 KiB

  1. /*
  2. jitter.h
  3. This file contains jitter point arrays for 2,3,4,8,15,24 and 66 jitters.
  4. The arrays are named j2, j3, etc. Each element in the array has the form,
  5. for example, j8[0].x and j8[0].y
  6. Values are floating point in the range -.5 < x < .5, -.5 < y < .5, and
  7. have a gaussian distribution around the origin.
  8. Use these to do model jittering for scene anti-aliasing and view volume
  9. jittering for depth of field effects. Use in conjunction with the
  10. accwindow() routine.
  11. */
  12. typedef struct
  13. {
  14. GLfloat x, y;
  15. } jitter_point;
  16. #define MAX_SAMPLES 66
  17. /* 2 jitter points */
  18. jitter_point j2[] =
  19. {
  20. { 0.246490, 0.249999},
  21. {-0.246490, -0.249999}
  22. };
  23. /* 3 jitter points */
  24. jitter_point j3[] =
  25. {
  26. {-0.373411, -0.250550},
  27. { 0.256263, 0.368119},
  28. { 0.117148, -0.117570}
  29. };
  30. /* 4 jitter points */
  31. jitter_point j4[] =
  32. {
  33. {-0.208147, 0.353730},
  34. { 0.203849, -0.353780},
  35. {-0.292626, -0.149945},
  36. { 0.296924, 0.149994}
  37. };
  38. /* 8 jitter points */
  39. jitter_point j8[] =
  40. {
  41. {-0.334818, 0.435331},
  42. { 0.286438, -0.393495},
  43. { 0.459462, 0.141540},
  44. {-0.414498, -0.192829},
  45. {-0.183790, 0.082102},
  46. {-0.079263, -0.317383},
  47. { 0.102254, 0.299133},
  48. { 0.164216, -0.054399}
  49. };
  50. /* 15 jitter points */
  51. jitter_point j15[] =
  52. {
  53. { 0.285561, 0.188437},
  54. { 0.360176, -0.065688},
  55. {-0.111751, 0.275019},
  56. {-0.055918, -0.215197},
  57. {-0.080231, -0.470965},
  58. { 0.138721, 0.409168},
  59. { 0.384120, 0.458500},
  60. {-0.454968, 0.134088},
  61. { 0.179271, -0.331196},
  62. {-0.307049, -0.364927},
  63. { 0.105354, -0.010099},
  64. {-0.154180, 0.021794},
  65. {-0.370135, -0.116425},
  66. { 0.451636, -0.300013},
  67. {-0.370610, 0.387504}
  68. };
  69. /* 24 jitter points */
  70. jitter_point j24[] =
  71. {
  72. { 0.030245, 0.136384},
  73. { 0.018865, -0.348867},
  74. {-0.350114, -0.472309},
  75. { 0.222181, 0.149524},
  76. {-0.393670, -0.266873},
  77. { 0.404568, 0.230436},
  78. { 0.098381, 0.465337},
  79. { 0.462671, 0.442116},
  80. { 0.400373, -0.212720},
  81. {-0.409988, 0.263345},
  82. {-0.115878, -0.001981},
  83. { 0.348425, -0.009237},
  84. {-0.464016, 0.066467},
  85. {-0.138674, -0.468006},
  86. { 0.144932, -0.022780},
  87. {-0.250195, 0.150161},
  88. {-0.181400, -0.264219},
  89. { 0.196097, -0.234139},
  90. {-0.311082, -0.078815},
  91. { 0.268379, 0.366778},
  92. {-0.040601, 0.327109},
  93. {-0.234392, 0.354659},
  94. {-0.003102, -0.154402},
  95. { 0.297997, -0.417965}
  96. };
  97. /* 66 jitter points */
  98. jitter_point j66[] =
  99. {
  100. { 0.266377, -0.218171},
  101. {-0.170919, -0.429368},
  102. { 0.047356, -0.387135},
  103. {-0.430063, 0.363413},
  104. {-0.221638, -0.313768},
  105. { 0.124758, -0.197109},
  106. {-0.400021, 0.482195},
  107. { 0.247882, 0.152010},
  108. {-0.286709, -0.470214},
  109. {-0.426790, 0.004977},
  110. {-0.361249, -0.104549},
  111. {-0.040643, 0.123453},
  112. {-0.189296, 0.438963},
  113. {-0.453521, -0.299889},
  114. { 0.408216, -0.457699},
  115. { 0.328973, -0.101914},
  116. {-0.055540, -0.477952},
  117. { 0.194421, 0.453510},
  118. { 0.404051, 0.224974},
  119. { 0.310136, 0.419700},
  120. {-0.021743, 0.403898},
  121. {-0.466210, 0.248839},
  122. { 0.341369, 0.081490},
  123. { 0.124156, -0.016859},
  124. {-0.461321, -0.176661},
  125. { 0.013210, 0.234401},
  126. { 0.174258, -0.311854},
  127. { 0.294061, 0.263364},
  128. {-0.114836, 0.328189},
  129. { 0.041206, -0.106205},
  130. { 0.079227, 0.345021},
  131. {-0.109319, -0.242380},
  132. { 0.425005, -0.332397},
  133. { 0.009146, 0.015098},
  134. {-0.339084, -0.355707},
  135. {-0.224596, -0.189548},
  136. { 0.083475, 0.117028},
  137. { 0.295962, -0.334699},
  138. { 0.452998, 0.025397},
  139. { 0.206511, -0.104668},
  140. { 0.447544, -0.096004},
  141. {-0.108006, -0.002471},
  142. {-0.380810, 0.130036},
  143. {-0.242440, 0.186934},
  144. {-0.200363, 0.070863},
  145. {-0.344844, -0.230814},
  146. { 0.408660, 0.345826},
  147. {-0.233016, 0.305203},
  148. { 0.158475, -0.430762},
  149. { 0.486972, 0.139163},
  150. {-0.301610, 0.009319},
  151. { 0.282245, -0.458671},
  152. { 0.482046, 0.443890},
  153. {-0.121527, 0.210223},
  154. {-0.477606, -0.424878},
  155. {-0.083941, -0.121440},
  156. {-0.345773, 0.253779},
  157. { 0.234646, 0.034549},
  158. { 0.394102, -0.210901},
  159. {-0.312571, 0.397656},
  160. { 0.200906, 0.333293},
  161. { 0.018703, -0.261792},
  162. {-0.209349, -0.065383},
  163. { 0.076248, 0.478538},
  164. {-0.073036, -0.355064},
  165. { 0.145087, 0.221726}
  166. };