codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <math.h> #include <iostream> int main() { float ao_strength = 2.2; // Table of gamma space multiply factors. static const float light_amount[3] = { powf(0.75, 1.0 / ao_strength), powf(0.5, 1.0 / ao_strength), powf(0.25, 1.0 / ao_strength), }; for (int i = 0; i < 3; i++) std::cout << light_amount[i] << std::endl; return 0; }
Private
[
?
]
Run code
Submit