.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_SpatialMaterial: SpatialMaterial =============== **Inherits:** :ref:`Material` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Member Functions ---------------- +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_albedo` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_alpha_scissor_threshold` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_anisotropy` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_ao_texture_channel` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_billboard_mode` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_blend_mode` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_clearcoat` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_clearcoat_gloss` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_cull_mode` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_depth_deep_parallax_max_layers` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_depth_deep_parallax_min_layers` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_depth_draw_mode` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_depth_scale` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_detail_blend_mode` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_detail_uv` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_diffuse_mode` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_emission` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_emission_energy` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_feature` **(** :ref:`int` feature **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_flag` **(** :ref:`int` flag **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_grow` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_line_width` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_metallic` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_metallic_texture_channel` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_normal_scale` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_particles_anim_h_frames` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_particles_anim_loop` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_particles_anim_v_frames` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_point_size` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_refraction` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_refraction_texture_channel` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_rim` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_rim_tint` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_roughness` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_roughness_texture_channel` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_specular` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_specular_mode` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_subsurface_scattering_strength` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture` | :ref:`get_texture` **(** :ref:`int` param **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_uv1_offset` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_uv1_scale` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_uv1_triplanar_blend_sharpness` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_uv2_offset` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_uv2_scale` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_uv2_triplanar_blend_sharpness` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_depth_deep_parallax_enabled` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_grow_enabled` **(** **)** const | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_albedo` **(** :ref:`Color` albedo **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_alpha_scissor_threshold` **(** :ref:`float` threshold **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_anisotropy` **(** :ref:`float` anisotropy **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_ao_texture_channel` **(** :ref:`int` channel **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_billboard_mode` **(** :ref:`int` mode **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_blend_mode` **(** :ref:`int` blend_mode **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_clearcoat` **(** :ref:`float` clearcoat **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_clearcoat_gloss` **(** :ref:`float` clearcoat_gloss **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_cull_mode` **(** :ref:`int` cull_mode **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_depth_deep_parallax` **(** :ref:`bool` enable **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_depth_deep_parallax_max_layers` **(** :ref:`int` layer **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_depth_deep_parallax_min_layers` **(** :ref:`int` layer **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_depth_draw_mode` **(** :ref:`int` depth_draw_mode **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_depth_scale` **(** :ref:`float` depth_scale **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_detail_blend_mode` **(** :ref:`int` detail_blend_mode **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_detail_uv` **(** :ref:`int` detail_uv **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_diffuse_mode` **(** :ref:`int` diffuse_mode **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_emission` **(** :ref:`Color` emission **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_emission_energy` **(** :ref:`float` emission_energy **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_feature` **(** :ref:`int` feature, :ref:`bool` enable **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_flag` **(** :ref:`int` flag, :ref:`bool` enable **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_grow` **(** :ref:`float` amount **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_grow_enabled` **(** :ref:`bool` enable **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_line_width` **(** :ref:`float` line_width **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_metallic` **(** :ref:`float` metallic **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_metallic_texture_channel` **(** :ref:`int` channel **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_normal_scale` **(** :ref:`float` normal_scale **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_particles_anim_h_frames` **(** :ref:`int` frames **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_particles_anim_loop` **(** :ref:`int` frames **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_particles_anim_v_frames` **(** :ref:`int` frames **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_point_size` **(** :ref:`float` point_size **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_refraction` **(** :ref:`float` refraction **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_refraction_texture_channel` **(** :ref:`int` channel **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_rim` **(** :ref:`float` rim **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_rim_tint` **(** :ref:`float` rim_tint **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_roughness` **(** :ref:`float` roughness **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_roughness_texture_channel` **(** :ref:`int` channel **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_specular` **(** :ref:`float` specular **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_specular_mode` **(** :ref:`int` specular_mode **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_subsurface_scattering_strength` **(** :ref:`float` strength **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_texture` **(** :ref:`int` param, :ref:`Texture` texture **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_uv1_offset` **(** :ref:`Vector3` offset **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_uv1_scale` **(** :ref:`Vector3` scale **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_uv1_triplanar_blend_sharpness` **(** :ref:`float` sharpness **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_uv2_offset` **(** :ref:`Vector3` offset **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_uv2_scale` **(** :ref:`Vector3` scale **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_uv2_triplanar_blend_sharpness` **(** :ref:`float` sharpness **)** | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Color` **albedo_color** - :ref:`Texture` **albedo_texture** - :ref:`float` **anisotropy** - :ref:`bool` **anisotropy_enabled** - :ref:`Texture` **anisotropy_flowmap** - :ref:`bool` **ao_enabled** - :ref:`bool` **ao_on_uv2** - :ref:`Texture` **ao_texture** - :ref:`int` **ao_texture_channel** - :ref:`float` **clearcoat** - :ref:`bool` **clearcoat_enabled** - :ref:`float` **clearcoat_gloss** - :ref:`Texture` **clearcoat_texture** - :ref:`bool` **depth_deep_parallax** - :ref:`bool` **depth_enabled** - :ref:`int` **depth_max_layers** - :ref:`int` **depth_min_layers** - :ref:`float` **depth_scale** - :ref:`Texture` **depth_texture** - :ref:`Texture` **detail_albedo** - :ref:`int` **detail_blend_mode** - :ref:`bool` **detail_enabled** - :ref:`Texture` **detail_mask** - :ref:`Texture` **detail_normal** - :ref:`int` **detail_uv_layer** - :ref:`Color` **emission** - :ref:`bool` **emission_enabled** - :ref:`float` **emission_energy** - :ref:`Texture` **emission_texture** - :ref:`bool` **flags_fixed_size** - :ref:`bool` **flags_no_depth_test** - :ref:`bool` **flags_transparent** - :ref:`bool` **flags_unshaded** - :ref:`bool` **flags_use_point_size** - :ref:`bool` **flags_vertex_lighting** - :ref:`float` **metallic** - :ref:`float` **metallic_specular** - :ref:`Texture` **metallic_texture** - :ref:`int` **metallic_texture_channel** - :ref:`bool` **normal_enabled** - :ref:`float` **normal_scale** - :ref:`Texture` **normal_texture** - :ref:`float` **params_alpha_scissor_threshold** - :ref:`int` **params_billboard_mode** - :ref:`int` **params_blend_mode** - :ref:`int` **params_cull_mode** - :ref:`int` **params_depth_draw_mode** - :ref:`int` **params_diffuse_mode** - :ref:`bool` **params_grow** - :ref:`float` **params_grow_amount** - :ref:`float` **params_line_width** - :ref:`float` **params_point_size** - :ref:`int` **params_specular_mode** - :ref:`bool` **params_use_alpha_scissor** - :ref:`int` **particles_anim_h_frames** - :ref:`int` **particles_anim_loop** - :ref:`int` **particles_anim_v_frames** - :ref:`bool` **refraction_enabled** - :ref:`float` **refraction_scale** - :ref:`Texture` **refraction_texture** - :ref:`int` **refraction_texture_channel** - :ref:`float` **rim** - :ref:`bool` **rim_enabled** - :ref:`Texture` **rim_texture** - :ref:`float` **rim_tint** - :ref:`float` **roughness** - :ref:`Texture` **roughness_texture** - :ref:`int` **roughness_texture_channel** - :ref:`bool` **subsurf_scatter_enabled** - :ref:`float` **subsurf_scatter_strength** - :ref:`Texture` **subsurf_scatter_texture** - :ref:`Vector3` **uv1_offset** - :ref:`Vector3` **uv1_scale** - :ref:`bool` **uv1_triplanar** - :ref:`float` **uv1_triplanar_sharpness** - :ref:`Vector3` **uv2_offset** - :ref:`Vector3` **uv2_scale** - :ref:`bool` **uv2_triplanar** - :ref:`float` **uv2_triplanar_sharpness** - :ref:`bool` **vertex_color_is_srgb** - :ref:`bool` **vertex_color_use_as_albedo** Numeric Constants ----------------- - **TEXTURE_ALBEDO** = **0** - **TEXTURE_METALLIC** = **1** - **TEXTURE_ROUGHNESS** = **2** - **TEXTURE_EMISSION** = **3** - **TEXTURE_NORMAL** = **4** - **TEXTURE_RIM** = **5** - **TEXTURE_CLEARCOAT** = **6** - **TEXTURE_FLOWMAP** = **7** - **TEXTURE_AMBIENT_OCCLUSION** = **8** - **TEXTURE_DEPTH** = **9** - **TEXTURE_SUBSURFACE_SCATTERING** = **10** - **TEXTURE_REFRACTION** = **11** - **TEXTURE_DETAIL_MASK** = **12** - **TEXTURE_DETAIL_ALBEDO** = **13** - **TEXTURE_DETAIL_NORMAL** = **14** - **TEXTURE_MAX** = **15** - **DETAIL_UV_1** = **0** - **DETAIL_UV_2** = **1** - **FEATURE_TRANSPARENT** = **0** - **FEATURE_EMISSION** = **1** - **FEATURE_NORMAL_MAPPING** = **2** - **FEATURE_RIM** = **3** - **FEATURE_CLEARCOAT** = **4** - **FEATURE_ANISOTROPY** = **5** - **FEATURE_AMBIENT_OCCLUSION** = **6** - **FEATURE_DEPTH_MAPPING** = **7** - **FEATURE_SUBSURACE_SCATTERING** = **8** - **FEATURE_REFRACTION** = **9** - **FEATURE_DETAIL** = **10** - **FEATURE_MAX** = **11** - **BLEND_MODE_MIX** = **0** - **BLEND_MODE_ADD** = **1** - **BLEND_MODE_SUB** = **2** - **BLEND_MODE_MUL** = **3** - **DEPTH_DRAW_OPAQUE_ONLY** = **0** - **DEPTH_DRAW_ALWAYS** = **1** - **DEPTH_DRAW_DISABLED** = **2** - **DEPTH_DRAW_ALPHA_OPAQUE_PREPASS** = **3** - **CULL_BACK** = **0** - **CULL_FRONT** = **1** - **CULL_DISABLED** = **2** - **FLAG_UNSHADED** = **0** - **FLAG_USE_VERTEX_LIGHTING** = **1** - **FLAG_DISABLE_DEPTH_TEST** = **2** - **FLAG_ALBEDO_FROM_VERTEX_COLOR** = **3** - **FLAG_SRGB_VERTEX_COLOR** = **4** - **FLAG_USE_POINT_SIZE** = **5** - **FLAG_FIXED_SIZE** = **6** - **FLAG_UV1_USE_TRIPLANAR** = **7** - **FLAG_UV2_USE_TRIPLANAR** = **8** - **FLAG_AO_ON_UV2** = **9** - **FLAG_USE_ALPHA_SCISSOR** = **10** - **FLAG_MAX** = **11** - **DIFFUSE_LAMBERT** = **0** - **DIFFUSE_HALF_LAMBERT** = **1** - **DIFFUSE_OREN_NAYAR** = **2** - **DIFFUSE_BURLEY** = **3** - **DIFFUSE_TOON** = **4** - **SPECULAR_SCHLICK_GGX** = **0** - **SPECULAR_BLINN** = **1** - **SPECULAR_PHONG** = **2** - **SPECULAR_TOON** = **3** - **SPECULAR_DISABLED** = **4** - **BILLBOARD_DISABLED** = **0** - **BILLBOARD_ENABLED** = **1** - **BILLBOARD_FIXED_Y** = **2** - **BILLBOARD_PARTICLES** = **3** - **TEXTURE_CHANNEL_RED** = **0** - **TEXTURE_CHANNEL_GREEN** = **1** - **TEXTURE_CHANNEL_BLUE** = **2** - **TEXTURE_CHANNEL_ALPHA** = **3** - **TEXTURE_CHANNEL_GRAYSCALE** = **4** Member Function Description --------------------------- .. _class_SpatialMaterial_get_albedo: - :ref:`Color` **get_albedo** **(** **)** const .. _class_SpatialMaterial_get_alpha_scissor_threshold: - :ref:`float` **get_alpha_scissor_threshold** **(** **)** const .. _class_SpatialMaterial_get_anisotropy: - :ref:`float` **get_anisotropy** **(** **)** const .. _class_SpatialMaterial_get_ao_texture_channel: - :ref:`int` **get_ao_texture_channel** **(** **)** const .. _class_SpatialMaterial_get_billboard_mode: - :ref:`int` **get_billboard_mode** **(** **)** const .. _class_SpatialMaterial_get_blend_mode: - :ref:`int` **get_blend_mode** **(** **)** const .. _class_SpatialMaterial_get_clearcoat: - :ref:`float` **get_clearcoat** **(** **)** const .. _class_SpatialMaterial_get_clearcoat_gloss: - :ref:`float` **get_clearcoat_gloss** **(** **)** const .. _class_SpatialMaterial_get_cull_mode: - :ref:`int` **get_cull_mode** **(** **)** const .. _class_SpatialMaterial_get_depth_deep_parallax_max_layers: - :ref:`int` **get_depth_deep_parallax_max_layers** **(** **)** const .. _class_SpatialMaterial_get_depth_deep_parallax_min_layers: - :ref:`int` **get_depth_deep_parallax_min_layers** **(** **)** const .. _class_SpatialMaterial_get_depth_draw_mode: - :ref:`int` **get_depth_draw_mode** **(** **)** const .. _class_SpatialMaterial_get_depth_scale: - :ref:`float` **get_depth_scale** **(** **)** const .. _class_SpatialMaterial_get_detail_blend_mode: - :ref:`int` **get_detail_blend_mode** **(** **)** const .. _class_SpatialMaterial_get_detail_uv: - :ref:`int` **get_detail_uv** **(** **)** const .. _class_SpatialMaterial_get_diffuse_mode: - :ref:`int` **get_diffuse_mode** **(** **)** const .. _class_SpatialMaterial_get_emission: - :ref:`Color` **get_emission** **(** **)** const .. _class_SpatialMaterial_get_emission_energy: - :ref:`float` **get_emission_energy** **(** **)** const .. _class_SpatialMaterial_get_feature: - :ref:`bool` **get_feature** **(** :ref:`int` feature **)** const .. _class_SpatialMaterial_get_flag: - :ref:`bool` **get_flag** **(** :ref:`int` flag **)** const .. _class_SpatialMaterial_get_grow: - :ref:`float` **get_grow** **(** **)** const .. _class_SpatialMaterial_get_line_width: - :ref:`float` **get_line_width** **(** **)** const .. _class_SpatialMaterial_get_metallic: - :ref:`float` **get_metallic** **(** **)** const .. _class_SpatialMaterial_get_metallic_texture_channel: - :ref:`int` **get_metallic_texture_channel** **(** **)** const .. _class_SpatialMaterial_get_normal_scale: - :ref:`float` **get_normal_scale** **(** **)** const .. _class_SpatialMaterial_get_particles_anim_h_frames: - :ref:`int` **get_particles_anim_h_frames** **(** **)** const .. _class_SpatialMaterial_get_particles_anim_loop: - :ref:`int` **get_particles_anim_loop** **(** **)** const .. _class_SpatialMaterial_get_particles_anim_v_frames: - :ref:`int` **get_particles_anim_v_frames** **(** **)** const .. _class_SpatialMaterial_get_point_size: - :ref:`float` **get_point_size** **(** **)** const .. _class_SpatialMaterial_get_refraction: - :ref:`float` **get_refraction** **(** **)** const .. _class_SpatialMaterial_get_refraction_texture_channel: - :ref:`int` **get_refraction_texture_channel** **(** **)** const .. _class_SpatialMaterial_get_rim: - :ref:`float` **get_rim** **(** **)** const .. _class_SpatialMaterial_get_rim_tint: - :ref:`float` **get_rim_tint** **(** **)** const .. _class_SpatialMaterial_get_roughness: - :ref:`float` **get_roughness** **(** **)** const .. _class_SpatialMaterial_get_roughness_texture_channel: - :ref:`int` **get_roughness_texture_channel** **(** **)** const .. _class_SpatialMaterial_get_specular: - :ref:`float` **get_specular** **(** **)** const .. _class_SpatialMaterial_get_specular_mode: - :ref:`int` **get_specular_mode** **(** **)** const .. _class_SpatialMaterial_get_subsurface_scattering_strength: - :ref:`float` **get_subsurface_scattering_strength** **(** **)** const .. _class_SpatialMaterial_get_texture: - :ref:`Texture` **get_texture** **(** :ref:`int` param **)** const .. _class_SpatialMaterial_get_uv1_offset: - :ref:`Vector3` **get_uv1_offset** **(** **)** const .. _class_SpatialMaterial_get_uv1_scale: - :ref:`Vector3` **get_uv1_scale** **(** **)** const .. _class_SpatialMaterial_get_uv1_triplanar_blend_sharpness: - :ref:`float` **get_uv1_triplanar_blend_sharpness** **(** **)** const .. _class_SpatialMaterial_get_uv2_offset: - :ref:`Vector3` **get_uv2_offset** **(** **)** const .. _class_SpatialMaterial_get_uv2_scale: - :ref:`Vector3` **get_uv2_scale** **(** **)** const .. _class_SpatialMaterial_get_uv2_triplanar_blend_sharpness: - :ref:`float` **get_uv2_triplanar_blend_sharpness** **(** **)** const .. _class_SpatialMaterial_is_depth_deep_parallax_enabled: - :ref:`bool` **is_depth_deep_parallax_enabled** **(** **)** const .. _class_SpatialMaterial_is_grow_enabled: - :ref:`bool` **is_grow_enabled** **(** **)** const .. _class_SpatialMaterial_set_albedo: - void **set_albedo** **(** :ref:`Color` albedo **)** .. _class_SpatialMaterial_set_alpha_scissor_threshold: - void **set_alpha_scissor_threshold** **(** :ref:`float` threshold **)** .. _class_SpatialMaterial_set_anisotropy: - void **set_anisotropy** **(** :ref:`float` anisotropy **)** .. _class_SpatialMaterial_set_ao_texture_channel: - void **set_ao_texture_channel** **(** :ref:`int` channel **)** .. _class_SpatialMaterial_set_billboard_mode: - void **set_billboard_mode** **(** :ref:`int` mode **)** .. _class_SpatialMaterial_set_blend_mode: - void **set_blend_mode** **(** :ref:`int` blend_mode **)** .. _class_SpatialMaterial_set_clearcoat: - void **set_clearcoat** **(** :ref:`float` clearcoat **)** .. _class_SpatialMaterial_set_clearcoat_gloss: - void **set_clearcoat_gloss** **(** :ref:`float` clearcoat_gloss **)** .. _class_SpatialMaterial_set_cull_mode: - void **set_cull_mode** **(** :ref:`int` cull_mode **)** .. _class_SpatialMaterial_set_depth_deep_parallax: - void **set_depth_deep_parallax** **(** :ref:`bool` enable **)** .. _class_SpatialMaterial_set_depth_deep_parallax_max_layers: - void **set_depth_deep_parallax_max_layers** **(** :ref:`int` layer **)** .. _class_SpatialMaterial_set_depth_deep_parallax_min_layers: - void **set_depth_deep_parallax_min_layers** **(** :ref:`int` layer **)** .. _class_SpatialMaterial_set_depth_draw_mode: - void **set_depth_draw_mode** **(** :ref:`int` depth_draw_mode **)** .. _class_SpatialMaterial_set_depth_scale: - void **set_depth_scale** **(** :ref:`float` depth_scale **)** .. _class_SpatialMaterial_set_detail_blend_mode: - void **set_detail_blend_mode** **(** :ref:`int` detail_blend_mode **)** .. _class_SpatialMaterial_set_detail_uv: - void **set_detail_uv** **(** :ref:`int` detail_uv **)** .. _class_SpatialMaterial_set_diffuse_mode: - void **set_diffuse_mode** **(** :ref:`int` diffuse_mode **)** .. _class_SpatialMaterial_set_emission: - void **set_emission** **(** :ref:`Color` emission **)** .. _class_SpatialMaterial_set_emission_energy: - void **set_emission_energy** **(** :ref:`float` emission_energy **)** .. _class_SpatialMaterial_set_feature: - void **set_feature** **(** :ref:`int` feature, :ref:`bool` enable **)** .. _class_SpatialMaterial_set_flag: - void **set_flag** **(** :ref:`int` flag, :ref:`bool` enable **)** .. _class_SpatialMaterial_set_grow: - void **set_grow** **(** :ref:`float` amount **)** .. _class_SpatialMaterial_set_grow_enabled: - void **set_grow_enabled** **(** :ref:`bool` enable **)** .. _class_SpatialMaterial_set_line_width: - void **set_line_width** **(** :ref:`float` line_width **)** .. _class_SpatialMaterial_set_metallic: - void **set_metallic** **(** :ref:`float` metallic **)** .. _class_SpatialMaterial_set_metallic_texture_channel: - void **set_metallic_texture_channel** **(** :ref:`int` channel **)** .. _class_SpatialMaterial_set_normal_scale: - void **set_normal_scale** **(** :ref:`float` normal_scale **)** .. _class_SpatialMaterial_set_particles_anim_h_frames: - void **set_particles_anim_h_frames** **(** :ref:`int` frames **)** .. _class_SpatialMaterial_set_particles_anim_loop: - void **set_particles_anim_loop** **(** :ref:`int` frames **)** .. _class_SpatialMaterial_set_particles_anim_v_frames: - void **set_particles_anim_v_frames** **(** :ref:`int` frames **)** .. _class_SpatialMaterial_set_point_size: - void **set_point_size** **(** :ref:`float` point_size **)** .. _class_SpatialMaterial_set_refraction: - void **set_refraction** **(** :ref:`float` refraction **)** .. _class_SpatialMaterial_set_refraction_texture_channel: - void **set_refraction_texture_channel** **(** :ref:`int` channel **)** .. _class_SpatialMaterial_set_rim: - void **set_rim** **(** :ref:`float` rim **)** .. _class_SpatialMaterial_set_rim_tint: - void **set_rim_tint** **(** :ref:`float` rim_tint **)** .. _class_SpatialMaterial_set_roughness: - void **set_roughness** **(** :ref:`float` roughness **)** .. _class_SpatialMaterial_set_roughness_texture_channel: - void **set_roughness_texture_channel** **(** :ref:`int` channel **)** .. _class_SpatialMaterial_set_specular: - void **set_specular** **(** :ref:`float` specular **)** .. _class_SpatialMaterial_set_specular_mode: - void **set_specular_mode** **(** :ref:`int` specular_mode **)** .. _class_SpatialMaterial_set_subsurface_scattering_strength: - void **set_subsurface_scattering_strength** **(** :ref:`float` strength **)** .. _class_SpatialMaterial_set_texture: - void **set_texture** **(** :ref:`int` param, :ref:`Texture` texture **)** .. _class_SpatialMaterial_set_uv1_offset: - void **set_uv1_offset** **(** :ref:`Vector3` offset **)** .. _class_SpatialMaterial_set_uv1_scale: - void **set_uv1_scale** **(** :ref:`Vector3` scale **)** .. _class_SpatialMaterial_set_uv1_triplanar_blend_sharpness: - void **set_uv1_triplanar_blend_sharpness** **(** :ref:`float` sharpness **)** .. _class_SpatialMaterial_set_uv2_offset: - void **set_uv2_offset** **(** :ref:`Vector3` offset **)** .. _class_SpatialMaterial_set_uv2_scale: - void **set_uv2_scale** **(** :ref:`Vector3` scale **)** .. _class_SpatialMaterial_set_uv2_triplanar_blend_sharpness: - void **set_uv2_triplanar_blend_sharpness** **(** :ref:`float` sharpness **)**