| 87 | } |
| 88 | |
| 89 | bool CEnvModifier::saveIni(CInifile& ini, LPCSTR section) |
| 90 | { |
| 91 | ini.w_fvector3(section, "position", position); |
| 92 | ini.w_float(section, "radius", radius); |
| 93 | ini.w_float(section, "power", power); |
| 94 | ini.w_float(section, "far_plane", far_plane); |
| 95 | ini.w_fvector3(section, "fog_color", fog_color); |
| 96 | ini.w_float(section, "fog_density", fog_density); |
| 97 | ini.w_fvector3(section, "ambient", ambient); |
| 98 | ini.w_fvector3(section, "sky_color", sky_color); |
| 99 | ini.w_fvector3(section, "hemi_color", hemi_color); |
| 100 | |
| 101 | ini.w_u16(section, "use_flags", use_flags.get()); |
| 102 | |
| 103 | ini.w_u8(section, "shape_type", shape_type); |
| 104 | ini.w_fvector3(section, "shape_rotate", shape_rotate); |
| 105 | ini.w_fvector3(section, "shape_halfsize", shape_halfsize); |
| 106 | |
| 107 | return true; |
| 108 | } |
| 109 | |
| 110 | float CEnvModifier::sum(CEnvModifier& M, Fvector3& view) |
| 111 | { |