source: golgotha/src/golg/f_tables.cc @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 5.3 KB
RevLine 
[80]1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9/* Generated from the following program :
10 
11void main()
12{
13  int i;
14
15  printf("float g1_table_0_31_to_n1_1[32]={\n");
16  for (i=0; i<32; i++)
17    printf("%g%s",((double)i-15.5)/15.5, i==31 ? "};\n" : ",");
18
19  printf("float g1_table_0_31_to_0_1[32]={\n");
20  for (i=0; i<32; i++)
21    printf("%g%s",((double)i)/31.0, i==31 ? "};\n" : ",");   
22
23  printf("float g1_table_0_255_to_0_1[256]={\n");
24  for (i=0; i<256; i++)
25    printf("%g%s",((double)i)/255.0, i==255 ? "};\n" : ",");   
26
27
28  printf("float g1_shadow_sub_0_63_to_0_1_red_or_green[64]={\n");
29  for (i=0; i<64; i++)
30    printf("%g%s", i/63.0, i==63 ? "};\n" : ",");
31
32  printf("float g1_shadow_sub_0_63_to_0_1_blue[64]={\n");
33  for (i=0; i<64; i++)
34    printf("%g%s", (i+1)/64.0, i==63 ? "};\n" : ",");
35
36
37
38}
39
40*/
41
42float g1_table_0_31_to_n1_1[32]={
43-1,-0.935484,-0.870968,-0.806452,-0.741935,-0.677419,-0.612903,-0.548387,-0.483871,-0.419355,-0.354839,-0.290323,-0.225806,-0.16129,-0.0967742,-0.0322581,0.0322581,0.0967742,0.16129,0.225806,0.290323,0.354839,0.419355,0.483871,0.548387,0.612903,0.677419,0.741935,0.806452,0.870968,0.935484,1};
44float g1_table_0_31_to_0_1[32]={
450,0.0322581,0.0645161,0.0967742,0.129032,0.16129,0.193548,0.225806,0.258065,0.290323,0.322581,0.354839,0.387097,0.419355,0.451613,0.483871,0.516129,0.548387,0.580645,0.612903,0.645161,0.677419,0.709677,0.741935,0.774194,0.806452,0.83871,0.870968,0.903226,0.935484,0.967742,1};
46float g1_table_0_255_to_0_1[256]={
470,0.00392157,0.00784314,0.0117647,0.0156863,0.0196078,0.0235294,0.027451,0.0313725,0.0352941,0.0392157,0.0431373,0.0470588,0.0509804,0.054902,0.0588235,0.0627451,0.0666667,0.0705882,0.0745098,0.0784314,0.0823529,0.0862745,0.0901961,0.0941176,0.0980392,0.101961,0.105882,0.109804,0.113725,0.117647,0.121569,0.12549,0.129412,0.133333,0.137255,0.141176,0.145098,0.14902,0.152941,0.156863,0.160784,0.164706,0.168627,0.172549,0.176471,0.180392,0.184314,0.188235,0.192157,0.196078,0.2,0.203922,0.207843,0.211765,0.215686,0.219608,0.223529,0.227451,0.231373,0.235294,0.239216,0.243137,0.247059,0.25098,0.254902,0.258824,0.262745,0.266667,0.270588,0.27451,0.278431,0.282353,0.286275,0.290196,0.294118,0.298039,0.301961,0.305882,0.309804,0.313725,0.317647,0.321569,0.32549,0.329412,0.333333,0.337255,0.341176,0.345098,0.34902,0.352941,0.356863,0.360784,0.364706,0.368627,0.372549,0.376471,0.380392,0.384314,0.388235,0.392157,0.396078,0.4,0.403922,0.407843,0.411765,0.415686,0.419608,0.423529,0.427451,0.431373,0.435294,0.439216,0.443137,0.447059,0.45098,0.454902,0.458824,0.462745,0.466667,0.470588,0.47451,0.478431,0.482353,0.486275,0.490196,0.494118,0.498039,0.501961,0.505882,0.509804,0.513725,0.517647,0.521569,0.52549,0.529412,0.533333,0.537255,0.541176,0.545098,0.54902,0.552941,0.556863,0.560784,0.564706,0.568627,0.572549,0.576471,0.580392,0.584314,0.588235,0.592157,0.596078,0.6,0.603922,0.607843,0.611765,0.615686,0.619608,0.623529,0.627451,0.631373,0.635294,0.639216,0.643137,0.647059,0.65098,0.654902,0.658824,0.662745,0.666667,0.670588,0.67451,0.678431,0.682353,0.686275,0.690196,0.694118,0.698039,0.701961,0.705882,0.709804,0.713725,0.717647,0.721569,0.72549,0.729412,0.733333,0.737255,0.741176,0.745098,0.74902,0.752941,0.756863,0.760784,0.764706,0.768627,0.772549,0.776471,0.780392,0.784314,0.788235,0.792157,0.796078,0.8,0.803922,0.807843,0.811765,0.815686,0.819608,0.823529,0.827451,0.831373,0.835294,0.839216,0.843137,0.847059,0.85098,0.854902,0.858824,0.862745,0.866667,0.870588,0.87451,0.878431,0.882353,0.886275,0.890196,0.894118,0.898039,0.901961,0.905882,0.909804,0.913725,0.917647,0.921569,0.92549,0.929412,0.933333,0.937255,0.941176,0.945098,0.94902,0.952941,0.956863,0.960784,0.964706,0.968627,0.972549,0.976471,0.980392,0.984314,0.988235,0.992157,0.996078,1};
48float g1_shadow_sub_0_63_to_0_1_red_or_green[64]={
490,0.015873,0.031746,0.047619,0.0634921,0.0793651,0.0952381,0.111111,0.126984,0.142857,0.15873,0.174603,0.190476,0.206349,0.222222,0.238095,0.253968,0.269841,0.285714,0.301587,0.31746,0.333333,0.349206,0.365079,0.380952,0.396825,0.412698,0.428571,0.444444,0.460317,0.47619,0.492063,0.507937,0.52381,0.539683,0.555556,0.571429,0.587302,0.603175,0.619048,0.634921,0.650794,0.666667,0.68254,0.698413,0.714286,0.730159,0.746032,0.761905,0.777778,0.793651,0.809524,0.825397,0.84127,0.857143,0.873016,0.888889,0.904762,0.920635,0.936508,0.952381,0.968254,0.984127,1};
50float g1_shadow_sub_0_63_to_0_1_blue[64]={
510.015625,0.03125,0.046875,0.0625,0.078125,0.09375,0.109375,0.125,0.140625,0.15625,0.171875,0.1875,0.203125,0.21875,0.234375,0.25,0.265625,0.28125,0.296875,0.3125,0.328125,0.34375,0.359375,0.375,0.390625,0.40625,0.421875,0.4375,0.453125,0.46875,0.484375,0.5,0.515625,0.53125,0.546875,0.5625,0.578125,0.59375,0.609375,0.625,0.640625,0.65625,0.671875,0.6875,0.703125,0.71875,0.734375,0.75,0.765625,0.78125,0.796875,0.8125,0.828125,0.84375,0.859375,0.875,0.890625,0.90625,0.921875,0.9375,0.953125,0.96875,0.984375,1};
Note: See TracBrowser for help on using the repository browser.