1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602 |
- :github_url: hide
- .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the BaseMaterial3D.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_BaseMaterial3D:
- BaseMaterial3D
- ==============
- **Inherits:** :ref:`Material<class_Material>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`ORMMaterial3D<class_ORMMaterial3D>`, :ref:`StandardMaterial3D<class_StandardMaterial3D>`
- Default 3D rendering material.
- Description
- -----------
- This provides a default material with a wide variety of rendering features and properties without the need to write shader code. See the tutorial below for details.
- Tutorials
- ---------
- - :doc:`../tutorials/3d/standard_material_3d`
- Properties
- ----------
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Color<class_Color>` | :ref:`albedo_color<class_BaseMaterial3D_property_albedo_color>` | ``Color(1, 1, 1, 1)`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`albedo_tex_force_srgb<class_BaseMaterial3D_property_albedo_tex_force_srgb>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`albedo_texture<class_BaseMaterial3D_property_albedo_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`alpha_antialiasing_edge<class_BaseMaterial3D_property_alpha_antialiasing_edge>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>` | :ref:`alpha_antialiasing_mode<class_BaseMaterial3D_property_alpha_antialiasing_mode>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`alpha_hash_scale<class_BaseMaterial3D_property_alpha_hash_scale>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`alpha_scissor_threshold<class_BaseMaterial3D_property_alpha_scissor_threshold>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`anisotropy<class_BaseMaterial3D_property_anisotropy>` | ``0.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`anisotropy_enabled<class_BaseMaterial3D_property_anisotropy_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`anisotropy_flowmap<class_BaseMaterial3D_property_anisotropy_flowmap>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`ao_enabled<class_BaseMaterial3D_property_ao_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`ao_light_affect<class_BaseMaterial3D_property_ao_light_affect>` | ``0.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`ao_on_uv2<class_BaseMaterial3D_property_ao_on_uv2>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` | :ref:`ao_texture_channel<class_BaseMaterial3D_property_ao_texture_channel>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Color<class_Color>` | :ref:`backlight<class_BaseMaterial3D_property_backlight>` | ``Color(0, 0, 0, 1)`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`backlight_enabled<class_BaseMaterial3D_property_backlight_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`backlight_texture<class_BaseMaterial3D_property_backlight_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`billboard_keep_scale<class_BaseMaterial3D_property_billboard_keep_scale>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` | :ref:`billboard_mode<class_BaseMaterial3D_property_billboard_mode>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` | :ref:`blend_mode<class_BaseMaterial3D_property_blend_mode>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`clearcoat<class_BaseMaterial3D_property_clearcoat>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`clearcoat_enabled<class_BaseMaterial3D_property_clearcoat_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`clearcoat_gloss<class_BaseMaterial3D_property_clearcoat_gloss>` | ``0.5`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`clearcoat_texture<class_BaseMaterial3D_property_clearcoat_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`CullMode<enum_BaseMaterial3D_CullMode>` | :ref:`cull_mode<class_BaseMaterial3D_property_cull_mode>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>` | :ref:`depth_draw_mode<class_BaseMaterial3D_property_depth_draw_mode>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` | :ref:`detail_blend_mode<class_BaseMaterial3D_property_detail_blend_mode>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`detail_enabled<class_BaseMaterial3D_property_detail_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`detail_mask<class_BaseMaterial3D_property_detail_mask>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`detail_normal<class_BaseMaterial3D_property_detail_normal>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` | :ref:`detail_uv_layer<class_BaseMaterial3D_property_detail_uv_layer>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` | :ref:`diffuse_mode<class_BaseMaterial3D_property_diffuse_mode>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`disable_ambient_light<class_BaseMaterial3D_property_disable_ambient_light>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`disable_receive_shadows<class_BaseMaterial3D_property_disable_receive_shadows>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`distance_fade_max_distance<class_BaseMaterial3D_property_distance_fade_max_distance>` | ``10.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`distance_fade_min_distance<class_BaseMaterial3D_property_distance_fade_min_distance>` | ``0.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` | :ref:`distance_fade_mode<class_BaseMaterial3D_property_distance_fade_mode>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Color<class_Color>` | :ref:`emission<class_BaseMaterial3D_property_emission>` | ``Color(0, 0, 0, 1)`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`emission_enabled<class_BaseMaterial3D_property_emission_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`emission_energy<class_BaseMaterial3D_property_emission_energy>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`emission_on_uv2<class_BaseMaterial3D_property_emission_on_uv2>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>` | :ref:`emission_operator<class_BaseMaterial3D_property_emission_operator>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`emission_texture<class_BaseMaterial3D_property_emission_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`fixed_size<class_BaseMaterial3D_property_fixed_size>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`grow<class_BaseMaterial3D_property_grow>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`grow_amount<class_BaseMaterial3D_property_grow_amount>` | ``0.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`heightmap_deep_parallax<class_BaseMaterial3D_property_heightmap_deep_parallax>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`heightmap_enabled<class_BaseMaterial3D_property_heightmap_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`heightmap_flip_binormal<class_BaseMaterial3D_property_heightmap_flip_binormal>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`heightmap_flip_tangent<class_BaseMaterial3D_property_heightmap_flip_tangent>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`heightmap_flip_texture<class_BaseMaterial3D_property_heightmap_flip_texture>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`int<class_int>` | :ref:`heightmap_max_layers<class_BaseMaterial3D_property_heightmap_max_layers>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`int<class_int>` | :ref:`heightmap_min_layers<class_BaseMaterial3D_property_heightmap_min_layers>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`heightmap_scale<class_BaseMaterial3D_property_heightmap_scale>` | ``0.05`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`heightmap_texture<class_BaseMaterial3D_property_heightmap_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`metallic<class_BaseMaterial3D_property_metallic>` | ``0.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`metallic_specular<class_BaseMaterial3D_property_metallic_specular>` | ``0.5`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`metallic_texture<class_BaseMaterial3D_property_metallic_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` | :ref:`metallic_texture_channel<class_BaseMaterial3D_property_metallic_texture_channel>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`no_depth_test<class_BaseMaterial3D_property_no_depth_test>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`normal_enabled<class_BaseMaterial3D_property_normal_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`normal_scale<class_BaseMaterial3D_property_normal_scale>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`normal_texture<class_BaseMaterial3D_property_normal_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`orm_texture<class_BaseMaterial3D_property_orm_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`int<class_int>` | :ref:`particles_anim_h_frames<class_BaseMaterial3D_property_particles_anim_h_frames>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`particles_anim_loop<class_BaseMaterial3D_property_particles_anim_loop>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`int<class_int>` | :ref:`particles_anim_v_frames<class_BaseMaterial3D_property_particles_anim_v_frames>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`point_size<class_BaseMaterial3D_property_point_size>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`proximity_fade_distance<class_BaseMaterial3D_property_proximity_fade_distance>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`proximity_fade_enable<class_BaseMaterial3D_property_proximity_fade_enable>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`refraction_enabled<class_BaseMaterial3D_property_refraction_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`refraction_scale<class_BaseMaterial3D_property_refraction_scale>` | ``0.05`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`refraction_texture<class_BaseMaterial3D_property_refraction_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` | :ref:`refraction_texture_channel<class_BaseMaterial3D_property_refraction_texture_channel>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`rim<class_BaseMaterial3D_property_rim>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`rim_enabled<class_BaseMaterial3D_property_rim_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`rim_texture<class_BaseMaterial3D_property_rim_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`rim_tint<class_BaseMaterial3D_property_rim_tint>` | ``0.5`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`roughness<class_BaseMaterial3D_property_roughness>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`roughness_texture<class_BaseMaterial3D_property_roughness_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` | :ref:`roughness_texture_channel<class_BaseMaterial3D_property_roughness_texture_channel>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` | :ref:`shading_mode<class_BaseMaterial3D_property_shading_mode>` | ``1`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`shadow_to_opacity<class_BaseMaterial3D_property_shadow_to_opacity>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` | :ref:`specular_mode<class_BaseMaterial3D_property_specular_mode>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`subsurf_scatter_enabled<class_BaseMaterial3D_property_subsurf_scatter_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`subsurf_scatter_skin_mode<class_BaseMaterial3D_property_subsurf_scatter_skin_mode>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`subsurf_scatter_strength<class_BaseMaterial3D_property_subsurf_scatter_strength>` | ``0.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`subsurf_scatter_texture<class_BaseMaterial3D_property_subsurf_scatter_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`subsurf_scatter_transmittance_boost<class_BaseMaterial3D_property_subsurf_scatter_transmittance_boost>` | ``0.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Color<class_Color>` | :ref:`subsurf_scatter_transmittance_color<class_BaseMaterial3D_property_subsurf_scatter_transmittance_color>` | ``Color(1, 1, 1, 1)`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`subsurf_scatter_transmittance_depth<class_BaseMaterial3D_property_subsurf_scatter_transmittance_depth>` | ``0.1`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`subsurf_scatter_transmittance_enabled<class_BaseMaterial3D_property_subsurf_scatter_transmittance_enabled>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`subsurf_scatter_transmittance_texture<class_BaseMaterial3D_property_subsurf_scatter_transmittance_texture>` | |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` | :ref:`texture_filter<class_BaseMaterial3D_property_texture_filter>` | ``3`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`texture_repeat<class_BaseMaterial3D_property_texture_repeat>` | ``true`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Transparency<enum_BaseMaterial3D_Transparency>` | :ref:`transparency<class_BaseMaterial3D_property_transparency>` | ``0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`use_particle_trails<class_BaseMaterial3D_property_use_particle_trails>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`use_point_size<class_BaseMaterial3D_property_use_point_size>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Vector3<class_Vector3>` | :ref:`uv1_offset<class_BaseMaterial3D_property_uv1_offset>` | ``Vector3(0, 0, 0)`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Vector3<class_Vector3>` | :ref:`uv1_scale<class_BaseMaterial3D_property_uv1_scale>` | ``Vector3(1, 1, 1)`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`uv1_triplanar<class_BaseMaterial3D_property_uv1_triplanar>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`uv1_triplanar_sharpness<class_BaseMaterial3D_property_uv1_triplanar_sharpness>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`uv1_world_triplanar<class_BaseMaterial3D_property_uv1_world_triplanar>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Vector3<class_Vector3>` | :ref:`uv2_offset<class_BaseMaterial3D_property_uv2_offset>` | ``Vector3(0, 0, 0)`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`Vector3<class_Vector3>` | :ref:`uv2_scale<class_BaseMaterial3D_property_uv2_scale>` | ``Vector3(1, 1, 1)`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`uv2_triplanar<class_BaseMaterial3D_property_uv2_triplanar>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`float<class_float>` | :ref:`uv2_triplanar_sharpness<class_BaseMaterial3D_property_uv2_triplanar_sharpness>` | ``1.0`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`uv2_world_triplanar<class_BaseMaterial3D_property_uv2_world_triplanar>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`vertex_color_is_srgb<class_BaseMaterial3D_property_vertex_color_is_srgb>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- | :ref:`bool<class_bool>` | :ref:`vertex_color_use_as_albedo<class_BaseMaterial3D_property_vertex_color_use_as_albedo>` | ``false`` |
- +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
- Methods
- -------
- +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_feature<class_BaseMaterial3D_method_get_feature>` **(** :ref:`Feature<enum_BaseMaterial3D_Feature>` feature **)** |const| |
- +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_flag<class_BaseMaterial3D_method_get_flag>` **(** :ref:`Flags<enum_BaseMaterial3D_Flags>` flag **)** |const| |
- +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`get_texture<class_BaseMaterial3D_method_get_texture>` **(** :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` param **)** |const| |
- +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_feature<class_BaseMaterial3D_method_set_feature>` **(** :ref:`Feature<enum_BaseMaterial3D_Feature>` feature, :ref:`bool<class_bool>` enable **)** |
- +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_flag<class_BaseMaterial3D_method_set_flag>` **(** :ref:`Flags<enum_BaseMaterial3D_Flags>` flag, :ref:`bool<class_bool>` enable **)** |
- +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_texture<class_BaseMaterial3D_method_set_texture>` **(** :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` param, :ref:`Texture2D<class_Texture2D>` texture **)** |
- +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- Enumerations
- ------------
- .. _enum_BaseMaterial3D_TextureParam:
- .. _class_BaseMaterial3D_constant_TEXTURE_ALBEDO:
- .. _class_BaseMaterial3D_constant_TEXTURE_METALLIC:
- .. _class_BaseMaterial3D_constant_TEXTURE_ROUGHNESS:
- .. _class_BaseMaterial3D_constant_TEXTURE_EMISSION:
- .. _class_BaseMaterial3D_constant_TEXTURE_NORMAL:
- .. _class_BaseMaterial3D_constant_TEXTURE_RIM:
- .. _class_BaseMaterial3D_constant_TEXTURE_CLEARCOAT:
- .. _class_BaseMaterial3D_constant_TEXTURE_FLOWMAP:
- .. _class_BaseMaterial3D_constant_TEXTURE_AMBIENT_OCCLUSION:
- .. _class_BaseMaterial3D_constant_TEXTURE_HEIGHTMAP:
- .. _class_BaseMaterial3D_constant_TEXTURE_SUBSURFACE_SCATTERING:
- .. _class_BaseMaterial3D_constant_TEXTURE_SUBSURFACE_TRANSMITTANCE:
- .. _class_BaseMaterial3D_constant_TEXTURE_BACKLIGHT:
- .. _class_BaseMaterial3D_constant_TEXTURE_REFRACTION:
- .. _class_BaseMaterial3D_constant_TEXTURE_DETAIL_MASK:
- .. _class_BaseMaterial3D_constant_TEXTURE_DETAIL_ALBEDO:
- .. _class_BaseMaterial3D_constant_TEXTURE_DETAIL_NORMAL:
- .. _class_BaseMaterial3D_constant_TEXTURE_ORM:
- .. _class_BaseMaterial3D_constant_TEXTURE_MAX:
- enum **TextureParam**:
- - **TEXTURE_ALBEDO** = **0** --- Texture specifying per-pixel color.
- - **TEXTURE_METALLIC** = **1** --- Texture specifying per-pixel metallic value.
- - **TEXTURE_ROUGHNESS** = **2** --- Texture specifying per-pixel roughness value.
- - **TEXTURE_EMISSION** = **3** --- Texture specifying per-pixel emission color.
- - **TEXTURE_NORMAL** = **4** --- Texture specifying per-pixel normal vector.
- - **TEXTURE_RIM** = **5** --- Texture specifying per-pixel rim value.
- - **TEXTURE_CLEARCOAT** = **6** --- Texture specifying per-pixel clearcoat value.
- - **TEXTURE_FLOWMAP** = **7** --- Texture specifying per-pixel flowmap direction for use with :ref:`anisotropy<class_BaseMaterial3D_property_anisotropy>`.
- - **TEXTURE_AMBIENT_OCCLUSION** = **8** --- Texture specifying per-pixel ambient occlusion value.
- - **TEXTURE_HEIGHTMAP** = **9** --- Texture specifying per-pixel height.
- - **TEXTURE_SUBSURFACE_SCATTERING** = **10** --- Texture specifying per-pixel subsurface scattering.
- - **TEXTURE_SUBSURFACE_TRANSMITTANCE** = **11** --- Texture specifying per-pixel transmittance for subsurface scattering.
- - **TEXTURE_BACKLIGHT** = **12** --- Texture specifying per-pixel backlight color.
- - **TEXTURE_REFRACTION** = **13** --- Texture specifying per-pixel refraction strength.
- - **TEXTURE_DETAIL_MASK** = **14** --- Texture specifying per-pixel detail mask blending value.
- - **TEXTURE_DETAIL_ALBEDO** = **15** --- Texture specifying per-pixel detail color.
- - **TEXTURE_DETAIL_NORMAL** = **16** --- Texture specifying per-pixel detail normal.
- - **TEXTURE_ORM** = **17** --- Texture holding ambient occlusion, roughness, and metallic.
- - **TEXTURE_MAX** = **18** --- Represents the size of the :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` enum.
- ----
- .. _enum_BaseMaterial3D_TextureFilter:
- .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_NEAREST:
- .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_LINEAR:
- .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS:
- .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS:
- .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC:
- .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC:
- .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_MAX:
- enum **TextureFilter**:
- - **TEXTURE_FILTER_NEAREST** = **0** --- The texture filter reads from the nearest pixel only. The simplest and fastest method of filtering, but the texture will look pixelized.
- - **TEXTURE_FILTER_LINEAR** = **1** --- The texture filter blends between the nearest 4 pixels. Use this when you want to avoid a pixelated style, but do not want mipmaps.
- - **TEXTURE_FILTER_NEAREST_WITH_MIPMAPS** = **2** --- The texture filter reads from the nearest pixel in the nearest mipmap. The fastest way to read from textures with mipmaps.
- - **TEXTURE_FILTER_LINEAR_WITH_MIPMAPS** = **3** --- The texture filter blends between the nearest 4 pixels and between the nearest 2 mipmaps. Use this for most cases as mipmaps are important to smooth out pixels that are far from the camera.
- - **TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC** = **4** --- The texture filter reads from the nearest pixel, but selects a mipmap based on the angle between the surface and the camera view. This reduces artifacts on surfaces that are almost in line with the camera.
- - **TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC** = **5** --- The texture filter blends between the nearest 4 pixels and selects a mipmap based on the angle between the surface and the camera view. This reduces artifacts on surfaces that are almost in line with the camera. This is the slowest of the filtering options, but results in the highest quality texturing.
- - **TEXTURE_FILTER_MAX** = **6** --- Represents the size of the :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` enum.
- ----
- .. _enum_BaseMaterial3D_DetailUV:
- .. _class_BaseMaterial3D_constant_DETAIL_UV_1:
- .. _class_BaseMaterial3D_constant_DETAIL_UV_2:
- enum **DetailUV**:
- - **DETAIL_UV_1** = **0** --- Use ``UV`` with the detail texture.
- - **DETAIL_UV_2** = **1** --- Use ``UV2`` with the detail texture.
- ----
- .. _enum_BaseMaterial3D_Transparency:
- .. _class_BaseMaterial3D_constant_TRANSPARENCY_DISABLED:
- .. _class_BaseMaterial3D_constant_TRANSPARENCY_ALPHA:
- .. _class_BaseMaterial3D_constant_TRANSPARENCY_ALPHA_SCISSOR:
- .. _class_BaseMaterial3D_constant_TRANSPARENCY_ALPHA_HASH:
- .. _class_BaseMaterial3D_constant_TRANSPARENCY_ALPHA_DEPTH_PRE_PASS:
- .. _class_BaseMaterial3D_constant_TRANSPARENCY_MAX:
- enum **Transparency**:
- - **TRANSPARENCY_DISABLED** = **0** --- The material will not use transparency.
- - **TRANSPARENCY_ALPHA** = **1** --- The material will use the texture's alpha values for transparency.
- - **TRANSPARENCY_ALPHA_SCISSOR** = **2** --- The material will cut off all values below a threshold, the rest will remain opaque.
- - **TRANSPARENCY_ALPHA_HASH** = **3** --- The material will cut off all values below a spatially-deterministic threshold, the rest will remain opaque.
- - **TRANSPARENCY_ALPHA_DEPTH_PRE_PASS** = **4** --- The material will use the texture's alpha value for transparency, but will still be rendered in the pre-pass.
- - **TRANSPARENCY_MAX** = **5** --- Represents the size of the :ref:`Transparency<enum_BaseMaterial3D_Transparency>` enum.
- ----
- .. _enum_BaseMaterial3D_ShadingMode:
- .. _class_BaseMaterial3D_constant_SHADING_MODE_UNSHADED:
- .. _class_BaseMaterial3D_constant_SHADING_MODE_PER_PIXEL:
- .. _class_BaseMaterial3D_constant_SHADING_MODE_PER_VERTEX:
- .. _class_BaseMaterial3D_constant_SHADING_MODE_MAX:
- enum **ShadingMode**:
- - **SHADING_MODE_UNSHADED** = **0** --- The object will not receive shadows.
- - **SHADING_MODE_PER_PIXEL** = **1** --- The object will be shaded per pixel. Useful for realistic shading effect.
- - **SHADING_MODE_PER_VERTEX** = **2** --- The object will be shaded per vertex. Useful when you want cheaper shaders and do not care about visual quality.
- - **SHADING_MODE_MAX** = **3** --- Represents the size of the :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` enum.
- ----
- .. _enum_BaseMaterial3D_Feature:
- .. _class_BaseMaterial3D_constant_FEATURE_EMISSION:
- .. _class_BaseMaterial3D_constant_FEATURE_NORMAL_MAPPING:
- .. _class_BaseMaterial3D_constant_FEATURE_RIM:
- .. _class_BaseMaterial3D_constant_FEATURE_CLEARCOAT:
- .. _class_BaseMaterial3D_constant_FEATURE_ANISOTROPY:
- .. _class_BaseMaterial3D_constant_FEATURE_AMBIENT_OCCLUSION:
- .. _class_BaseMaterial3D_constant_FEATURE_HEIGHT_MAPPING:
- .. _class_BaseMaterial3D_constant_FEATURE_SUBSURFACE_SCATTERING:
- .. _class_BaseMaterial3D_constant_FEATURE_SUBSURFACE_TRANSMITTANCE:
- .. _class_BaseMaterial3D_constant_FEATURE_BACKLIGHT:
- .. _class_BaseMaterial3D_constant_FEATURE_REFRACTION:
- .. _class_BaseMaterial3D_constant_FEATURE_DETAIL:
- .. _class_BaseMaterial3D_constant_FEATURE_MAX:
- enum **Feature**:
- - **FEATURE_EMISSION** = **0** --- Constant for setting :ref:`emission_enabled<class_BaseMaterial3D_property_emission_enabled>`.
- - **FEATURE_NORMAL_MAPPING** = **1** --- Constant for setting :ref:`normal_enabled<class_BaseMaterial3D_property_normal_enabled>`.
- - **FEATURE_RIM** = **2** --- Constant for setting :ref:`rim_enabled<class_BaseMaterial3D_property_rim_enabled>`.
- - **FEATURE_CLEARCOAT** = **3** --- Constant for setting :ref:`clearcoat_enabled<class_BaseMaterial3D_property_clearcoat_enabled>`.
- - **FEATURE_ANISOTROPY** = **4** --- Constant for setting :ref:`anisotropy_enabled<class_BaseMaterial3D_property_anisotropy_enabled>`.
- - **FEATURE_AMBIENT_OCCLUSION** = **5** --- Constant for setting :ref:`ao_enabled<class_BaseMaterial3D_property_ao_enabled>`.
- - **FEATURE_HEIGHT_MAPPING** = **6** --- Constant for setting :ref:`heightmap_enabled<class_BaseMaterial3D_property_heightmap_enabled>`.
- - **FEATURE_SUBSURFACE_SCATTERING** = **7** --- Constant for setting :ref:`subsurf_scatter_enabled<class_BaseMaterial3D_property_subsurf_scatter_enabled>`.
- - **FEATURE_SUBSURFACE_TRANSMITTANCE** = **8** --- Constant for setting :ref:`subsurf_scatter_transmittance_enabled<class_BaseMaterial3D_property_subsurf_scatter_transmittance_enabled>`.
- - **FEATURE_BACKLIGHT** = **9** --- Constant for setting :ref:`backlight_enabled<class_BaseMaterial3D_property_backlight_enabled>`.
- - **FEATURE_REFRACTION** = **10** --- Constant for setting :ref:`refraction_enabled<class_BaseMaterial3D_property_refraction_enabled>`.
- - **FEATURE_DETAIL** = **11** --- Constant for setting :ref:`detail_enabled<class_BaseMaterial3D_property_detail_enabled>`.
- - **FEATURE_MAX** = **12** --- Represents the size of the :ref:`Feature<enum_BaseMaterial3D_Feature>` enum.
- ----
- .. _enum_BaseMaterial3D_BlendMode:
- .. _class_BaseMaterial3D_constant_BLEND_MODE_MIX:
- .. _class_BaseMaterial3D_constant_BLEND_MODE_ADD:
- .. _class_BaseMaterial3D_constant_BLEND_MODE_SUB:
- .. _class_BaseMaterial3D_constant_BLEND_MODE_MUL:
- enum **BlendMode**:
- - **BLEND_MODE_MIX** = **0** --- Default blend mode. The color of the object is blended over the background based on the object's alpha value.
- - **BLEND_MODE_ADD** = **1** --- The color of the object is added to the background.
- - **BLEND_MODE_SUB** = **2** --- The color of the object is subtracted from the background.
- - **BLEND_MODE_MUL** = **3** --- The color of the object is multiplied by the background.
- ----
- .. _enum_BaseMaterial3D_AlphaAntiAliasing:
- .. _class_BaseMaterial3D_constant_ALPHA_ANTIALIASING_OFF:
- .. _class_BaseMaterial3D_constant_ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE:
- .. _class_BaseMaterial3D_constant_ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE_AND_TO_ONE:
- enum **AlphaAntiAliasing**:
- - **ALPHA_ANTIALIASING_OFF** = **0** --- Disables Alpha AntiAliasing for the material.
- - **ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE** = **1** --- Enables AlphaToCoverage. Alpha values in the material are passed to the AntiAliasing sample mask.
- - **ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE_AND_TO_ONE** = **2** --- Enables AlphaToCoverage and forces all non-zero alpha values to ``1``. Alpha values in the material are passed to the AntiAliasing sample mask.
- ----
- .. _enum_BaseMaterial3D_DepthDrawMode:
- .. _class_BaseMaterial3D_constant_DEPTH_DRAW_OPAQUE_ONLY:
- .. _class_BaseMaterial3D_constant_DEPTH_DRAW_ALWAYS:
- .. _class_BaseMaterial3D_constant_DEPTH_DRAW_DISABLED:
- enum **DepthDrawMode**:
- - **DEPTH_DRAW_OPAQUE_ONLY** = **0** --- Default depth draw mode. Depth is drawn only for opaque objects.
- - **DEPTH_DRAW_ALWAYS** = **1** --- Depth draw is calculated for both opaque and transparent objects.
- - **DEPTH_DRAW_DISABLED** = **2** --- No depth draw.
- ----
- .. _enum_BaseMaterial3D_CullMode:
- .. _class_BaseMaterial3D_constant_CULL_BACK:
- .. _class_BaseMaterial3D_constant_CULL_FRONT:
- .. _class_BaseMaterial3D_constant_CULL_DISABLED:
- enum **CullMode**:
- - **CULL_BACK** = **0** --- Default cull mode. The back of the object is culled when not visible.
- - **CULL_FRONT** = **1** --- The front of the object is culled when not visible.
- - **CULL_DISABLED** = **2** --- No culling is performed.
- ----
- .. _enum_BaseMaterial3D_Flags:
- .. _class_BaseMaterial3D_constant_FLAG_DISABLE_DEPTH_TEST:
- .. _class_BaseMaterial3D_constant_FLAG_ALBEDO_FROM_VERTEX_COLOR:
- .. _class_BaseMaterial3D_constant_FLAG_SRGB_VERTEX_COLOR:
- .. _class_BaseMaterial3D_constant_FLAG_USE_POINT_SIZE:
- .. _class_BaseMaterial3D_constant_FLAG_FIXED_SIZE:
- .. _class_BaseMaterial3D_constant_FLAG_BILLBOARD_KEEP_SCALE:
- .. _class_BaseMaterial3D_constant_FLAG_UV1_USE_TRIPLANAR:
- .. _class_BaseMaterial3D_constant_FLAG_UV2_USE_TRIPLANAR:
- .. _class_BaseMaterial3D_constant_FLAG_UV1_USE_WORLD_TRIPLANAR:
- .. _class_BaseMaterial3D_constant_FLAG_UV2_USE_WORLD_TRIPLANAR:
- .. _class_BaseMaterial3D_constant_FLAG_AO_ON_UV2:
- .. _class_BaseMaterial3D_constant_FLAG_EMISSION_ON_UV2:
- .. _class_BaseMaterial3D_constant_FLAG_ALBEDO_TEXTURE_FORCE_SRGB:
- .. _class_BaseMaterial3D_constant_FLAG_DONT_RECEIVE_SHADOWS:
- .. _class_BaseMaterial3D_constant_FLAG_DISABLE_AMBIENT_LIGHT:
- .. _class_BaseMaterial3D_constant_FLAG_USE_SHADOW_TO_OPACITY:
- .. _class_BaseMaterial3D_constant_FLAG_USE_TEXTURE_REPEAT:
- .. _class_BaseMaterial3D_constant_FLAG_INVERT_HEIGHTMAP:
- .. _class_BaseMaterial3D_constant_FLAG_SUBSURFACE_MODE_SKIN:
- .. _class_BaseMaterial3D_constant_FLAG_PARTICLE_TRAILS_MODE:
- .. _class_BaseMaterial3D_constant_FLAG_MAX:
- enum **Flags**:
- - **FLAG_DISABLE_DEPTH_TEST** = **0** --- Disables the depth test, so this object is drawn on top of all others. However, objects drawn after it in the draw order may cover it.
- - **FLAG_ALBEDO_FROM_VERTEX_COLOR** = **1** --- Set ``ALBEDO`` to the per-vertex color specified in the mesh.
- - **FLAG_SRGB_VERTEX_COLOR** = **2** --- Vertex color is in sRGB space and needs to be converted to linear. Only applies in the Vulkan renderer.
- - **FLAG_USE_POINT_SIZE** = **3** --- Uses point size to alter the size of primitive points. Also changes the albedo texture lookup to use ``POINT_COORD`` instead of ``UV``.
- - **FLAG_FIXED_SIZE** = **4** --- Object is scaled by depth so that it always appears the same size on screen.
- - **FLAG_BILLBOARD_KEEP_SCALE** = **5** --- Shader will keep the scale set for the mesh. Otherwise the scale is lost when billboarding. Only applies when :ref:`billboard_mode<class_BaseMaterial3D_property_billboard_mode>` is :ref:`BILLBOARD_ENABLED<class_BaseMaterial3D_constant_BILLBOARD_ENABLED>`.
- - **FLAG_UV1_USE_TRIPLANAR** = **6** --- Use triplanar texture lookup for all texture lookups that would normally use ``UV``.
- - **FLAG_UV2_USE_TRIPLANAR** = **7** --- Use triplanar texture lookup for all texture lookups that would normally use ``UV2``.
- - **FLAG_UV1_USE_WORLD_TRIPLANAR** = **8** --- Use triplanar texture lookup for all texture lookups that would normally use ``UV``.
- - **FLAG_UV2_USE_WORLD_TRIPLANAR** = **9** --- Use triplanar texture lookup for all texture lookups that would normally use ``UV2``.
- - **FLAG_AO_ON_UV2** = **10** --- Use ``UV2`` coordinates to look up from the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>`.
- - **FLAG_EMISSION_ON_UV2** = **11** --- Use ``UV2`` coordinates to look up from the :ref:`emission_texture<class_BaseMaterial3D_property_emission_texture>`.
- - **FLAG_ALBEDO_TEXTURE_FORCE_SRGB** = **12** --- Forces the shader to convert albedo from sRGB space to linear space.
- - **FLAG_DONT_RECEIVE_SHADOWS** = **13** --- Disables receiving shadows from other objects.
- - **FLAG_DISABLE_AMBIENT_LIGHT** = **14** --- Disables receiving ambient light.
- - **FLAG_USE_SHADOW_TO_OPACITY** = **15** --- Enables the shadow to opacity feature.
- - **FLAG_USE_TEXTURE_REPEAT** = **16** --- Enables the texture to repeat when UV coordinates are outside the 0-1 range. If using one of the linear filtering modes, this can result in artifacts at the edges of a texture when the sampler filters across the edges of the texture.
- - **FLAG_INVERT_HEIGHTMAP** = **17** --- Invert values read from a depth texture to convert them to height values (heightmap).
- - **FLAG_SUBSURFACE_MODE_SKIN** = **18** --- Enables the skin mode for subsurface scattering which is used to improve the look of subsurface scattering when used for human skin.
- - **FLAG_PARTICLE_TRAILS_MODE** = **19**
- - **FLAG_MAX** = **20** --- Represents the size of the :ref:`Flags<enum_BaseMaterial3D_Flags>` enum.
- ----
- .. _enum_BaseMaterial3D_DiffuseMode:
- .. _class_BaseMaterial3D_constant_DIFFUSE_BURLEY:
- .. _class_BaseMaterial3D_constant_DIFFUSE_LAMBERT:
- .. _class_BaseMaterial3D_constant_DIFFUSE_LAMBERT_WRAP:
- .. _class_BaseMaterial3D_constant_DIFFUSE_TOON:
- enum **DiffuseMode**:
- - **DIFFUSE_BURLEY** = **0** --- Default diffuse scattering algorithm.
- - **DIFFUSE_LAMBERT** = **1** --- Diffuse scattering ignores roughness.
- - **DIFFUSE_LAMBERT_WRAP** = **2** --- Extends Lambert to cover more than 90 degrees when roughness increases.
- - **DIFFUSE_TOON** = **3** --- Uses a hard cut for lighting, with smoothing affected by roughness.
- ----
- .. _enum_BaseMaterial3D_SpecularMode:
- .. _class_BaseMaterial3D_constant_SPECULAR_SCHLICK_GGX:
- .. _class_BaseMaterial3D_constant_SPECULAR_BLINN:
- .. _class_BaseMaterial3D_constant_SPECULAR_PHONG:
- .. _class_BaseMaterial3D_constant_SPECULAR_TOON:
- .. _class_BaseMaterial3D_constant_SPECULAR_DISABLED:
- enum **SpecularMode**:
- - **SPECULAR_SCHLICK_GGX** = **0** --- Default specular blob.
- - **SPECULAR_BLINN** = **1** --- Older specular algorithm, included for compatibility.
- - **SPECULAR_PHONG** = **2** --- Older specular algorithm, included for compatibility.
- - **SPECULAR_TOON** = **3** --- Toon blob which changes size based on roughness.
- - **SPECULAR_DISABLED** = **4** --- No specular blob.
- ----
- .. _enum_BaseMaterial3D_BillboardMode:
- .. _class_BaseMaterial3D_constant_BILLBOARD_DISABLED:
- .. _class_BaseMaterial3D_constant_BILLBOARD_ENABLED:
- .. _class_BaseMaterial3D_constant_BILLBOARD_FIXED_Y:
- .. _class_BaseMaterial3D_constant_BILLBOARD_PARTICLES:
- enum **BillboardMode**:
- - **BILLBOARD_DISABLED** = **0** --- Billboard mode is disabled.
- - **BILLBOARD_ENABLED** = **1** --- The object's Z axis will always face the camera.
- - **BILLBOARD_FIXED_Y** = **2** --- The object's X axis will always face the camera.
- - **BILLBOARD_PARTICLES** = **3** --- Used for particle systems when assigned to :ref:`GPUParticles3D<class_GPUParticles3D>` and :ref:`CPUParticles3D<class_CPUParticles3D>` nodes. Enables ``particles_anim_*`` properties.
- The :ref:`ParticlesMaterial.anim_speed_min<class_ParticlesMaterial_property_anim_speed_min>` or :ref:`CPUParticles3D.anim_speed_min<class_CPUParticles3D_property_anim_speed_min>` should also be set to a value bigger than zero for the animation to play.
- ----
- .. _enum_BaseMaterial3D_TextureChannel:
- .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_RED:
- .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_GREEN:
- .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_BLUE:
- .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_ALPHA:
- .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_GRAYSCALE:
- enum **TextureChannel**:
- - **TEXTURE_CHANNEL_RED** = **0** --- Used to read from the red channel of a texture.
- - **TEXTURE_CHANNEL_GREEN** = **1** --- Used to read from the green channel of a texture.
- - **TEXTURE_CHANNEL_BLUE** = **2** --- Used to read from the blue channel of a texture.
- - **TEXTURE_CHANNEL_ALPHA** = **3** --- Used to read from the alpha channel of a texture.
- - **TEXTURE_CHANNEL_GRAYSCALE** = **4** --- Currently unused.
- ----
- .. _enum_BaseMaterial3D_EmissionOperator:
- .. _class_BaseMaterial3D_constant_EMISSION_OP_ADD:
- .. _class_BaseMaterial3D_constant_EMISSION_OP_MULTIPLY:
- enum **EmissionOperator**:
- - **EMISSION_OP_ADD** = **0** --- Adds the emission color to the color from the emission texture.
- - **EMISSION_OP_MULTIPLY** = **1** --- Multiplies the emission color by the color from the emission texture.
- ----
- .. _enum_BaseMaterial3D_DistanceFadeMode:
- .. _class_BaseMaterial3D_constant_DISTANCE_FADE_DISABLED:
- .. _class_BaseMaterial3D_constant_DISTANCE_FADE_PIXEL_ALPHA:
- .. _class_BaseMaterial3D_constant_DISTANCE_FADE_PIXEL_DITHER:
- .. _class_BaseMaterial3D_constant_DISTANCE_FADE_OBJECT_DITHER:
- enum **DistanceFadeMode**:
- - **DISTANCE_FADE_DISABLED** = **0** --- Do not use distance fade.
- - **DISTANCE_FADE_PIXEL_ALPHA** = **1** --- Smoothly fades the object out based on each pixel's distance from the camera using the alpha channel.
- - **DISTANCE_FADE_PIXEL_DITHER** = **2** --- Smoothly fades the object out based on each pixel's distance from the camera using a dither approach. Dithering discards pixels based on a set pattern to smoothly fade without enabling transparency. On certain hardware this can be faster than :ref:`DISTANCE_FADE_PIXEL_ALPHA<class_BaseMaterial3D_constant_DISTANCE_FADE_PIXEL_ALPHA>`.
- - **DISTANCE_FADE_OBJECT_DITHER** = **3** --- Smoothly fades the object out based on the object's distance from the camera using a dither approach. Dithering discards pixels based on a set pattern to smoothly fade without enabling transparency. On certain hardware this can be faster than :ref:`DISTANCE_FADE_PIXEL_ALPHA<class_BaseMaterial3D_constant_DISTANCE_FADE_PIXEL_ALPHA>`.
- Property Descriptions
- ---------------------
- .. _class_BaseMaterial3D_property_albedo_color:
- - :ref:`Color<class_Color>` **albedo_color**
- +-----------+-----------------------+
- | *Default* | ``Color(1, 1, 1, 1)`` |
- +-----------+-----------------------+
- | *Setter* | set_albedo(value) |
- +-----------+-----------------------+
- | *Getter* | get_albedo() |
- +-----------+-----------------------+
- The material's base color.
- ----
- .. _class_BaseMaterial3D_property_albedo_tex_force_srgb:
- - :ref:`bool<class_bool>` **albedo_tex_force_srgb**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- Forces a conversion of the :ref:`albedo_texture<class_BaseMaterial3D_property_albedo_texture>` from sRGB space to linear space.
- ----
- .. _class_BaseMaterial3D_property_albedo_texture:
- - :ref:`Texture2D<class_Texture2D>` **albedo_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture to multiply by :ref:`albedo_color<class_BaseMaterial3D_property_albedo_color>`. Used for basic texturing of objects.
- ----
- .. _class_BaseMaterial3D_property_alpha_antialiasing_edge:
- - :ref:`float<class_float>` **alpha_antialiasing_edge**
- +----------+------------------------------------+
- | *Setter* | set_alpha_antialiasing_edge(value) |
- +----------+------------------------------------+
- | *Getter* | get_alpha_antialiasing_edge() |
- +----------+------------------------------------+
- Threshold at which antialiasing will be applied on the alpha channel.
- ----
- .. _class_BaseMaterial3D_property_alpha_antialiasing_mode:
- - :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>` **alpha_antialiasing_mode**
- +----------+-------------------------------+
- | *Setter* | set_alpha_antialiasing(value) |
- +----------+-------------------------------+
- | *Getter* | get_alpha_antialiasing() |
- +----------+-------------------------------+
- The type of alpha antialiasing to apply. See :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>`.
- ----
- .. _class_BaseMaterial3D_property_alpha_hash_scale:
- - :ref:`float<class_float>` **alpha_hash_scale**
- +----------+-----------------------------+
- | *Setter* | set_alpha_hash_scale(value) |
- +----------+-----------------------------+
- | *Getter* | get_alpha_hash_scale() |
- +----------+-----------------------------+
- The hashing scale for Alpha Hash. Recommended values between ``0`` and ``2``.
- ----
- .. _class_BaseMaterial3D_property_alpha_scissor_threshold:
- - :ref:`float<class_float>` **alpha_scissor_threshold**
- +----------+------------------------------------+
- | *Setter* | set_alpha_scissor_threshold(value) |
- +----------+------------------------------------+
- | *Getter* | get_alpha_scissor_threshold() |
- +----------+------------------------------------+
- Threshold at which the alpha scissor will discard values.
- ----
- .. _class_BaseMaterial3D_property_anisotropy:
- - :ref:`float<class_float>` **anisotropy**
- +-----------+-----------------------+
- | *Default* | ``0.0`` |
- +-----------+-----------------------+
- | *Setter* | set_anisotropy(value) |
- +-----------+-----------------------+
- | *Getter* | get_anisotropy() |
- +-----------+-----------------------+
- The strength of the anisotropy effect.
- ----
- .. _class_BaseMaterial3D_property_anisotropy_enabled:
- - :ref:`bool<class_bool>` **anisotropy_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, anisotropy is enabled. Changes the shape of the specular blob and aligns it to tangent space. Mesh tangents are needed for this to work. If the mesh does not contain tangents the anisotropy effect will appear broken.
- ----
- .. _class_BaseMaterial3D_property_anisotropy_flowmap:
- - :ref:`Texture2D<class_Texture2D>` **anisotropy_flowmap**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture that offsets the tangent map for anisotropy calculations.
- ----
- .. _class_BaseMaterial3D_property_ao_enabled:
- - :ref:`bool<class_bool>` **ao_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, ambient occlusion is enabled. Ambient occlusion darkens areas based on the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>`.
- ----
- .. _class_BaseMaterial3D_property_ao_light_affect:
- - :ref:`float<class_float>` **ao_light_affect**
- +-----------+----------------------------+
- | *Default* | ``0.0`` |
- +-----------+----------------------------+
- | *Setter* | set_ao_light_affect(value) |
- +-----------+----------------------------+
- | *Getter* | get_ao_light_affect() |
- +-----------+----------------------------+
- Amount that ambient occlusion affects lighting from lights. If ``0``, ambient occlusion only affects ambient light. If ``1``, ambient occlusion affects lights just as much as it affects ambient light. This can be used to impact the strength of the ambient occlusion effect, but typically looks unrealistic.
- ----
- .. _class_BaseMaterial3D_property_ao_on_uv2:
- - :ref:`bool<class_bool>` **ao_on_uv2**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, use ``UV2`` coordinates to look up from the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>`.
- ----
- .. _class_BaseMaterial3D_property_ao_texture:
- - :ref:`Texture2D<class_Texture2D>` **ao_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture that defines the amount of ambient occlusion for a given point on the object.
- ----
- .. _class_BaseMaterial3D_property_ao_texture_channel:
- - :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **ao_texture_channel**
- +-----------+-------------------------------+
- | *Default* | ``0`` |
- +-----------+-------------------------------+
- | *Setter* | set_ao_texture_channel(value) |
- +-----------+-------------------------------+
- | *Getter* | get_ao_texture_channel() |
- +-----------+-------------------------------+
- Specifies the channel of the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>` in which the ambient occlusion information is stored. This is useful when you store the information for multiple effects in a single texture. For example if you stored metallic in the red channel, roughness in the blue, and ambient occlusion in the green you could reduce the number of textures you use.
- ----
- .. _class_BaseMaterial3D_property_backlight:
- - :ref:`Color<class_Color>` **backlight**
- +-----------+-----------------------+
- | *Default* | ``Color(0, 0, 0, 1)`` |
- +-----------+-----------------------+
- | *Setter* | set_backlight(value) |
- +-----------+-----------------------+
- | *Getter* | get_backlight() |
- +-----------+-----------------------+
- The color used by the backlight effect. Represents the light passing through an object.
- ----
- .. _class_BaseMaterial3D_property_backlight_enabled:
- - :ref:`bool<class_bool>` **backlight_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, the backlight effect is enabled.
- ----
- .. _class_BaseMaterial3D_property_backlight_texture:
- - :ref:`Texture2D<class_Texture2D>` **backlight_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture used to control the backlight effect per-pixel. Added to :ref:`backlight<class_BaseMaterial3D_property_backlight>`.
- ----
- .. _class_BaseMaterial3D_property_billboard_keep_scale:
- - :ref:`bool<class_bool>` **billboard_keep_scale**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, the shader will keep the scale set for the mesh. Otherwise, the scale is lost when billboarding. Only applies when :ref:`billboard_mode<class_BaseMaterial3D_property_billboard_mode>` is :ref:`BILLBOARD_ENABLED<class_BaseMaterial3D_constant_BILLBOARD_ENABLED>`.
- ----
- .. _class_BaseMaterial3D_property_billboard_mode:
- - :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` **billboard_mode**
- +-----------+---------------------------+
- | *Default* | ``0`` |
- +-----------+---------------------------+
- | *Setter* | set_billboard_mode(value) |
- +-----------+---------------------------+
- | *Getter* | get_billboard_mode() |
- +-----------+---------------------------+
- Controls how the object faces the camera. See :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>`.
- **Note:** Billboard mode is not suitable for VR because the left-right vector of the camera is not horizontal when the screen is attached to your head instead of on the table. See `GitHub issue #41567 <https://github.com/godotengine/godot/issues/41567>`__ for details.
- ----
- .. _class_BaseMaterial3D_property_blend_mode:
- - :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **blend_mode**
- +-----------+-----------------------+
- | *Default* | ``0`` |
- +-----------+-----------------------+
- | *Setter* | set_blend_mode(value) |
- +-----------+-----------------------+
- | *Getter* | get_blend_mode() |
- +-----------+-----------------------+
- The material's blend mode.
- **Note:** Values other than ``Mix`` force the object into the transparent pipeline. See :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>`.
- ----
- .. _class_BaseMaterial3D_property_clearcoat:
- - :ref:`float<class_float>` **clearcoat**
- +-----------+----------------------+
- | *Default* | ``1.0`` |
- +-----------+----------------------+
- | *Setter* | set_clearcoat(value) |
- +-----------+----------------------+
- | *Getter* | get_clearcoat() |
- +-----------+----------------------+
- Sets the strength of the clearcoat effect. Setting to ``0`` looks the same as disabling the clearcoat effect.
- ----
- .. _class_BaseMaterial3D_property_clearcoat_enabled:
- - :ref:`bool<class_bool>` **clearcoat_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, clearcoat rendering is enabled. Adds a secondary transparent pass to the lighting calculation resulting in an added specular blob. This makes materials appear as if they have a clear layer on them that can be either glossy or rough.
- **Note:** Clearcoat rendering is not visible if the material's :ref:`shading_mode<class_BaseMaterial3D_property_shading_mode>` is :ref:`SHADING_MODE_UNSHADED<class_BaseMaterial3D_constant_SHADING_MODE_UNSHADED>`.
- ----
- .. _class_BaseMaterial3D_property_clearcoat_gloss:
- - :ref:`float<class_float>` **clearcoat_gloss**
- +-----------+----------------------------+
- | *Default* | ``0.5`` |
- +-----------+----------------------------+
- | *Setter* | set_clearcoat_gloss(value) |
- +-----------+----------------------------+
- | *Getter* | get_clearcoat_gloss() |
- +-----------+----------------------------+
- Sets the roughness of the clearcoat pass. A higher value results in a smoother clearcoat while a lower value results in a rougher clearcoat.
- ----
- .. _class_BaseMaterial3D_property_clearcoat_texture:
- - :ref:`Texture2D<class_Texture2D>` **clearcoat_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture that defines the strength of the clearcoat effect and the glossiness of the clearcoat. Strength is specified in the red channel while glossiness is specified in the green channel.
- ----
- .. _class_BaseMaterial3D_property_cull_mode:
- - :ref:`CullMode<enum_BaseMaterial3D_CullMode>` **cull_mode**
- +-----------+----------------------+
- | *Default* | ``0`` |
- +-----------+----------------------+
- | *Setter* | set_cull_mode(value) |
- +-----------+----------------------+
- | *Getter* | get_cull_mode() |
- +-----------+----------------------+
- Which side of the object is not drawn when backfaces are rendered. See :ref:`CullMode<enum_BaseMaterial3D_CullMode>`.
- ----
- .. _class_BaseMaterial3D_property_depth_draw_mode:
- - :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>` **depth_draw_mode**
- +-----------+----------------------------+
- | *Default* | ``0`` |
- +-----------+----------------------------+
- | *Setter* | set_depth_draw_mode(value) |
- +-----------+----------------------------+
- | *Getter* | get_depth_draw_mode() |
- +-----------+----------------------------+
- Determines when depth rendering takes place. See :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>`. See also :ref:`transparency<class_BaseMaterial3D_property_transparency>`.
- ----
- .. _class_BaseMaterial3D_property_detail_albedo:
- - :ref:`Texture2D<class_Texture2D>` **detail_albedo**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture that specifies the color of the detail overlay.
- ----
- .. _class_BaseMaterial3D_property_detail_blend_mode:
- - :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **detail_blend_mode**
- +-----------+------------------------------+
- | *Default* | ``0`` |
- +-----------+------------------------------+
- | *Setter* | set_detail_blend_mode(value) |
- +-----------+------------------------------+
- | *Getter* | get_detail_blend_mode() |
- +-----------+------------------------------+
- Specifies how the :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>` should blend with the current ``ALBEDO``. See :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` for options.
- ----
- .. _class_BaseMaterial3D_property_detail_enabled:
- - :ref:`bool<class_bool>` **detail_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, enables the detail overlay. Detail is a second texture that gets mixed over the surface of the object based on :ref:`detail_mask<class_BaseMaterial3D_property_detail_mask>`. This can be used to add variation to objects, or to blend between two different albedo/normal textures.
- ----
- .. _class_BaseMaterial3D_property_detail_mask:
- - :ref:`Texture2D<class_Texture2D>` **detail_mask**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture used to specify how the detail textures get blended with the base textures.
- ----
- .. _class_BaseMaterial3D_property_detail_normal:
- - :ref:`Texture2D<class_Texture2D>` **detail_normal**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture that specifies the per-pixel normal of the detail overlay.
- **Note:** Godot expects the normal map to use X+, Y-, and Z+ coordinates. See `this page <http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinates>`__ for a comparison of normal map coordinates expected by popular engines.
- ----
- .. _class_BaseMaterial3D_property_detail_uv_layer:
- - :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` **detail_uv_layer**
- +-----------+----------------------+
- | *Default* | ``0`` |
- +-----------+----------------------+
- | *Setter* | set_detail_uv(value) |
- +-----------+----------------------+
- | *Getter* | get_detail_uv() |
- +-----------+----------------------+
- Specifies whether to use ``UV`` or ``UV2`` for the detail layer. See :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` for options.
- ----
- .. _class_BaseMaterial3D_property_diffuse_mode:
- - :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` **diffuse_mode**
- +-----------+-------------------------+
- | *Default* | ``0`` |
- +-----------+-------------------------+
- | *Setter* | set_diffuse_mode(value) |
- +-----------+-------------------------+
- | *Getter* | get_diffuse_mode() |
- +-----------+-------------------------+
- The algorithm used for diffuse light scattering. See :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>`.
- ----
- .. _class_BaseMaterial3D_property_disable_ambient_light:
- - :ref:`bool<class_bool>` **disable_ambient_light**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, the object receives no ambient light.
- ----
- .. _class_BaseMaterial3D_property_disable_receive_shadows:
- - :ref:`bool<class_bool>` **disable_receive_shadows**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, the object receives no shadow that would otherwise be cast onto it.
- ----
- .. _class_BaseMaterial3D_property_distance_fade_max_distance:
- - :ref:`float<class_float>` **distance_fade_max_distance**
- +-----------+---------------------------------------+
- | *Default* | ``10.0`` |
- +-----------+---------------------------------------+
- | *Setter* | set_distance_fade_max_distance(value) |
- +-----------+---------------------------------------+
- | *Getter* | get_distance_fade_max_distance() |
- +-----------+---------------------------------------+
- Distance at which the object appears fully opaque.
- **Note:** If ``distance_fade_max_distance`` is less than ``distance_fade_min_distance``, the behavior will be reversed. The object will start to fade away at ``distance_fade_max_distance`` and will fully disappear once it reaches ``distance_fade_min_distance``.
- ----
- .. _class_BaseMaterial3D_property_distance_fade_min_distance:
- - :ref:`float<class_float>` **distance_fade_min_distance**
- +-----------+---------------------------------------+
- | *Default* | ``0.0`` |
- +-----------+---------------------------------------+
- | *Setter* | set_distance_fade_min_distance(value) |
- +-----------+---------------------------------------+
- | *Getter* | get_distance_fade_min_distance() |
- +-----------+---------------------------------------+
- Distance at which the object starts to become visible. If the object is less than this distance away, it will be invisible.
- **Note:** If ``distance_fade_min_distance`` is greater than ``distance_fade_max_distance``, the behavior will be reversed. The object will start to fade away at ``distance_fade_max_distance`` and will fully disappear once it reaches ``distance_fade_min_distance``.
- ----
- .. _class_BaseMaterial3D_property_distance_fade_mode:
- - :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` **distance_fade_mode**
- +-----------+--------------------------+
- | *Default* | ``0`` |
- +-----------+--------------------------+
- | *Setter* | set_distance_fade(value) |
- +-----------+--------------------------+
- | *Getter* | get_distance_fade() |
- +-----------+--------------------------+
- Specifies which type of fade to use. Can be any of the :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>`\ s.
- ----
- .. _class_BaseMaterial3D_property_emission:
- - :ref:`Color<class_Color>` **emission**
- +-----------+-----------------------+
- | *Default* | ``Color(0, 0, 0, 1)`` |
- +-----------+-----------------------+
- | *Setter* | set_emission(value) |
- +-----------+-----------------------+
- | *Getter* | get_emission() |
- +-----------+-----------------------+
- The emitted light's color. See :ref:`emission_enabled<class_BaseMaterial3D_property_emission_enabled>`.
- ----
- .. _class_BaseMaterial3D_property_emission_enabled:
- - :ref:`bool<class_bool>` **emission_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, the body emits light. Emitting light makes the object appear brighter. The object can also cast light on other objects if a :ref:`VoxelGI<class_VoxelGI>` is used and this object is used in baked lighting.
- ----
- .. _class_BaseMaterial3D_property_emission_energy:
- - :ref:`float<class_float>` **emission_energy**
- +-----------+----------------------------+
- | *Default* | ``1.0`` |
- +-----------+----------------------------+
- | *Setter* | set_emission_energy(value) |
- +-----------+----------------------------+
- | *Getter* | get_emission_energy() |
- +-----------+----------------------------+
- The emitted light's strength. See :ref:`emission_enabled<class_BaseMaterial3D_property_emission_enabled>`.
- ----
- .. _class_BaseMaterial3D_property_emission_on_uv2:
- - :ref:`bool<class_bool>` **emission_on_uv2**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- Use ``UV2`` to read from the :ref:`emission_texture<class_BaseMaterial3D_property_emission_texture>`.
- ----
- .. _class_BaseMaterial3D_property_emission_operator:
- - :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>` **emission_operator**
- +-----------+------------------------------+
- | *Default* | ``0`` |
- +-----------+------------------------------+
- | *Setter* | set_emission_operator(value) |
- +-----------+------------------------------+
- | *Getter* | get_emission_operator() |
- +-----------+------------------------------+
- Sets how :ref:`emission<class_BaseMaterial3D_property_emission>` interacts with :ref:`emission_texture<class_BaseMaterial3D_property_emission_texture>`. Can either add or multiply. See :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>` for options.
- ----
- .. _class_BaseMaterial3D_property_emission_texture:
- - :ref:`Texture2D<class_Texture2D>` **emission_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture that specifies how much surface emits light at a given point.
- ----
- .. _class_BaseMaterial3D_property_fixed_size:
- - :ref:`bool<class_bool>` **fixed_size**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, the object is rendered at the same size regardless of distance.
- ----
- .. _class_BaseMaterial3D_property_grow:
- - :ref:`bool<class_bool>` **grow**
- +-----------+-------------------------+
- | *Default* | ``false`` |
- +-----------+-------------------------+
- | *Setter* | set_grow_enabled(value) |
- +-----------+-------------------------+
- | *Getter* | is_grow_enabled() |
- +-----------+-------------------------+
- If ``true``, enables the vertex grow setting. See :ref:`grow_amount<class_BaseMaterial3D_property_grow_amount>`.
- ----
- .. _class_BaseMaterial3D_property_grow_amount:
- - :ref:`float<class_float>` **grow_amount**
- +-----------+-----------------+
- | *Default* | ``0.0`` |
- +-----------+-----------------+
- | *Setter* | set_grow(value) |
- +-----------+-----------------+
- | *Getter* | get_grow() |
- +-----------+-----------------+
- Grows object vertices in the direction of their normals.
- ----
- .. _class_BaseMaterial3D_property_heightmap_deep_parallax:
- - :ref:`bool<class_bool>` **heightmap_deep_parallax**
- +-----------+--------------------------------------+
- | *Default* | ``false`` |
- +-----------+--------------------------------------+
- | *Setter* | set_heightmap_deep_parallax(value) |
- +-----------+--------------------------------------+
- | *Getter* | is_heightmap_deep_parallax_enabled() |
- +-----------+--------------------------------------+
- ----
- .. _class_BaseMaterial3D_property_heightmap_enabled:
- - :ref:`bool<class_bool>` **heightmap_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, height mapping is enabled (also called "parallax mapping" or "depth mapping"). See also :ref:`normal_enabled<class_BaseMaterial3D_property_normal_enabled>`.
- **Note:** Height mapping is not supported if triplanar mapping is used on the same material. The value of :ref:`heightmap_enabled<class_BaseMaterial3D_property_heightmap_enabled>` will be ignored if :ref:`uv1_triplanar<class_BaseMaterial3D_property_uv1_triplanar>` is enabled.
- ----
- .. _class_BaseMaterial3D_property_heightmap_flip_binormal:
- - :ref:`bool<class_bool>` **heightmap_flip_binormal**
- +-----------+--------------------------------------------------+
- | *Default* | ``false`` |
- +-----------+--------------------------------------------------+
- | *Setter* | set_heightmap_deep_parallax_flip_binormal(value) |
- +-----------+--------------------------------------------------+
- | *Getter* | get_heightmap_deep_parallax_flip_binormal() |
- +-----------+--------------------------------------------------+
- ----
- .. _class_BaseMaterial3D_property_heightmap_flip_tangent:
- - :ref:`bool<class_bool>` **heightmap_flip_tangent**
- +-----------+-------------------------------------------------+
- | *Default* | ``false`` |
- +-----------+-------------------------------------------------+
- | *Setter* | set_heightmap_deep_parallax_flip_tangent(value) |
- +-----------+-------------------------------------------------+
- | *Getter* | get_heightmap_deep_parallax_flip_tangent() |
- +-----------+-------------------------------------------------+
- ----
- .. _class_BaseMaterial3D_property_heightmap_flip_texture:
- - :ref:`bool<class_bool>` **heightmap_flip_texture**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- ----
- .. _class_BaseMaterial3D_property_heightmap_max_layers:
- - :ref:`int<class_int>` **heightmap_max_layers**
- +----------+-----------------------------------------------+
- | *Setter* | set_heightmap_deep_parallax_max_layers(value) |
- +----------+-----------------------------------------------+
- | *Getter* | get_heightmap_deep_parallax_max_layers() |
- +----------+-----------------------------------------------+
- ----
- .. _class_BaseMaterial3D_property_heightmap_min_layers:
- - :ref:`int<class_int>` **heightmap_min_layers**
- +----------+-----------------------------------------------+
- | *Setter* | set_heightmap_deep_parallax_min_layers(value) |
- +----------+-----------------------------------------------+
- | *Getter* | get_heightmap_deep_parallax_min_layers() |
- +----------+-----------------------------------------------+
- ----
- .. _class_BaseMaterial3D_property_heightmap_scale:
- - :ref:`float<class_float>` **heightmap_scale**
- +-----------+----------------------------+
- | *Default* | ``0.05`` |
- +-----------+----------------------------+
- | *Setter* | set_heightmap_scale(value) |
- +-----------+----------------------------+
- | *Getter* | get_heightmap_scale() |
- +-----------+----------------------------+
- ----
- .. _class_BaseMaterial3D_property_heightmap_texture:
- - :ref:`Texture2D<class_Texture2D>` **heightmap_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- ----
- .. _class_BaseMaterial3D_property_metallic:
- - :ref:`float<class_float>` **metallic**
- +-----------+---------------------+
- | *Default* | ``0.0`` |
- +-----------+---------------------+
- | *Setter* | set_metallic(value) |
- +-----------+---------------------+
- | *Getter* | get_metallic() |
- +-----------+---------------------+
- A high value makes the material appear more like a metal. Non-metals use their albedo as the diffuse color and add diffuse to the specular reflection. With non-metals, the reflection appears on top of the albedo color. Metals use their albedo as a multiplier to the specular reflection and set the diffuse color to black resulting in a tinted reflection. Materials work better when fully metal or fully non-metal, values between ``0`` and ``1`` should only be used for blending between metal and non-metal sections. To alter the amount of reflection use :ref:`roughness<class_BaseMaterial3D_property_roughness>`.
- ----
- .. _class_BaseMaterial3D_property_metallic_specular:
- - :ref:`float<class_float>` **metallic_specular**
- +-----------+---------------------+
- | *Default* | ``0.5`` |
- +-----------+---------------------+
- | *Setter* | set_specular(value) |
- +-----------+---------------------+
- | *Getter* | get_specular() |
- +-----------+---------------------+
- Sets the size of the specular lobe. The specular lobe is the bright spot that is reflected from light sources.
- **Note:** Unlike :ref:`metallic<class_BaseMaterial3D_property_metallic>`, this is not energy-conserving, so it should be left at ``0.5`` in most cases. See also :ref:`roughness<class_BaseMaterial3D_property_roughness>`.
- ----
- .. _class_BaseMaterial3D_property_metallic_texture:
- - :ref:`Texture2D<class_Texture2D>` **metallic_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture used to specify metallic for an object. This is multiplied by :ref:`metallic<class_BaseMaterial3D_property_metallic>`.
- ----
- .. _class_BaseMaterial3D_property_metallic_texture_channel:
- - :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **metallic_texture_channel**
- +-----------+-------------------------------------+
- | *Default* | ``0`` |
- +-----------+-------------------------------------+
- | *Setter* | set_metallic_texture_channel(value) |
- +-----------+-------------------------------------+
- | *Getter* | get_metallic_texture_channel() |
- +-----------+-------------------------------------+
- Specifies the channel of the :ref:`metallic_texture<class_BaseMaterial3D_property_metallic_texture>` in which the metallic information is stored. This is useful when you store the information for multiple effects in a single texture. For example if you stored metallic in the red channel, roughness in the blue, and ambient occlusion in the green you could reduce the number of textures you use.
- ----
- .. _class_BaseMaterial3D_property_no_depth_test:
- - :ref:`bool<class_bool>` **no_depth_test**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, depth testing is disabled and the object will be drawn in render order.
- ----
- .. _class_BaseMaterial3D_property_normal_enabled:
- - :ref:`bool<class_bool>` **normal_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, normal mapping is enabled.
- ----
- .. _class_BaseMaterial3D_property_normal_scale:
- - :ref:`float<class_float>` **normal_scale**
- +-----------+-------------------------+
- | *Default* | ``1.0`` |
- +-----------+-------------------------+
- | *Setter* | set_normal_scale(value) |
- +-----------+-------------------------+
- | *Getter* | get_normal_scale() |
- +-----------+-------------------------+
- The strength of the normal map's effect.
- ----
- .. _class_BaseMaterial3D_property_normal_texture:
- - :ref:`Texture2D<class_Texture2D>` **normal_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture used to specify the normal at a given pixel. The ``normal_texture`` only uses the red and green channels; the blue and alpha channels are ignored. The normal read from ``normal_texture`` is oriented around the surface normal provided by the :ref:`Mesh<class_Mesh>`.
- **Note:** The mesh must have both normals and tangents defined in its vertex data. Otherwise, the normal map won't render correctly and will only appear to darken the whole surface. If creating geometry with :ref:`SurfaceTool<class_SurfaceTool>`, you can use :ref:`SurfaceTool.generate_normals<class_SurfaceTool_method_generate_normals>` and :ref:`SurfaceTool.generate_tangents<class_SurfaceTool_method_generate_tangents>` to automatically generate normals and tangents respectively.
- **Note:** Godot expects the normal map to use X+, Y-, and Z+ coordinates. See `this page <http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinates>`__ for a comparison of normal map coordinates expected by popular engines.
- ----
- .. _class_BaseMaterial3D_property_orm_texture:
- - :ref:`Texture2D<class_Texture2D>` **orm_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- ----
- .. _class_BaseMaterial3D_property_particles_anim_h_frames:
- - :ref:`int<class_int>` **particles_anim_h_frames**
- +----------+------------------------------------+
- | *Setter* | set_particles_anim_h_frames(value) |
- +----------+------------------------------------+
- | *Getter* | get_particles_anim_h_frames() |
- +----------+------------------------------------+
- The number of horizontal frames in the particle sprite sheet. Only enabled when using :ref:`BILLBOARD_PARTICLES<class_BaseMaterial3D_constant_BILLBOARD_PARTICLES>`. See :ref:`billboard_mode<class_BaseMaterial3D_property_billboard_mode>`.
- ----
- .. _class_BaseMaterial3D_property_particles_anim_loop:
- - :ref:`bool<class_bool>` **particles_anim_loop**
- +----------+--------------------------------+
- | *Setter* | set_particles_anim_loop(value) |
- +----------+--------------------------------+
- | *Getter* | get_particles_anim_loop() |
- +----------+--------------------------------+
- If ``true``, particle animations are looped. Only enabled when using :ref:`BILLBOARD_PARTICLES<class_BaseMaterial3D_constant_BILLBOARD_PARTICLES>`. See :ref:`billboard_mode<class_BaseMaterial3D_property_billboard_mode>`.
- ----
- .. _class_BaseMaterial3D_property_particles_anim_v_frames:
- - :ref:`int<class_int>` **particles_anim_v_frames**
- +----------+------------------------------------+
- | *Setter* | set_particles_anim_v_frames(value) |
- +----------+------------------------------------+
- | *Getter* | get_particles_anim_v_frames() |
- +----------+------------------------------------+
- The number of vertical frames in the particle sprite sheet. Only enabled when using :ref:`BILLBOARD_PARTICLES<class_BaseMaterial3D_constant_BILLBOARD_PARTICLES>`. See :ref:`billboard_mode<class_BaseMaterial3D_property_billboard_mode>`.
- ----
- .. _class_BaseMaterial3D_property_point_size:
- - :ref:`float<class_float>` **point_size**
- +-----------+-----------------------+
- | *Default* | ``1.0`` |
- +-----------+-----------------------+
- | *Setter* | set_point_size(value) |
- +-----------+-----------------------+
- | *Getter* | get_point_size() |
- +-----------+-----------------------+
- The point size in pixels. See :ref:`use_point_size<class_BaseMaterial3D_property_use_point_size>`.
- ----
- .. _class_BaseMaterial3D_property_proximity_fade_distance:
- - :ref:`float<class_float>` **proximity_fade_distance**
- +-----------+------------------------------------+
- | *Default* | ``1.0`` |
- +-----------+------------------------------------+
- | *Setter* | set_proximity_fade_distance(value) |
- +-----------+------------------------------------+
- | *Getter* | get_proximity_fade_distance() |
- +-----------+------------------------------------+
- Distance over which the fade effect takes place. The larger the distance the longer it takes for an object to fade.
- ----
- .. _class_BaseMaterial3D_property_proximity_fade_enable:
- - :ref:`bool<class_bool>` **proximity_fade_enable**
- +-----------+-----------------------------+
- | *Default* | ``false`` |
- +-----------+-----------------------------+
- | *Setter* | set_proximity_fade(value) |
- +-----------+-----------------------------+
- | *Getter* | is_proximity_fade_enabled() |
- +-----------+-----------------------------+
- If ``true``, the proximity fade effect is enabled. The proximity fade effect fades out each pixel based on its distance to another object.
- ----
- .. _class_BaseMaterial3D_property_refraction_enabled:
- - :ref:`bool<class_bool>` **refraction_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, the refraction effect is enabled. Distorts transparency based on light from behind the object.
- ----
- .. _class_BaseMaterial3D_property_refraction_scale:
- - :ref:`float<class_float>` **refraction_scale**
- +-----------+-----------------------+
- | *Default* | ``0.05`` |
- +-----------+-----------------------+
- | *Setter* | set_refraction(value) |
- +-----------+-----------------------+
- | *Getter* | get_refraction() |
- +-----------+-----------------------+
- The strength of the refraction effect.
- ----
- .. _class_BaseMaterial3D_property_refraction_texture:
- - :ref:`Texture2D<class_Texture2D>` **refraction_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture that controls the strength of the refraction per-pixel. Multiplied by :ref:`refraction_scale<class_BaseMaterial3D_property_refraction_scale>`.
- ----
- .. _class_BaseMaterial3D_property_refraction_texture_channel:
- - :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **refraction_texture_channel**
- +-----------+---------------------------------------+
- | *Default* | ``0`` |
- +-----------+---------------------------------------+
- | *Setter* | set_refraction_texture_channel(value) |
- +-----------+---------------------------------------+
- | *Getter* | get_refraction_texture_channel() |
- +-----------+---------------------------------------+
- Specifies the channel of the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>` in which the ambient occlusion information is stored. This is useful when you store the information for multiple effects in a single texture. For example if you stored metallic in the red channel, roughness in the blue, and ambient occlusion in the green you could reduce the number of textures you use.
- ----
- .. _class_BaseMaterial3D_property_rim:
- - :ref:`float<class_float>` **rim**
- +-----------+----------------+
- | *Default* | ``1.0`` |
- +-----------+----------------+
- | *Setter* | set_rim(value) |
- +-----------+----------------+
- | *Getter* | get_rim() |
- +-----------+----------------+
- Sets the strength of the rim lighting effect.
- ----
- .. _class_BaseMaterial3D_property_rim_enabled:
- - :ref:`bool<class_bool>` **rim_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, rim effect is enabled. Rim lighting increases the brightness at glancing angles on an object.
- **Note:** Rim lighting is not visible if the material's :ref:`shading_mode<class_BaseMaterial3D_property_shading_mode>` is :ref:`SHADING_MODE_UNSHADED<class_BaseMaterial3D_constant_SHADING_MODE_UNSHADED>`.
- ----
- .. _class_BaseMaterial3D_property_rim_texture:
- - :ref:`Texture2D<class_Texture2D>` **rim_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture used to set the strength of the rim lighting effect per-pixel. Multiplied by :ref:`rim<class_BaseMaterial3D_property_rim>`.
- ----
- .. _class_BaseMaterial3D_property_rim_tint:
- - :ref:`float<class_float>` **rim_tint**
- +-----------+---------------------+
- | *Default* | ``0.5`` |
- +-----------+---------------------+
- | *Setter* | set_rim_tint(value) |
- +-----------+---------------------+
- | *Getter* | get_rim_tint() |
- +-----------+---------------------+
- The amount of to blend light and albedo color when rendering rim effect. If ``0`` the light color is used, while ``1`` means albedo color is used. An intermediate value generally works best.
- ----
- .. _class_BaseMaterial3D_property_roughness:
- - :ref:`float<class_float>` **roughness**
- +-----------+----------------------+
- | *Default* | ``1.0`` |
- +-----------+----------------------+
- | *Setter* | set_roughness(value) |
- +-----------+----------------------+
- | *Getter* | get_roughness() |
- +-----------+----------------------+
- Surface reflection. A value of ``0`` represents a perfect mirror while a value of ``1`` completely blurs the reflection. See also :ref:`metallic<class_BaseMaterial3D_property_metallic>`.
- ----
- .. _class_BaseMaterial3D_property_roughness_texture:
- - :ref:`Texture2D<class_Texture2D>` **roughness_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture used to control the roughness per-pixel. Multiplied by :ref:`roughness<class_BaseMaterial3D_property_roughness>`.
- ----
- .. _class_BaseMaterial3D_property_roughness_texture_channel:
- - :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **roughness_texture_channel**
- +-----------+--------------------------------------+
- | *Default* | ``0`` |
- +-----------+--------------------------------------+
- | *Setter* | set_roughness_texture_channel(value) |
- +-----------+--------------------------------------+
- | *Getter* | get_roughness_texture_channel() |
- +-----------+--------------------------------------+
- Specifies the channel of the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>` in which the ambient occlusion information is stored. This is useful when you store the information for multiple effects in a single texture. For example if you stored metallic in the red channel, roughness in the blue, and ambient occlusion in the green you could reduce the number of textures you use.
- ----
- .. _class_BaseMaterial3D_property_shading_mode:
- - :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` **shading_mode**
- +-----------+-------------------------+
- | *Default* | ``1`` |
- +-----------+-------------------------+
- | *Setter* | set_shading_mode(value) |
- +-----------+-------------------------+
- | *Getter* | get_shading_mode() |
- +-----------+-------------------------+
- Sets whether the shading takes place per-pixel or per-vertex. Per-vertex lighting is faster, making it the best choice for mobile applications, however it looks considerably worse than per-pixel.
- ----
- .. _class_BaseMaterial3D_property_shadow_to_opacity:
- - :ref:`bool<class_bool>` **shadow_to_opacity**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, enables the "shadow to opacity" render mode where lighting modifies the alpha so shadowed areas are opaque and non-shadowed areas are transparent. Useful for overlaying shadows onto a camera feed in AR.
- ----
- .. _class_BaseMaterial3D_property_specular_mode:
- - :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` **specular_mode**
- +-----------+--------------------------+
- | *Default* | ``0`` |
- +-----------+--------------------------+
- | *Setter* | set_specular_mode(value) |
- +-----------+--------------------------+
- | *Getter* | get_specular_mode() |
- +-----------+--------------------------+
- The method for rendering the specular blob. See :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>`.
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_enabled:
- - :ref:`bool<class_bool>` **subsurf_scatter_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- If ``true``, subsurface scattering is enabled. Emulates light that penetrates an object's surface, is scattered, and then emerges.
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_skin_mode:
- - :ref:`bool<class_bool>` **subsurf_scatter_skin_mode**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, subsurface scattering will use a special mode optimized for the color and density of human skin.
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_strength:
- - :ref:`float<class_float>` **subsurf_scatter_strength**
- +-----------+-------------------------------------------+
- | *Default* | ``0.0`` |
- +-----------+-------------------------------------------+
- | *Setter* | set_subsurface_scattering_strength(value) |
- +-----------+-------------------------------------------+
- | *Getter* | get_subsurface_scattering_strength() |
- +-----------+-------------------------------------------+
- The strength of the subsurface scattering effect.
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_texture:
- - :ref:`Texture2D<class_Texture2D>` **subsurf_scatter_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- Texture used to control the subsurface scattering strength. Stored in the red texture channel. Multiplied by :ref:`subsurf_scatter_strength<class_BaseMaterial3D_property_subsurf_scatter_strength>`.
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_boost:
- - :ref:`float<class_float>` **subsurf_scatter_transmittance_boost**
- +-----------+--------------------------------+
- | *Default* | ``0.0`` |
- +-----------+--------------------------------+
- | *Setter* | set_transmittance_boost(value) |
- +-----------+--------------------------------+
- | *Getter* | get_transmittance_boost() |
- +-----------+--------------------------------+
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_color:
- - :ref:`Color<class_Color>` **subsurf_scatter_transmittance_color**
- +-----------+--------------------------------+
- | *Default* | ``Color(1, 1, 1, 1)`` |
- +-----------+--------------------------------+
- | *Setter* | set_transmittance_color(value) |
- +-----------+--------------------------------+
- | *Getter* | get_transmittance_color() |
- +-----------+--------------------------------+
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_depth:
- - :ref:`float<class_float>` **subsurf_scatter_transmittance_depth**
- +-----------+--------------------------------+
- | *Default* | ``0.1`` |
- +-----------+--------------------------------+
- | *Setter* | set_transmittance_depth(value) |
- +-----------+--------------------------------+
- | *Getter* | get_transmittance_depth() |
- +-----------+--------------------------------+
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_enabled:
- - :ref:`bool<class_bool>` **subsurf_scatter_transmittance_enabled**
- +-----------+--------------------+
- | *Default* | ``false`` |
- +-----------+--------------------+
- | *Setter* | set_feature(value) |
- +-----------+--------------------+
- | *Getter* | get_feature() |
- +-----------+--------------------+
- ----
- .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_texture:
- - :ref:`Texture2D<class_Texture2D>` **subsurf_scatter_transmittance_texture**
- +----------+--------------------+
- | *Setter* | set_texture(value) |
- +----------+--------------------+
- | *Getter* | get_texture() |
- +----------+--------------------+
- ----
- .. _class_BaseMaterial3D_property_texture_filter:
- - :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **texture_filter**
- +-----------+---------------------------+
- | *Default* | ``3`` |
- +-----------+---------------------------+
- | *Setter* | set_texture_filter(value) |
- +-----------+---------------------------+
- | *Getter* | get_texture_filter() |
- +-----------+---------------------------+
- Filter flags for the texture. See :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` for options.
- ----
- .. _class_BaseMaterial3D_property_texture_repeat:
- - :ref:`bool<class_bool>` **texture_repeat**
- +-----------+-----------------+
- | *Default* | ``true`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- Repeat flags for the texture. See :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` for options.
- ----
- .. _class_BaseMaterial3D_property_transparency:
- - :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **transparency**
- +-----------+-------------------------+
- | *Default* | ``0`` |
- +-----------+-------------------------+
- | *Setter* | set_transparency(value) |
- +-----------+-------------------------+
- | *Getter* | get_transparency() |
- +-----------+-------------------------+
- If ``true``, transparency is enabled on the body. See also :ref:`blend_mode<class_BaseMaterial3D_property_blend_mode>`.
- ----
- .. _class_BaseMaterial3D_property_use_particle_trails:
- - :ref:`bool<class_bool>` **use_particle_trails**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- ----
- .. _class_BaseMaterial3D_property_use_point_size:
- - :ref:`bool<class_bool>` **use_point_size**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, render point size can be changed.
- **Note:** This is only effective for objects whose geometry is point-based rather than triangle-based. See also :ref:`point_size<class_BaseMaterial3D_property_point_size>`.
- ----
- .. _class_BaseMaterial3D_property_uv1_offset:
- - :ref:`Vector3<class_Vector3>` **uv1_offset**
- +-----------+-----------------------+
- | *Default* | ``Vector3(0, 0, 0)`` |
- +-----------+-----------------------+
- | *Setter* | set_uv1_offset(value) |
- +-----------+-----------------------+
- | *Getter* | get_uv1_offset() |
- +-----------+-----------------------+
- How much to offset the ``UV`` coordinates. This amount will be added to ``UV`` in the vertex function. This can be used to offset a texture.
- ----
- .. _class_BaseMaterial3D_property_uv1_scale:
- - :ref:`Vector3<class_Vector3>` **uv1_scale**
- +-----------+----------------------+
- | *Default* | ``Vector3(1, 1, 1)`` |
- +-----------+----------------------+
- | *Setter* | set_uv1_scale(value) |
- +-----------+----------------------+
- | *Getter* | get_uv1_scale() |
- +-----------+----------------------+
- How much to scale the ``UV`` coordinates. This is multiplied by ``UV`` in the vertex function.
- ----
- .. _class_BaseMaterial3D_property_uv1_triplanar:
- - :ref:`bool<class_bool>` **uv1_triplanar**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, instead of using ``UV`` textures will use a triplanar texture lookup to determine how to apply textures. Triplanar uses the orientation of the object's surface to blend between texture coordinates. It reads from the source texture 3 times, once for each axis and then blends between the results based on how closely the pixel aligns with each axis. This is often used for natural features to get a realistic blend of materials. Because triplanar texturing requires many more texture reads per-pixel it is much slower than normal UV texturing. Additionally, because it is blending the texture between the three axes, it is unsuitable when you are trying to achieve crisp texturing.
- ----
- .. _class_BaseMaterial3D_property_uv1_triplanar_sharpness:
- - :ref:`float<class_float>` **uv1_triplanar_sharpness**
- +-----------+------------------------------------------+
- | *Default* | ``1.0`` |
- +-----------+------------------------------------------+
- | *Setter* | set_uv1_triplanar_blend_sharpness(value) |
- +-----------+------------------------------------------+
- | *Getter* | get_uv1_triplanar_blend_sharpness() |
- +-----------+------------------------------------------+
- A lower number blends the texture more softly while a higher number blends the texture more sharply.
- ----
- .. _class_BaseMaterial3D_property_uv1_world_triplanar:
- - :ref:`bool<class_bool>` **uv1_world_triplanar**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, triplanar mapping for ``UV`` is calculated in world space rather than object local space. See also :ref:`uv1_triplanar<class_BaseMaterial3D_property_uv1_triplanar>`.
- ----
- .. _class_BaseMaterial3D_property_uv2_offset:
- - :ref:`Vector3<class_Vector3>` **uv2_offset**
- +-----------+-----------------------+
- | *Default* | ``Vector3(0, 0, 0)`` |
- +-----------+-----------------------+
- | *Setter* | set_uv2_offset(value) |
- +-----------+-----------------------+
- | *Getter* | get_uv2_offset() |
- +-----------+-----------------------+
- How much to offset the ``UV2`` coordinates. This amount will be added to ``UV2`` in the vertex function. This can be used to offset a texture.
- ----
- .. _class_BaseMaterial3D_property_uv2_scale:
- - :ref:`Vector3<class_Vector3>` **uv2_scale**
- +-----------+----------------------+
- | *Default* | ``Vector3(1, 1, 1)`` |
- +-----------+----------------------+
- | *Setter* | set_uv2_scale(value) |
- +-----------+----------------------+
- | *Getter* | get_uv2_scale() |
- +-----------+----------------------+
- How much to scale the ``UV2`` coordinates. This is multiplied by ``UV2`` in the vertex function.
- ----
- .. _class_BaseMaterial3D_property_uv2_triplanar:
- - :ref:`bool<class_bool>` **uv2_triplanar**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, instead of using ``UV2`` textures will use a triplanar texture lookup to determine how to apply textures. Triplanar uses the orientation of the object's surface to blend between texture coordinates. It reads from the source texture 3 times, once for each axis and then blends between the results based on how closely the pixel aligns with each axis. This is often used for natural features to get a realistic blend of materials. Because triplanar texturing requires many more texture reads per-pixel it is much slower than normal UV texturing. Additionally, because it is blending the texture between the three axes, it is unsuitable when you are trying to achieve crisp texturing.
- ----
- .. _class_BaseMaterial3D_property_uv2_triplanar_sharpness:
- - :ref:`float<class_float>` **uv2_triplanar_sharpness**
- +-----------+------------------------------------------+
- | *Default* | ``1.0`` |
- +-----------+------------------------------------------+
- | *Setter* | set_uv2_triplanar_blend_sharpness(value) |
- +-----------+------------------------------------------+
- | *Getter* | get_uv2_triplanar_blend_sharpness() |
- +-----------+------------------------------------------+
- A lower number blends the texture more softly while a higher number blends the texture more sharply.
- ----
- .. _class_BaseMaterial3D_property_uv2_world_triplanar:
- - :ref:`bool<class_bool>` **uv2_world_triplanar**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, triplanar mapping for ``UV2`` is calculated in world space rather than object local space. See also :ref:`uv2_triplanar<class_BaseMaterial3D_property_uv2_triplanar>`.
- ----
- .. _class_BaseMaterial3D_property_vertex_color_is_srgb:
- - :ref:`bool<class_bool>` **vertex_color_is_srgb**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, the model's vertex colors are processed as sRGB mode.
- ----
- .. _class_BaseMaterial3D_property_vertex_color_use_as_albedo:
- - :ref:`bool<class_bool>` **vertex_color_use_as_albedo**
- +-----------+-----------------+
- | *Default* | ``false`` |
- +-----------+-----------------+
- | *Setter* | set_flag(value) |
- +-----------+-----------------+
- | *Getter* | get_flag() |
- +-----------+-----------------+
- If ``true``, the vertex color is used as albedo color.
- Method Descriptions
- -------------------
- .. _class_BaseMaterial3D_method_get_feature:
- - :ref:`bool<class_bool>` **get_feature** **(** :ref:`Feature<enum_BaseMaterial3D_Feature>` feature **)** |const|
- Returns ``true``, if the specified :ref:`Feature<enum_BaseMaterial3D_Feature>` is enabled.
- ----
- .. _class_BaseMaterial3D_method_get_flag:
- - :ref:`bool<class_bool>` **get_flag** **(** :ref:`Flags<enum_BaseMaterial3D_Flags>` flag **)** |const|
- Returns ``true``, if the specified flag is enabled. See :ref:`Flags<enum_BaseMaterial3D_Flags>` enumerator for options.
- ----
- .. _class_BaseMaterial3D_method_get_texture:
- - :ref:`Texture2D<class_Texture2D>` **get_texture** **(** :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` param **)** |const|
- Returns the :ref:`Texture<class_Texture>` associated with the specified :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`.
- ----
- .. _class_BaseMaterial3D_method_set_feature:
- - void **set_feature** **(** :ref:`Feature<enum_BaseMaterial3D_Feature>` feature, :ref:`bool<class_bool>` enable **)**
- If ``true``, enables the specified :ref:`Feature<enum_BaseMaterial3D_Feature>`. Many features that are available in ``BaseMaterial3D``\ s need to be enabled before use. This way the cost for using the feature is only incurred when specified. Features can also be enabled by setting the corresponding member to ``true``.
- ----
- .. _class_BaseMaterial3D_method_set_flag:
- - void **set_flag** **(** :ref:`Flags<enum_BaseMaterial3D_Flags>` flag, :ref:`bool<class_bool>` enable **)**
- If ``true``, enables the specified flag. Flags are optional behavior that can be turned on and off. Only one flag can be enabled at a time with this function, the flag enumerators cannot be bit-masked together to enable or disable multiple flags at once. Flags can also be enabled by setting the corresponding member to ``true``. See :ref:`Flags<enum_BaseMaterial3D_Flags>` enumerator for options.
- ----
- .. _class_BaseMaterial3D_method_set_texture:
- - void **set_texture** **(** :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` param, :ref:`Texture2D<class_Texture2D>` texture **)**
- Sets the texture for the slot specified by ``param``. See :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` for available slots.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
|