Пример #1
0
    public override void DrawEditorGUI()
    {
        GUILayout.BeginVertical();
        RendererComponent.GUIField("material_prefix", ref material_prefix_);
        RendererComponent.GUIField("material_blacklist_prefix", ref material_blacklist_prefix_);
        RendererComponent.GUIHorizontalLine(1);

        RendererComponent.GUISlider("hue_radius", ref hue_radius_, 0.0f, 0.5f);
        RendererComponent.GUIHorizontalLine(1);

        RendererComponent.GUISlider("saturation_radius", ref saturation_radius_, 0.0f, 1.0f);
        RendererComponent.GUISlider("min_saturation", ref min_saturation_, 0.0f, max_saturation_);
        RendererComponent.GUISlider("max_saturation", ref max_saturation_, min_saturation_, 1.0f);
        RendererComponent.GUIHorizontalLine(1);

        RendererComponent.GUISlider("value_radius", ref value_radius_, 0.0f, 1.0f);
        RendererComponent.GUISlider("min_value", ref min_value_, 0.0f, max_value_);
        RendererComponent.GUISlider("max_value", ref max_value_, min_value_, 1.0f);
        RendererComponent.GUIHorizontalLine(1);

        RendererComponent.GUISlider("emission_probability", ref emission_probability_, 0.0f, 1.0f);
        RendererComponent.GUISlider("emission_radius", ref emission_radius_, 0.0f, 10.0f);
        RendererComponent.GUISlider("min_emission", ref min_emission_, 0.0f, max_emission_);
        RendererComponent.GUISlider("max_emission", ref max_emission_, min_emission_, 10.0f);
        RendererComponent.GUIHorizontalLine(1);

        RendererComponent.GUISlider("min_metallic", ref min_metallic_, 0.0f, max_metallic_);
        RendererComponent.GUISlider("max_metallic", ref max_metallic_, min_metallic_, 1.0f);
        RendererComponent.GUIHorizontalLine(1);

        RendererComponent.GUISlider("min_glossiness", ref min_glossiness_, 0.0f, max_glossiness_);
        RendererComponent.GUISlider("max_glossiness", ref max_glossiness_, min_glossiness_, 1.0f);
        GUILayout.EndVertical();
    }
Пример #2
0
 public override void DrawEditorGUI()
 {
     GUILayout.BeginVertical();
     RendererComponent.GUIField("body_prefix", ref body_prefix_);
     RendererComponent.GUIField("geom_prefix", ref geom_prefix_);
     RendererComponent.GUIField("site_prefix", ref site_prefix_);
     GUILayout.EndVertical();
 }
Пример #3
0
 public override void DrawEditorGUI()
 {
     GUILayout.BeginVertical();
     RendererComponent.GUIField("blacklist_prefix", ref blacklist_prefix_);
     RendererComponent.GUIField("whitelist_prefix", ref whitelist_prefix_);
     RendererComponent.GUISlider("min_metallic", ref min_metallic_, 0.0f, max_metallic_);
     RendererComponent.GUISlider("max_metallic", ref max_metallic_, min_metallic_, 1.0f);
     RendererComponent.GUISlider("min_glossiness", ref min_glossiness_, 0.0f, max_glossiness_);
     RendererComponent.GUISlider("max_glossiness", ref max_glossiness_, min_glossiness_, 1.0f);
     RendererComponent.GUIToggle("randomize_textures", ref randomize_textures_);
     GUILayout.EndVertical();
 }
Пример #4
0
    public override void DrawEditorGUI()
    {
        GUILayout.BeginVertical();
        RendererComponent.GUIField("camera_name", ref camera_name_);

        string label_text = GetCameraPositionString();

        RendererComponent.GUIField("mujoco_position", ref label_text);

        label_text = GetCameraRotationString();
        RendererComponent.GUIField("mujoco_rotation", ref label_text);

        label_text = GetCameraFovString();
        RendererComponent.GUIField("mujoco_fov", ref label_text);

        RendererComponent.GUIHorizontalLine(1);
        RendererComponent.GUIVector3("local_position_delta", ref local_position_delta_);
        RendererComponent.GUIQuaternion("local_rotation_delta", ref local_rotation_delta_);
        RendererComponent.GUIHorizontalLine(1);
        RendererComponent.GUISlider("dolly_x", ref dolly_x_, -0.03f, 0.03f);
        RendererComponent.GUISlider("dolly_y", ref dolly_y_, -0.03f, 0.03f);
        RendererComponent.GUISlider("dolly_z", ref dolly_z_, -0.03f, 0.03f);
        RendererComponent.GUIHorizontalLine(1);
        RendererComponent.GUISlider("euler_x", ref euler_x_, -2.0f, 2.0f);
        RendererComponent.GUISlider("euler_y", ref euler_y_, -2.0f, 2.0f);
        RendererComponent.GUISlider("euler_z", ref euler_z_, -2.0f, 2.0f);
        RendererComponent.GUIHorizontalLine(1);
        RendererComponent.GUISlider("zoom", ref zoom_, -1f, 1f);
        RendererComponent.GUIHorizontalLine(1);

        GUILayout.BeginHorizontal();
        if (RendererComponent.GUIButton("Colapse"))
        {
            Colapse();
        }
        if (RendererComponent.GUIButton("Reset"))
        {
            Reset();
        }

        GUILayout.EndHorizontal();
        GUILayout.EndVertical();
    }