62 lines
1.2 KiB
C#
62 lines
1.2 KiB
C#
![]() |
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using Godot;
|
||
|
using System;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
|
||
|
|
||
|
namespace Rokojori
|
||
|
{
|
||
|
/** <summary for="class SubFoliageData">
|
||
|
|
||
|
<title>
|
||
|
Resource to define foliage additional layers
|
||
|
</title>
|
||
|
|
||
|
<description>
|
||
|
|
||
|
</description>
|
||
|
|
||
|
</summary>
|
||
|
*/
|
||
|
|
||
|
[Tool]
|
||
|
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/Scatterer.svg") ]
|
||
|
public partial class SubFoliageData:Resource
|
||
|
{
|
||
|
[ExportGroup( "Visibility")]
|
||
|
[Export]
|
||
|
public float relativeCellSize = 2.0f;
|
||
|
|
||
|
[Export]
|
||
|
public float cellSizeOffset = 0f;
|
||
|
|
||
|
[Export]
|
||
|
public float relativeVisibilityRange = 2.0f;
|
||
|
|
||
|
[Export]
|
||
|
public float additionalVisibilityRange = 0.0f;
|
||
|
|
||
|
[Export]
|
||
|
public float visibilityFadeRelative = 0.5f;
|
||
|
|
||
|
[Export]
|
||
|
public float visibilityFadeAbsolute = 0f;
|
||
|
|
||
|
[Export]
|
||
|
public float additionalVisibilityFadeHidingOffset = 0.0f;
|
||
|
|
||
|
[ExportGroup( "Renderer")]
|
||
|
[Export]
|
||
|
public bool shadows = true;
|
||
|
|
||
|
[Export]
|
||
|
public bool sort = false;
|
||
|
|
||
|
[ExportGroup( "Position")]
|
||
|
[Export]
|
||
|
public Vector3 subPositionOffset = Vector3.Zero;
|
||
|
|
||
|
}
|
||
|
}
|