TerrainDetilePreview ​
Inherits: VBoxContainer
The preview of the Detiling section of the Terrain Textures editor: the albedo of the texture repeated over three squares, as it is (the repeats line up), with hex tiling (what the ground shows near the camera) and with the second look (what it shows far away), drawn by the same code as the ground (terrain_hex.gdshaderinc). It follows the numbers of the texture as they change, so the settings can be tuned without looking at the 3D viewport. It says which method the terrain of the open scene uses: the hex numbers only do something when it is Hex tiling. See docs: World > Terrain Textures.
Variables ​
Array[TextureRect] | panels | [] |
Array[ShaderMaterial] | materials | [] |
Label | note_label | |
Label | hint_label | |
SpinBox | repeats_spin | |
CheckBox | zones_check | |
TerrainTextureDefinition | texture | null |
Methods ​
void | show_texture( new_texture: TerrainTextureDefinition ) |
void | refresh() |
String | describe_method( terrain: ChronicleTerrain ) static |
Constants ​
ShaderSHADER =preload("res://addons/chroniclenode/assets/shaders/terrain_detile_preview.gds...floatDEFAULT_CONTRAST =0.75- The contrast used when neither the texture nor a terrain gives one.
Variable descriptions ​
Array[TextureRect] panels = [] ​
No description yet.
Array[ShaderMaterial] materials = [] ​
No description yet.
Label note_label ​
No description yet.
Label hint_label ​
No description yet.
SpinBox repeats_spin ​
No description yet.
CheckBox zones_check ​
No description yet.
TerrainTextureDefinition texture = null ​
No description yet.
Method descriptions ​
void show_texture( new_texture: TerrainTextureDefinition ) ​
Shows a texture (null: nothing to show) and draws it with its numbers.
void refresh() ​
Draws the squares again with the numbers the texture has now, and says what the terrain of the open scene does.
String describe_method( terrain: ChronicleTerrain ) ​
What the terrain of the open scene does with these numbers, in a sentence.