Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 20 | pmbaty | 1 | #include "def_mat.h" |
| 2 | #include "CORE/FW/resource.h" |
||
| 3 | #include "CORE/MATH/matrix23.h" |
||
| 4 | #include "dbsetup.h" |
||
| 5 | #include "harness/trace.h" |
||
| 6 | |||
| 7 | // IDA: br_material* __cdecl SetupDefaultMaterial() |
||
| 8 | br_material* SetupDefaultMaterial(void) { |
||
| 9 | static br_material* default_mat; |
||
| 10 | |||
| 11 | default_mat = BrResAllocate(v1db.res, sizeof(br_material), BR_MEMORY_MATERIAL); |
||
| 12 | if (default_mat == NULL) { |
||
| 13 | return NULL; |
||
| 14 | } |
||
| 15 | default_mat->identifier = "default_mat"; |
||
| 16 | default_mat->colour = BR_COLOUR_RGB(255, 255, 255); |
||
| 17 | default_mat->ka = 0.1f; |
||
| 18 | default_mat->kd = 0.7f; |
||
| 19 | default_mat->ks = 0.0f; |
||
| 20 | default_mat->power = 20.f; |
||
| 21 | default_mat->flags = BR_MATF_LIGHT; |
||
| 22 | BrMatrix23Identity(&default_mat->map_transform); |
||
| 23 | default_mat->index_base = 10; |
||
| 24 | default_mat->index_range = 31; |
||
| 25 | return default_mat; |
||
| 26 | } |