1 |
|
// -*-C++-*- |
2 |
/* |
/* |
3 |
line.texture |
line.texture |
4 |
* |
* |
27 |
* Written by Matti Katila and Tuomas J. Lukka |
* Written by Matti Katila and Tuomas J. Lukka |
28 |
*/ |
*/ |
29 |
|
|
|
// -*-C++-*- |
|
30 |
|
|
31 |
void GENERATE(TextureParam *params, int width, int height, int depth, int components, float *data) { |
void GENERATE(TextureParam *params, int width, int height, int depth, int components, float *data) { |
32 |
if(components != 1) return; |
if(components != 1) return; |
61 |
case 2: |
case 2: |
62 |
data[index + 0] = 0.25; |
data[index + 0] = 0.25; |
63 |
data[index + 1] = 0.25; break; |
data[index + 1] = 0.25; break; |
64 |
case 1: data[index + 0] = 0.125; break; |
case 1: data[index + 0] = 0.25; break; |
65 |
} |
} |
66 |
} |
} |
67 |
} |
} |