Class reference
WorldScape3DTextureAsset
Inherits WorldScape3DAssetResource
Description
A set of texture files and settings that gets added to a WorldScape3DAssets resource. Textures must be prepared.
Properties
Color albedo_color = Color(1, 1, 1, 1)
Color albedo_color = Color(1, 1, 1, 1)This color is multiplied by the albedo texture in the shader.
Texture2D albedo_texture
Texture2D albedo_textureThe texture file with albedo on RGB and height on A.
float ao_strength = 0.5
float ao_strength = 0.5The shader generates AO based on the height texture, based on this strength value.
float detiling_rotation = 0.0
float detiling_rotation = 0.0The shader rotates UV lookups in a detiling pattern based on this value.
float detiling_shift = 0.0
float detiling_shift = 0.0The shader laterally shifts UV lookups in a detiling pattern based on this value.
int id = 0
int id = 0The 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.
String name = ""
String name = ""A user specified name for this texture set.
float normal_depth = 0.5
float normal_depth = 0.5Increases or decreases the strength of the normal texture.
Texture2D normal_texture
Texture2D normal_textureThe texture file with normal on RGB and roughness on A.
float roughness = 0.0
float roughness = 0.0Increases or decreases the roughness texture values.
float uv_scale = 0.1
float uv_scale = 0.1The scale of the textures.
Methods
void clear()
Clears the texture files and settings.
Signals
file_changed()
Emitted when albedo_texture or normal_texture are changed.
id_changed(int type, int old_id, int new_id)
int type, int old_id, int new_id)Emitted when id is changed.
setting_changed()
Emitted when any setting is changed, other than id, albedo_texture, or normal_texture.