SpatialMaterial¶
Inherits: Material < Resource < Reference < Object
Category: Core
Brief Description¶
Member Functions¶
Member Variables¶
- Color albedo_color
- Texture albedo_texture
- float anisotropy
- bool anisotropy_enabled
- Texture anisotropy_flowmap
- bool ao_enabled
- bool ao_on_uv2
- Texture ao_texture
- int ao_texture_channel
- float clearcoat
- bool clearcoat_enabled
- float clearcoat_gloss
- Texture clearcoat_texture
- bool depth_deep_parallax
- bool depth_enabled
- int depth_max_layers
- int depth_min_layers
- float depth_scale
- Texture depth_texture
- Texture detail_albedo
- int detail_blend_mode
- bool detail_enabled
- Texture detail_mask
- Texture detail_normal
- int detail_uv_layer
- Color emission
- bool emission_enabled
- float emission_energy
- Texture emission_texture
- bool flags_fixed_size
- bool flags_no_depth_test
- bool flags_transparent
- bool flags_unshaded
- bool flags_use_point_size
- bool flags_vertex_lighting
- float metallic
- float metallic_specular
- Texture metallic_texture
- int metallic_texture_channel
- bool normal_enabled
- float normal_scale
- Texture normal_texture
- float params_alpha_scissor_threshold
- int params_billboard_mode
- int params_blend_mode
- int params_cull_mode
- int params_depth_draw_mode
- int params_diffuse_mode
- bool params_grow
- float params_grow_amount
- float params_line_width
- float params_point_size
- int params_specular_mode
- bool params_use_alpha_scissor
- int particles_anim_h_frames
- int particles_anim_loop
- int particles_anim_v_frames
- bool refraction_enabled
- float refraction_scale
- Texture refraction_texture
- int refraction_texture_channel
- float rim
- bool rim_enabled
- Texture rim_texture
- float rim_tint
- float roughness
- Texture roughness_texture
- int roughness_texture_channel
- bool subsurf_scatter_enabled
- float subsurf_scatter_strength
- Texture subsurf_scatter_texture
- Vector3 uv1_offset
- Vector3 uv1_scale
- bool uv1_triplanar
- float uv1_triplanar_sharpness
- Vector3 uv2_offset
- Vector3 uv2_scale
- bool uv2_triplanar
- float uv2_triplanar_sharpness
- bool vertex_color_is_srgb
- 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¶
- Color get_albedo ( ) const
- float get_alpha_scissor_threshold ( ) const
- float get_anisotropy ( ) const
- int get_ao_texture_channel ( ) const
- int get_billboard_mode ( ) const
- int get_blend_mode ( ) const
- float get_clearcoat ( ) const
- float get_clearcoat_gloss ( ) const
- int get_cull_mode ( ) const
- int get_depth_deep_parallax_max_layers ( ) const
- int get_depth_deep_parallax_min_layers ( ) const
- int get_depth_draw_mode ( ) const
- float get_depth_scale ( ) const
- int get_detail_blend_mode ( ) const
- int get_detail_uv ( ) const
- int get_diffuse_mode ( ) const
- Color get_emission ( ) const
- float get_emission_energy ( ) const
- float get_grow ( ) const
- float get_line_width ( ) const
- float get_metallic ( ) const
- int get_metallic_texture_channel ( ) const
- float get_normal_scale ( ) const
- int get_particles_anim_h_frames ( ) const
- int get_particles_anim_loop ( ) const
- int get_particles_anim_v_frames ( ) const
- float get_point_size ( ) const
- float get_refraction ( ) const
- int get_refraction_texture_channel ( ) const
- float get_rim ( ) const
- float get_rim_tint ( ) const
- float get_roughness ( ) const
- int get_roughness_texture_channel ( ) const
- float get_specular ( ) const
- int get_specular_mode ( ) const
- float get_subsurface_scattering_strength ( ) const
- Vector3 get_uv1_offset ( ) const
- Vector3 get_uv1_scale ( ) const
- float get_uv1_triplanar_blend_sharpness ( ) const
- Vector3 get_uv2_offset ( ) const
- Vector3 get_uv2_scale ( ) const
- float get_uv2_triplanar_blend_sharpness ( ) const
- bool is_depth_deep_parallax_enabled ( ) const
- bool is_grow_enabled ( ) const
- void set_albedo ( Color albedo )
- void set_alpha_scissor_threshold ( float threshold )
- void set_anisotropy ( float anisotropy )
- void set_ao_texture_channel ( int channel )
- void set_billboard_mode ( int mode )
- void set_blend_mode ( int blend_mode )
- void set_clearcoat ( float clearcoat )
- void set_clearcoat_gloss ( float clearcoat_gloss )
- void set_cull_mode ( int cull_mode )
- void set_depth_deep_parallax ( bool enable )
- void set_depth_deep_parallax_max_layers ( int layer )
- void set_depth_deep_parallax_min_layers ( int layer )
- void set_depth_draw_mode ( int depth_draw_mode )
- void set_depth_scale ( float depth_scale )
- void set_detail_blend_mode ( int detail_blend_mode )
- void set_detail_uv ( int detail_uv )
- void set_diffuse_mode ( int diffuse_mode )
- void set_emission ( Color emission )
- void set_emission_energy ( float emission_energy )
- void set_grow ( float amount )
- void set_grow_enabled ( bool enable )
- void set_line_width ( float line_width )
- void set_metallic ( float metallic )
- void set_metallic_texture_channel ( int channel )
- void set_normal_scale ( float normal_scale )
- void set_particles_anim_h_frames ( int frames )
- void set_particles_anim_loop ( int frames )
- void set_particles_anim_v_frames ( int frames )
- void set_point_size ( float point_size )
- void set_refraction ( float refraction )
- void set_refraction_texture_channel ( int channel )
- void set_rim ( float rim )
- void set_rim_tint ( float rim_tint )
- void set_roughness ( float roughness )
- void set_roughness_texture_channel ( int channel )
- void set_specular ( float specular )
- void set_specular_mode ( int specular_mode )
- void set_subsurface_scattering_strength ( float strength )
- void set_uv1_offset ( Vector3 offset )
- void set_uv1_scale ( Vector3 scale )
- void set_uv1_triplanar_blend_sharpness ( float sharpness )
- void set_uv2_offset ( Vector3 offset )
- void set_uv2_scale ( Vector3 scale )
- void set_uv2_triplanar_blend_sharpness ( float sharpness )