SpatialMaterial

Inherits: Material < Resource < Reference < Object

Category: Core

Brief Description

Member Functions

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
bool get_feature ( int feature ) const
bool get_flag ( int flag ) 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
Texture get_texture ( int param ) 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_feature ( int feature, bool enable )
void set_flag ( int flag, bool enable )
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_texture ( int param, Texture texture )
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 )

Member Variables

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
  • bool get_feature ( int feature ) 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
  • float get_uv1_triplanar_blend_sharpness ( ) 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_feature ( int feature, bool enable )
  • void set_flag ( int flag, bool enable )
  • 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 )