public tree_class(terraincomposer_save script, bool new_filter) { this.interface_display = true; this.swap_text = "S"; this.color_tree = new Color((float)1, (float)1, (float)1, (float)1); this.precolor_range = new precolor_range_class(1, false); this.link_start = true; this.link_end = true; this.width_start = (float)1; this.width_end = 2.5f; this.height_start = (float)1; this.height_end = 2.5f; this.unlink = 0.25f; this.random_position = true; this.distance_include_scale = true; this.distance_include_scale_group = true; this.objects_placed = new List<distance_class>(); this.prefilter = new prefilter_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); if (new_filter) { script.add_filter(0, this.prefilter); script.filter[script.filter.Count - 1].type = condition_type_enum.Random; script.add_subfilter(0, script.filter[script.filter.Count - 1].presubfilter); script.subfilter[script.subfilter.Count - 1].type = condition_type_enum.Random; script.subfilter[script.subfilter.Count - 1].from_tree = true; } this.precolor_range.color_range[0].color_start = new Color(0.75f, 0.75f, 0.75f); this.precolor_range.color_range[0].color_end = new Color((float)1, (float)1, (float)1); }
public subfilter_class() { this.active = true; this.color_subfilter = new Color(1.5f, 1.5f, 1.5f, (float)1); this.linked = true; this.output_max = 1; this.output_count_min = 0.5f; this.strength = (float)1; this.preimage = new image_class(); this.precolor_range = new precolor_range_class(0, false); this.precurve_list = new List <animation_curve_class>(); this.precurve = new animation_curve_class(); this.prerandom_curve = new animation_curve_class(); this.swap_text = "S"; this.mode = subfilter_mode_enum.strength; this.cast_height = (float)20; this.ray_length = (float)20; this.ray_radius = (float)1; this.ray_direction = new Vector3((float)0, (float)-1, (float)0); this.precurve_list.Add(new animation_curve_class()); this.precurve_list[0].curve = AnimationCurve.Linear((float)0, (float)0, (float)1, (float)1); this.precurve_list[0].default_curve = new AnimationCurve(this.precurve_list[0].curve.keys); this.precurve_list.Add(new animation_curve_class()); this.precurve_list[1].curve = AnimationCurve.Linear((float)0, (float)0, (float)1, (float)0); this.precurve_list[1].default_curve = new AnimationCurve(this.precurve_list[1].curve.keys); this.precurve_list[1].active = false; this.precurve_list[1].type = curve_type_enum.Random; }
public tree_class(terraincomposer_save script, bool new_filter) { this.interface_display = true; this.swap_text = "S"; this.color_tree = new Color((float)1, (float)1, (float)1, (float)1); this.precolor_range = new precolor_range_class(1, false); this.link_start = true; this.link_end = true; this.width_start = (float)1; this.width_end = 2.5f; this.height_start = (float)1; this.height_end = 2.5f; this.unlink = 0.25f; this.random_position = true; this.distance_include_scale = true; this.distance_include_scale_group = true; this.objects_placed = new List <distance_class>(); this.prefilter = new prefilter_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); if (new_filter) { script.add_filter(0, this.prefilter); script.filter[script.filter.Count - 1].type = condition_type_enum.Random; script.add_subfilter(0, script.filter[script.filter.Count - 1].presubfilter); script.subfilter[script.subfilter.Count - 1].type = condition_type_enum.Random; script.subfilter[script.subfilter.Count - 1].from_tree = true; } this.precolor_range.color_range[0].color_start = new Color(0.75f, 0.75f, 0.75f); this.precolor_range.color_range[0].color_end = new Color((float)1, (float)1, (float)1); }
public texture_tool_class() { this.active = true; this.preimage = new image_class(); this.resolution_display = new Vector2((float)512, (float)512); this.scale = (float)1; this.precolor_range = new precolor_range_class(0, false); }
public image_class() { this.precolor_range = new precolor_range_class(0, false); this.image = new List<Texture2D>(); this.image_color = Color.white; this.list_length = 1; this.list_row = 4; this.image_auto_scale = true; this.conversion_step = new Vector2((float)1, (float)1); this.tile_x = (float)1; this.tile_y = (float)1; this.rgb = true; this.edge_blur_radius = (float)1; this.auto_search = new auto_search_class(); this.image.Add(this.texture); this.auto_search.extension = ".png"; }
public image_class() { this.precolor_range = new precolor_range_class(0, false); this.image = new List <Texture2D>(); this.image_color = Color.white; this.list_length = 1; this.list_row = 4; this.image_auto_scale = true; this.conversion_step = new Vector2((float)1, (float)1); this.tile_x = (float)1; this.tile_y = (float)1; this.rgb = true; this.edge_blur_radius = (float)1; this.auto_search = new auto_search_class(); this.image.Add(this.texture); this.auto_search.extension = ".png"; }
public pattern_class() { this.active = true; this.pattern_placed = new List <Vector2>(); this.count_x = 1; this.count_y = 1; this.scale_start = new Vector2((float)1, (float)1); this.scale_end = new Vector2((float)1, (float)1); 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.color = Color.white; this.strength = (float)1; this.rotation_start = (float)-180; this.rotation_end = (float)180; this.precolor_range = new precolor_range_class(0, false); this.place_max = 100; }