123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the SpatialMaterial.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_SpatialMaterial:
- SpatialMaterial
- ===============
- **Inherits:** :ref:`Material<class_material>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Member Variables
- ----------------
- .. _class_SpatialMaterial_albedo_color:
- - :ref:`Color<class_color>` **albedo_color**
- .. _class_SpatialMaterial_albedo_texture:
- - :ref:`Texture<class_texture>` **albedo_texture**
- .. _class_SpatialMaterial_anisotropy:
- - :ref:`float<class_float>` **anisotropy**
- .. _class_SpatialMaterial_anisotropy_enabled:
- - :ref:`bool<class_bool>` **anisotropy_enabled**
- .. _class_SpatialMaterial_anisotropy_flowmap:
- - :ref:`Texture<class_texture>` **anisotropy_flowmap**
- .. _class_SpatialMaterial_ao_enabled:
- - :ref:`bool<class_bool>` **ao_enabled**
- .. _class_SpatialMaterial_ao_light_affect:
- - :ref:`float<class_float>` **ao_light_affect**
- .. _class_SpatialMaterial_ao_on_uv2:
- - :ref:`bool<class_bool>` **ao_on_uv2**
- .. _class_SpatialMaterial_ao_texture:
- - :ref:`Texture<class_texture>` **ao_texture**
- .. _class_SpatialMaterial_ao_texture_channel:
- - :ref:`TextureChannel<enum_spatialmaterial_texturechannel>` **ao_texture_channel**
- .. _class_SpatialMaterial_clearcoat:
- - :ref:`float<class_float>` **clearcoat**
- .. _class_SpatialMaterial_clearcoat_enabled:
- - :ref:`bool<class_bool>` **clearcoat_enabled**
- .. _class_SpatialMaterial_clearcoat_gloss:
- - :ref:`float<class_float>` **clearcoat_gloss**
- .. _class_SpatialMaterial_clearcoat_texture:
- - :ref:`Texture<class_texture>` **clearcoat_texture**
- .. _class_SpatialMaterial_depth_deep_parallax:
- - :ref:`bool<class_bool>` **depth_deep_parallax**
- .. _class_SpatialMaterial_depth_enabled:
- - :ref:`bool<class_bool>` **depth_enabled**
- .. _class_SpatialMaterial_depth_max_layers:
- - :ref:`int<class_int>` **depth_max_layers**
- .. _class_SpatialMaterial_depth_min_layers:
- - :ref:`int<class_int>` **depth_min_layers**
- .. _class_SpatialMaterial_depth_scale:
- - :ref:`float<class_float>` **depth_scale**
- .. _class_SpatialMaterial_depth_texture:
- - :ref:`Texture<class_texture>` **depth_texture**
- .. _class_SpatialMaterial_detail_albedo:
- - :ref:`Texture<class_texture>` **detail_albedo**
- .. _class_SpatialMaterial_detail_blend_mode:
- - :ref:`BlendMode<enum_spatialmaterial_blendmode>` **detail_blend_mode**
- .. _class_SpatialMaterial_detail_enabled:
- - :ref:`bool<class_bool>` **detail_enabled**
- .. _class_SpatialMaterial_detail_mask:
- - :ref:`Texture<class_texture>` **detail_mask**
- .. _class_SpatialMaterial_detail_normal:
- - :ref:`Texture<class_texture>` **detail_normal**
- .. _class_SpatialMaterial_detail_uv_layer:
- - :ref:`DetailUV<enum_spatialmaterial_detailuv>` **detail_uv_layer**
- .. _class_SpatialMaterial_distance_fade_enable:
- - :ref:`bool<class_bool>` **distance_fade_enable**
- .. _class_SpatialMaterial_distance_fade_max_distance:
- - :ref:`float<class_float>` **distance_fade_max_distance**
- .. _class_SpatialMaterial_distance_fade_min_distance:
- - :ref:`float<class_float>` **distance_fade_min_distance**
- .. _class_SpatialMaterial_emission:
- - :ref:`Color<class_color>` **emission**
- .. _class_SpatialMaterial_emission_enabled:
- - :ref:`bool<class_bool>` **emission_enabled**
- .. _class_SpatialMaterial_emission_energy:
- - :ref:`float<class_float>` **emission_energy**
- .. _class_SpatialMaterial_emission_on_uv2:
- - :ref:`bool<class_bool>` **emission_on_uv2**
- .. _class_SpatialMaterial_emission_operator:
- - :ref:`EmissionOperator<enum_spatialmaterial_emissionoperator>` **emission_operator**
- .. _class_SpatialMaterial_emission_texture:
- - :ref:`Texture<class_texture>` **emission_texture**
- .. _class_SpatialMaterial_flags_albedo_tex_force_srgb:
- - :ref:`bool<class_bool>` **flags_albedo_tex_force_srgb**
- .. _class_SpatialMaterial_flags_fixed_size:
- - :ref:`bool<class_bool>` **flags_fixed_size**
- .. _class_SpatialMaterial_flags_no_depth_test:
- - :ref:`bool<class_bool>` **flags_no_depth_test**
- .. _class_SpatialMaterial_flags_transparent:
- - :ref:`bool<class_bool>` **flags_transparent**
- .. _class_SpatialMaterial_flags_unshaded:
- - :ref:`bool<class_bool>` **flags_unshaded**
- .. _class_SpatialMaterial_flags_use_point_size:
- - :ref:`bool<class_bool>` **flags_use_point_size**
- .. _class_SpatialMaterial_flags_vertex_lighting:
- - :ref:`bool<class_bool>` **flags_vertex_lighting**
- .. _class_SpatialMaterial_flags_world_triplanar:
- - :ref:`bool<class_bool>` **flags_world_triplanar**
- .. _class_SpatialMaterial_metallic:
- - :ref:`float<class_float>` **metallic**
- .. _class_SpatialMaterial_metallic_specular:
- - :ref:`float<class_float>` **metallic_specular**
- .. _class_SpatialMaterial_metallic_texture:
- - :ref:`Texture<class_texture>` **metallic_texture**
- .. _class_SpatialMaterial_metallic_texture_channel:
- - :ref:`TextureChannel<enum_spatialmaterial_texturechannel>` **metallic_texture_channel**
- .. _class_SpatialMaterial_normal_enabled:
- - :ref:`bool<class_bool>` **normal_enabled**
- .. _class_SpatialMaterial_normal_scale:
- - :ref:`float<class_float>` **normal_scale**
- .. _class_SpatialMaterial_normal_texture:
- - :ref:`Texture<class_texture>` **normal_texture**
- .. _class_SpatialMaterial_params_alpha_scissor_threshold:
- - :ref:`float<class_float>` **params_alpha_scissor_threshold**
- .. _class_SpatialMaterial_params_billboard_mode:
- - :ref:`BillboardMode<enum_spatialmaterial_billboardmode>` **params_billboard_mode**
- .. _class_SpatialMaterial_params_blend_mode:
- - :ref:`BlendMode<enum_spatialmaterial_blendmode>` **params_blend_mode**
- .. _class_SpatialMaterial_params_cull_mode:
- - :ref:`CullMode<enum_spatialmaterial_cullmode>` **params_cull_mode**
- .. _class_SpatialMaterial_params_depth_draw_mode:
- - :ref:`DepthDrawMode<enum_spatialmaterial_depthdrawmode>` **params_depth_draw_mode**
- .. _class_SpatialMaterial_params_diffuse_mode:
- - :ref:`DiffuseMode<enum_spatialmaterial_diffusemode>` **params_diffuse_mode**
- .. _class_SpatialMaterial_params_grow:
- - :ref:`bool<class_bool>` **params_grow**
- .. _class_SpatialMaterial_params_grow_amount:
- - :ref:`float<class_float>` **params_grow_amount**
- .. _class_SpatialMaterial_params_line_width:
- - :ref:`float<class_float>` **params_line_width**
- .. _class_SpatialMaterial_params_point_size:
- - :ref:`float<class_float>` **params_point_size**
- .. _class_SpatialMaterial_params_specular_mode:
- - :ref:`SpecularMode<enum_spatialmaterial_specularmode>` **params_specular_mode**
- .. _class_SpatialMaterial_params_use_alpha_scissor:
- - :ref:`bool<class_bool>` **params_use_alpha_scissor**
- .. _class_SpatialMaterial_particles_anim_h_frames:
- - :ref:`int<class_int>` **particles_anim_h_frames**
- .. _class_SpatialMaterial_particles_anim_loop:
- - :ref:`int<class_int>` **particles_anim_loop**
- .. _class_SpatialMaterial_particles_anim_v_frames:
- - :ref:`int<class_int>` **particles_anim_v_frames**
- .. _class_SpatialMaterial_proximity_fade_distance:
- - :ref:`float<class_float>` **proximity_fade_distance**
- .. _class_SpatialMaterial_proximity_fade_enable:
- - :ref:`bool<class_bool>` **proximity_fade_enable**
- .. _class_SpatialMaterial_refraction_enabled:
- - :ref:`bool<class_bool>` **refraction_enabled**
- .. _class_SpatialMaterial_refraction_scale:
- - :ref:`float<class_float>` **refraction_scale**
- .. _class_SpatialMaterial_refraction_texture:
- - :ref:`Texture<class_texture>` **refraction_texture**
- .. _class_SpatialMaterial_refraction_texture_channel:
- - :ref:`TextureChannel<enum_spatialmaterial_texturechannel>` **refraction_texture_channel**
- .. _class_SpatialMaterial_rim:
- - :ref:`float<class_float>` **rim**
- .. _class_SpatialMaterial_rim_enabled:
- - :ref:`bool<class_bool>` **rim_enabled**
- .. _class_SpatialMaterial_rim_texture:
- - :ref:`Texture<class_texture>` **rim_texture**
- .. _class_SpatialMaterial_rim_tint:
- - :ref:`float<class_float>` **rim_tint**
- .. _class_SpatialMaterial_roughness:
- - :ref:`float<class_float>` **roughness**
- .. _class_SpatialMaterial_roughness_texture:
- - :ref:`Texture<class_texture>` **roughness_texture**
- .. _class_SpatialMaterial_roughness_texture_channel:
- - :ref:`TextureChannel<enum_spatialmaterial_texturechannel>` **roughness_texture_channel**
- .. _class_SpatialMaterial_subsurf_scatter_enabled:
- - :ref:`bool<class_bool>` **subsurf_scatter_enabled**
- .. _class_SpatialMaterial_subsurf_scatter_strength:
- - :ref:`float<class_float>` **subsurf_scatter_strength**
- .. _class_SpatialMaterial_subsurf_scatter_texture:
- - :ref:`Texture<class_texture>` **subsurf_scatter_texture**
- .. _class_SpatialMaterial_transmission:
- - :ref:`Color<class_color>` **transmission**
- .. _class_SpatialMaterial_transmission_enabled:
- - :ref:`bool<class_bool>` **transmission_enabled**
- .. _class_SpatialMaterial_transmission_texture:
- - :ref:`Texture<class_texture>` **transmission_texture**
- .. _class_SpatialMaterial_uv1_offset:
- - :ref:`Vector3<class_vector3>` **uv1_offset**
- .. _class_SpatialMaterial_uv1_scale:
- - :ref:`Vector3<class_vector3>` **uv1_scale**
- .. _class_SpatialMaterial_uv1_triplanar:
- - :ref:`bool<class_bool>` **uv1_triplanar**
- .. _class_SpatialMaterial_uv1_triplanar_sharpness:
- - :ref:`float<class_float>` **uv1_triplanar_sharpness**
- .. _class_SpatialMaterial_uv2_offset:
- - :ref:`Vector3<class_vector3>` **uv2_offset**
- .. _class_SpatialMaterial_uv2_scale:
- - :ref:`Vector3<class_vector3>` **uv2_scale**
- .. _class_SpatialMaterial_uv2_triplanar:
- - :ref:`bool<class_bool>` **uv2_triplanar**
- .. _class_SpatialMaterial_uv2_triplanar_sharpness:
- - :ref:`float<class_float>` **uv2_triplanar_sharpness**
- .. _class_SpatialMaterial_vertex_color_is_srgb:
- - :ref:`bool<class_bool>` **vertex_color_is_srgb**
- .. _class_SpatialMaterial_vertex_color_use_as_albedo:
- - :ref:`bool<class_bool>` **vertex_color_use_as_albedo**
- Enums
- -----
- .. _enum_SpatialMaterial_DetailUV:
- enum **DetailUV**
- - **DETAIL_UV_1** = **0**
- - **DETAIL_UV_2** = **1**
- .. _enum_SpatialMaterial_TextureParam:
- enum **TextureParam**
- - **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_TRANSMISSION** = **11**
- - **TEXTURE_REFRACTION** = **12**
- - **TEXTURE_DETAIL_MASK** = **13**
- - **TEXTURE_DETAIL_ALBEDO** = **14**
- - **TEXTURE_DETAIL_NORMAL** = **15**
- - **TEXTURE_MAX** = **16**
- .. _enum_SpatialMaterial_DepthDrawMode:
- enum **DepthDrawMode**
- - **DEPTH_DRAW_OPAQUE_ONLY** = **0**
- - **DEPTH_DRAW_ALWAYS** = **1**
- - **DEPTH_DRAW_DISABLED** = **2**
- - **DEPTH_DRAW_ALPHA_OPAQUE_PREPASS** = **3**
- .. _enum_SpatialMaterial_DiffuseMode:
- enum **DiffuseMode**
- - **DIFFUSE_BURLEY** = **0**
- - **DIFFUSE_LAMBERT** = **1**
- - **DIFFUSE_LAMBERT_WRAP** = **2**
- - **DIFFUSE_OREN_NAYAR** = **3**
- - **DIFFUSE_TOON** = **4**
- .. _enum_SpatialMaterial_CullMode:
- enum **CullMode**
- - **CULL_BACK** = **0**
- - **CULL_FRONT** = **1**
- - **CULL_DISABLED** = **2**
- .. _enum_SpatialMaterial_Feature:
- enum **Feature**
- - **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_TRANSMISSION** = **9**
- - **FEATURE_REFRACTION** = **10**
- - **FEATURE_DETAIL** = **11**
- - **FEATURE_MAX** = **12**
- .. _enum_SpatialMaterial_Flags:
- enum **Flags**
- - **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** = **10**
- - **FLAG_EMISSION_ON_UV2** = **11**
- - **FLAG_USE_ALPHA_SCISSOR** = **12**
- - **FLAG_TRIPLANAR_USE_WORLD** = **9**
- - **FLAG_ALBEDO_TEXTURE_FORCE_SRGB** = **13**
- - **FLAG_MAX** = **14**
- .. _enum_SpatialMaterial_BlendMode:
- enum **BlendMode**
- - **BLEND_MODE_MIX** = **0**
- - **BLEND_MODE_ADD** = **1**
- - **BLEND_MODE_SUB** = **2**
- - **BLEND_MODE_MUL** = **3**
- .. _enum_SpatialMaterial_SpecularMode:
- enum **SpecularMode**
- - **SPECULAR_SCHLICK_GGX** = **0**
- - **SPECULAR_BLINN** = **1**
- - **SPECULAR_PHONG** = **2**
- - **SPECULAR_TOON** = **3**
- - **SPECULAR_DISABLED** = **4**
- .. _enum_SpatialMaterial_TextureChannel:
- enum **TextureChannel**
- - **TEXTURE_CHANNEL_RED** = **0**
- - **TEXTURE_CHANNEL_GREEN** = **1**
- - **TEXTURE_CHANNEL_BLUE** = **2**
- - **TEXTURE_CHANNEL_ALPHA** = **3**
- - **TEXTURE_CHANNEL_GRAYSCALE** = **4**
- .. _enum_SpatialMaterial_BillboardMode:
- enum **BillboardMode**
- - **BILLBOARD_DISABLED** = **0**
- - **BILLBOARD_ENABLED** = **1**
- - **BILLBOARD_FIXED_Y** = **2**
- - **BILLBOARD_PARTICLES** = **3**
- .. _enum_SpatialMaterial_EmissionOperator:
- enum **EmissionOperator**
- - **EMISSION_OP_ADD** = **0**
- - **EMISSION_OP_MULTIPLY** = **1**
|