Example #1
0
 public void LoadXML(XmlReader reader)
 {
     XMLHelpers.ReadDouble(reader, "distanceMinimum", ref _DistanceMinimum);
     XMLHelpers.ReadInt(reader, "distanceMinimumMode", ref _DistanceMinimumMode);
     XMLHelpers.ReadDouble(reader, "distanceIterations", ref _DistanceIterations);
     XMLHelpers.ReadDouble(reader, "stepSize", ref _StepSize);
     XMLHelpers.ReadDouble(reader, "distanceExtents", ref _DistanceExtents);
     XMLHelpers.ReadInt(reader, "fractalIterationCount", ref _FractalIterationCount);
     XMLHelpers.ReadInt(reader, "colourIterationCount", ref _ColourIterationCount);
     XMLHelpers.ReadInt(reader, "deMode", ref _DEMode);
     XMLHelpers.ReadInt(reader, "background", ref _Background);
     XMLHelpers.ReadInt(reader, "lighting", ref _Lighting);
     XMLHelpers.ReadDouble(reader, "sunHeight", ref _SunHeight);
     XMLHelpers.ReadDouble(reader, "sunDirection", ref _SunDirection);
     XMLHelpers.ReadBool(reader, "headlightEnabled", ref _Headlight);
     XMLHelpers.ReadDouble(reader, "headlightStrength", ref _HeadLightStrength);
     XMLHelpers.ReadDouble(reader, "fogStrength", ref _FogStrength);
     XMLHelpers.ReadColour(reader, "fogColour", ref _FogColour);
     XMLHelpers.ReadInt(reader, "fogSamples", ref _FogSamples);
     XMLHelpers.ReadFogType(reader, "fogType", ref _FogType);
 }