예제 #1
0
    private void read_materials()
    {
        while (text_read_letter() == 'm')
        {
            material_class material_temporary;
            material_temporary = new material_class();

            for (int i = 0; i < 3; i++)
            {
                material_temporary.color[i].reflectivity = text_read_number();
                material_temporary.reflect_glossiness    = text_read_number();
                material_temporary.color[i].refractivity = text_read_number();
                material_temporary.refract_glossiness    = text_read_number();
                material_temporary.color[i].radiance     = text_read_number();
            }

            material_temporary.refractive_index = text_read_number();

            material_temporary.calculate_mean();

            material.Add(material_temporary);
        }
    }
예제 #2
0
 public object_class()
 {
     this.random_position              = true;
     this.equal_density                = true;
     this.color_object                 = new Color((float)2, (float)2, (float)2, (float)1);
     this.parent_clear                 = true;
     this.combine                      = true;
     this.combine_total                = true;
     this.place_max                    = 1;
     this.scale_start                  = new Vector3((float)1, (float)1, (float)1);
     this.scale_end                    = new Vector3((float)1, (float)1, (float)1);
     this.unlink_y                     = 0.25f;
     this.unlink_z                     = 0.25f;
     this.scale_link                   = true;
     this.scale_link_start_y           = true;
     this.scale_link_end_y             = true;
     this.scale_link_start_z           = true;
     this.scale_link_end_z             = true;
     this.scaleCurve                   = AnimationCurve.Linear((float)0, (float)0, (float)1, (float)1);
     this.rotation_start               = new Vector3((float)0, (float)0, (float)0);
     this.rotation_end                 = new Vector3((float)0, (float)0, (float)0);
     this.position_start               = new Vector3((float)0, (float)0, (float)0);
     this.position_end                 = new Vector3((float)0, (float)0, (float)0);
     this.terrain_height               = true;
     this.rotation_map                 = new rotation_map_class();
     this.distance_include_scale       = true;
     this.distance_include_scale_group = true;
     this.objects_placed               = new List <distance_class>();
     this.object_material              = new material_class();
     this.combine_parent_name          = string.Empty;
     this.swap_text                    = "S";
     this.object_child                 = new List <object_class>();
     this.ray_length                   = (float)20;
     this.cast_height                  = (float)20;
     this.ray_radius                   = (float)1;
     this.ray_direction                = new Vector3((float)0, (float)-1, (float)0);
 }
예제 #3
0
 public object_class()
 {
     this.random_position = true;
     this.equal_density = true;
     this.color_object = new Color((float)2, (float)2, (float)2, (float)1);
     this.parent_clear = true;
     this.combine = true;
     this.combine_total = true;
     this.place_max = 1;
     this.scale_start = new Vector3((float)1, (float)1, (float)1);
     this.scale_end = new Vector3((float)1, (float)1, (float)1);
     this.unlink_y = 0.25f;
     this.unlink_z = 0.25f;
     this.scale_link = true;
     this.scale_link_start_y = true;
     this.scale_link_end_y = true;
     this.scale_link_start_z = true;
     this.scale_link_end_z = true;
     this.scaleCurve = AnimationCurve.Linear((float)0, (float)0, (float)1, (float)1);
     this.rotation_start = new Vector3((float)0, (float)0, (float)0);
     this.rotation_end = new Vector3((float)0, (float)0, (float)0);
     this.position_start = new Vector3((float)0, (float)0, (float)0);
     this.position_end = new Vector3((float)0, (float)0, (float)0);
     this.terrain_height = true;
     this.rotation_map = new rotation_map_class();
     this.distance_include_scale = true;
     this.distance_include_scale_group = true;
     this.objects_placed = new List<distance_class>();
     this.object_material = new material_class();
     this.combine_parent_name = string.Empty;
     this.swap_text = "S";
     this.object_child = new List<object_class>();
     this.ray_length = (float)20;
     this.cast_height = (float)20;
     this.ray_radius = (float)1;
     this.ray_direction = new Vector3((float)0, (float)-1, (float)0);
 }