|
|
|
|
|
|
float2(0.98181820, 0.38181686) |
|
|
|
}; |
|
|
|
|
|
|
|
static const float2 k_Fibonacci2dSeq89[] = { |
|
|
|
float2(0.00000000, 0.00000000), |
|
|
|
float2(0.01123596, 0.61797750), |
|
|
|
float2(0.02247191, 0.23595500), |
|
|
|
float2(0.03370786, 0.85393250), |
|
|
|
float2(0.04494382, 0.47191000), |
|
|
|
float2(0.05617978, 0.08988762), |
|
|
|
float2(0.06741573, 0.70786500), |
|
|
|
float2(0.07865169, 0.32584238), |
|
|
|
float2(0.08988764, 0.94382000), |
|
|
|
float2(0.10112359, 0.56179762), |
|
|
|
float2(0.11235955, 0.17977524), |
|
|
|
float2(0.12359551, 0.79775238), |
|
|
|
float2(0.13483146, 0.41573000), |
|
|
|
float2(0.14606741, 0.03370762), |
|
|
|
float2(0.15730338, 0.65168476), |
|
|
|
float2(0.16853933, 0.26966286), |
|
|
|
float2(0.17977528, 0.88764000), |
|
|
|
float2(0.19101124, 0.50561714), |
|
|
|
float2(0.20224719, 0.12359524), |
|
|
|
float2(0.21348314, 0.74157238), |
|
|
|
float2(0.22471911, 0.35955048), |
|
|
|
float2(0.23595506, 0.97752762), |
|
|
|
float2(0.24719101, 0.59550476), |
|
|
|
float2(0.25842696, 0.21348286), |
|
|
|
float2(0.26966292, 0.83146000), |
|
|
|
float2(0.28089887, 0.44943714), |
|
|
|
float2(0.29213482, 0.06741524), |
|
|
|
float2(0.30337077, 0.68539238), |
|
|
|
float2(0.31460676, 0.30336952), |
|
|
|
float2(0.32584271, 0.92134666), |
|
|
|
float2(0.33707866, 0.53932571), |
|
|
|
float2(0.34831461, 0.15730286), |
|
|
|
float2(0.35955057, 0.77528000), |
|
|
|
float2(0.37078652, 0.39325714), |
|
|
|
float2(0.38202247, 0.01123428), |
|
|
|
float2(0.39325842, 0.62921333), |
|
|
|
float2(0.40449437, 0.24719048), |
|
|
|
float2(0.41573033, 0.86516762), |
|
|
|
float2(0.42696628, 0.48314476), |
|
|
|
float2(0.43820226, 0.10112190), |
|
|
|
float2(0.44943821, 0.71910095), |
|
|
|
float2(0.46067417, 0.33707809), |
|
|
|
float2(0.47191012, 0.95505524), |
|
|
|
float2(0.48314607, 0.57303238), |
|
|
|
float2(0.49438202, 0.19100952), |
|
|
|
float2(0.50561798, 0.80898666), |
|
|
|
float2(0.51685393, 0.42696571), |
|
|
|
float2(0.52808988, 0.04494286), |
|
|
|
float2(0.53932583, 0.66292000), |
|
|
|
float2(0.55056179, 0.28089714), |
|
|
|
float2(0.56179774, 0.89887428), |
|
|
|
float2(0.57303369, 0.51685333), |
|
|
|
float2(0.58426964, 0.13483047), |
|
|
|
float2(0.59550560, 0.75280762), |
|
|
|
float2(0.60674155, 0.37078476), |
|
|
|
float2(0.61797750, 0.98876190), |
|
|
|
float2(0.62921351, 0.60673904), |
|
|
|
float2(0.64044946, 0.22471619), |
|
|
|
float2(0.65168542, 0.84269333), |
|
|
|
float2(0.66292137, 0.46067429), |
|
|
|
float2(0.67415732, 0.07865143), |
|
|
|
float2(0.68539327, 0.69662857), |
|
|
|
float2(0.69662923, 0.31460571), |
|
|
|
float2(0.70786518, 0.93258286), |
|
|
|
float2(0.71910113, 0.55056000), |
|
|
|
float2(0.73033708, 0.16853714), |
|
|
|
float2(0.74157304, 0.78651428), |
|
|
|
float2(0.75280899, 0.40449142), |
|
|
|
float2(0.76404494, 0.02246857), |
|
|
|
float2(0.77528089, 0.64044571), |
|
|
|
float2(0.78651685, 0.25842667), |
|
|
|
float2(0.79775280, 0.87640381), |
|
|
|
float2(0.80898875, 0.49438095), |
|
|
|
float2(0.82022470, 0.11235809), |
|
|
|
float2(0.83146065, 0.73033524), |
|
|
|
float2(0.84269661, 0.34831238), |
|
|
|
float2(0.85393256, 0.96628952), |
|
|
|
float2(0.86516851, 0.58426666), |
|
|
|
float2(0.87640452, 0.20224380), |
|
|
|
float2(0.88764048, 0.82022095), |
|
|
|
float2(0.89887643, 0.43820190), |
|
|
|
float2(0.91011238, 0.05617905), |
|
|
|
float2(0.92134833, 0.67415619), |
|
|
|
float2(0.93258429, 0.29213333), |
|
|
|
float2(0.94382024, 0.91011047), |
|
|
|
float2(0.95505619, 0.52808762), |
|
|
|
float2(0.96629214, 0.14606476), |
|
|
|
float2(0.97752810, 0.76404190), |
|
|
|
float2(0.98876405, 0.38201904) |
|
|
|
}; |
|
|
|
|
|
|
|
// Loads elements from one of the precomputed tables for sample counts of 21, 34, 55. |
|
|
|
// Computes sample positions at runtime otherwise. |
|
|
|
// Sample count must be a Fibonacci number (see 'k_FibonacciSeq'). |
|
|
|
|
|
|
case 21: return k_Fibonacci2dSeq21[i]; |
|
|
|
case 34: return k_Fibonacci2dSeq34[i]; |
|
|
|
case 55: return k_Fibonacci2dSeq55[i]; |
|
|
|
case 89: return k_Fibonacci2dSeq89[i]; |
|
|
|
default: |
|
|
|
{ |
|
|
|
int fibN1 = sampleCount; |
|
|
|