57 lines
972 B
C#
57 lines
972 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class heightmap_tool_class
|
|
{
|
|
public bool active;
|
|
|
|
public Vector2 resolution_display;
|
|
|
|
public float scale;
|
|
|
|
public bool clear;
|
|
|
|
public bool first;
|
|
|
|
public int place_total;
|
|
|
|
public float pow_strength;
|
|
|
|
public float scroll_offset;
|
|
|
|
public perlin_class perlin;
|
|
|
|
public Texture2D output_texture;
|
|
|
|
public Texture2D preview_texture;
|
|
|
|
public float output_resolution;
|
|
|
|
public float preview_resolution;
|
|
|
|
public int preview_resolution_slider;
|
|
|
|
public string export_file;
|
|
|
|
public string export_path;
|
|
|
|
public export_mode_enum export_mode;
|
|
|
|
public raw_file_class raw_save_file;
|
|
|
|
public heightmap_tool_class()
|
|
{
|
|
resolution_display = new Vector2(512f, 512f);
|
|
scale = 1f;
|
|
clear = true;
|
|
scroll_offset = 0.1f;
|
|
perlin = new perlin_class();
|
|
output_resolution = 2049f;
|
|
preview_resolution = 128f;
|
|
preview_resolution_slider = 2;
|
|
export_file = string.Empty;
|
|
raw_save_file = new raw_file_class();
|
|
}
|
|
}
|