Terrain3DTexture
Inherits: Resource < RefCounted < Object
Description
A set of texture files and settings that gets added to Terrain3DTextureList. Textures must be prepared according to the documentation.
Properties
Color |
|
|
Texture2D |
||
String |
|
|
Texture2D |
||
int |
|
|
float |
|
|
float |
|
Methods
void |
clear() |
Signals
file_changed()
Emitted when albedo_texture or normal_texture are changed.
id_changed()
Emitted when texture_id is changed.
setting_changed()
Emitted when any setting is changed, other than texture_id, albedo_texture, or normal_texture.
Property Descriptions
Color albedo_color = Color(1, 1, 1, 1)
void set_albedo_color(value: Color)
Color get_albedo_color()
This color is multiplied by the albedo texture in the shader.
Texture2D albedo_texture
void set_albedo_texture(value: Texture2D)
Texture2D get_albedo_texture()
The texture file with albedo on RGB and height on A.
String name = "New Texture"
void set_name(value: String)
String get_name()
A user specified name for this texture set.
Texture2D normal_texture
void set_normal_texture(value: Texture2D)
Texture2D get_normal_texture()
The texture file with normal on RGB and roughness on A.
int texture_id = 0
void set_texture_id(value: int)
int get_texture_id()
The user settable ID of the texture, between 0 and 31. You can change this to reorder textures in the list, however it won’t change the ID painted on the terrain.
float uv_rotation = 0.0
void set_uv_rotation(value: float)
float get_uv_rotation()
The shader rotates UV lookups in a detiling pattern based on this value.
float uv_scale = 0.1
void set_uv_scale(value: float)
float get_uv_scale()
The scale of the textures.
Method Descriptions
void clear()
Clears the texture files and settings.