class_basematerial3d.rst 190 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/BaseMaterial3D.xml.
  6. .. _class_BaseMaterial3D:
  7. BaseMaterial3D
  8. ==============
  9. **Inherits:** :ref:`Material<class_Material>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`ORMMaterial3D<class_ORMMaterial3D>`, :ref:`StandardMaterial3D<class_StandardMaterial3D>`
  11. Abstract base class for defining the 3D rendering properties of meshes.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. This class serves as 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.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Standard Material 3D and ORM Material 3D <../tutorials/3d/standard_material_3d>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  26. | :ref:`Color<class_Color>` | :ref:`albedo_color<class_BaseMaterial3D_property_albedo_color>` | ``Color(1, 1, 1, 1)`` |
  27. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  28. | :ref:`Texture2D<class_Texture2D>` | :ref:`albedo_texture<class_BaseMaterial3D_property_albedo_texture>` | |
  29. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  30. | :ref:`bool<class_bool>` | :ref:`albedo_texture_force_srgb<class_BaseMaterial3D_property_albedo_texture_force_srgb>` | ``false`` |
  31. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  32. | :ref:`bool<class_bool>` | :ref:`albedo_texture_msdf<class_BaseMaterial3D_property_albedo_texture_msdf>` | ``false`` |
  33. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  34. | :ref:`float<class_float>` | :ref:`alpha_antialiasing_edge<class_BaseMaterial3D_property_alpha_antialiasing_edge>` | |
  35. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  36. | :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>` | :ref:`alpha_antialiasing_mode<class_BaseMaterial3D_property_alpha_antialiasing_mode>` | |
  37. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  38. | :ref:`float<class_float>` | :ref:`alpha_hash_scale<class_BaseMaterial3D_property_alpha_hash_scale>` | |
  39. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  40. | :ref:`float<class_float>` | :ref:`alpha_scissor_threshold<class_BaseMaterial3D_property_alpha_scissor_threshold>` | |
  41. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  42. | :ref:`float<class_float>` | :ref:`anisotropy<class_BaseMaterial3D_property_anisotropy>` | ``0.0`` |
  43. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  44. | :ref:`bool<class_bool>` | :ref:`anisotropy_enabled<class_BaseMaterial3D_property_anisotropy_enabled>` | ``false`` |
  45. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  46. | :ref:`Texture2D<class_Texture2D>` | :ref:`anisotropy_flowmap<class_BaseMaterial3D_property_anisotropy_flowmap>` | |
  47. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  48. | :ref:`bool<class_bool>` | :ref:`ao_enabled<class_BaseMaterial3D_property_ao_enabled>` | ``false`` |
  49. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  50. | :ref:`float<class_float>` | :ref:`ao_light_affect<class_BaseMaterial3D_property_ao_light_affect>` | ``0.0`` |
  51. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  52. | :ref:`bool<class_bool>` | :ref:`ao_on_uv2<class_BaseMaterial3D_property_ao_on_uv2>` | ``false`` |
  53. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  54. | :ref:`Texture2D<class_Texture2D>` | :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>` | |
  55. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  56. | :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` | :ref:`ao_texture_channel<class_BaseMaterial3D_property_ao_texture_channel>` | ``0`` |
  57. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  58. | :ref:`Color<class_Color>` | :ref:`backlight<class_BaseMaterial3D_property_backlight>` | ``Color(0, 0, 0, 1)`` |
  59. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  60. | :ref:`bool<class_bool>` | :ref:`backlight_enabled<class_BaseMaterial3D_property_backlight_enabled>` | ``false`` |
  61. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  62. | :ref:`Texture2D<class_Texture2D>` | :ref:`backlight_texture<class_BaseMaterial3D_property_backlight_texture>` | |
  63. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  64. | :ref:`bool<class_bool>` | :ref:`bent_normal_enabled<class_BaseMaterial3D_property_bent_normal_enabled>` | ``false`` |
  65. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  66. | :ref:`Texture2D<class_Texture2D>` | :ref:`bent_normal_texture<class_BaseMaterial3D_property_bent_normal_texture>` | |
  67. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  68. | :ref:`bool<class_bool>` | :ref:`billboard_keep_scale<class_BaseMaterial3D_property_billboard_keep_scale>` | ``false`` |
  69. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  70. | :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` | :ref:`billboard_mode<class_BaseMaterial3D_property_billboard_mode>` | ``0`` |
  71. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  72. | :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` | :ref:`blend_mode<class_BaseMaterial3D_property_blend_mode>` | ``0`` |
  73. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  74. | :ref:`float<class_float>` | :ref:`clearcoat<class_BaseMaterial3D_property_clearcoat>` | ``1.0`` |
  75. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  76. | :ref:`bool<class_bool>` | :ref:`clearcoat_enabled<class_BaseMaterial3D_property_clearcoat_enabled>` | ``false`` |
  77. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  78. | :ref:`float<class_float>` | :ref:`clearcoat_roughness<class_BaseMaterial3D_property_clearcoat_roughness>` | ``0.5`` |
  79. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  80. | :ref:`Texture2D<class_Texture2D>` | :ref:`clearcoat_texture<class_BaseMaterial3D_property_clearcoat_texture>` | |
  81. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  82. | :ref:`CullMode<enum_BaseMaterial3D_CullMode>` | :ref:`cull_mode<class_BaseMaterial3D_property_cull_mode>` | ``0`` |
  83. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  84. | :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>` | :ref:`depth_draw_mode<class_BaseMaterial3D_property_depth_draw_mode>` | ``0`` |
  85. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  86. | :ref:`Texture2D<class_Texture2D>` | :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>` | |
  87. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  88. | :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` | :ref:`detail_blend_mode<class_BaseMaterial3D_property_detail_blend_mode>` | ``0`` |
  89. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  90. | :ref:`bool<class_bool>` | :ref:`detail_enabled<class_BaseMaterial3D_property_detail_enabled>` | ``false`` |
  91. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  92. | :ref:`Texture2D<class_Texture2D>` | :ref:`detail_mask<class_BaseMaterial3D_property_detail_mask>` | |
  93. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  94. | :ref:`Texture2D<class_Texture2D>` | :ref:`detail_normal<class_BaseMaterial3D_property_detail_normal>` | |
  95. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  96. | :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` | :ref:`detail_uv_layer<class_BaseMaterial3D_property_detail_uv_layer>` | ``0`` |
  97. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  98. | :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` | :ref:`diffuse_mode<class_BaseMaterial3D_property_diffuse_mode>` | ``0`` |
  99. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  100. | :ref:`bool<class_bool>` | :ref:`disable_ambient_light<class_BaseMaterial3D_property_disable_ambient_light>` | ``false`` |
  101. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  102. | :ref:`bool<class_bool>` | :ref:`disable_fog<class_BaseMaterial3D_property_disable_fog>` | ``false`` |
  103. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  104. | :ref:`bool<class_bool>` | :ref:`disable_receive_shadows<class_BaseMaterial3D_property_disable_receive_shadows>` | ``false`` |
  105. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  106. | :ref:`bool<class_bool>` | :ref:`disable_specular_occlusion<class_BaseMaterial3D_property_disable_specular_occlusion>` | ``false`` |
  107. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  108. | :ref:`float<class_float>` | :ref:`distance_fade_max_distance<class_BaseMaterial3D_property_distance_fade_max_distance>` | ``10.0`` |
  109. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  110. | :ref:`float<class_float>` | :ref:`distance_fade_min_distance<class_BaseMaterial3D_property_distance_fade_min_distance>` | ``0.0`` |
  111. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  112. | :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` | :ref:`distance_fade_mode<class_BaseMaterial3D_property_distance_fade_mode>` | ``0`` |
  113. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  114. | :ref:`Color<class_Color>` | :ref:`emission<class_BaseMaterial3D_property_emission>` | ``Color(0, 0, 0, 1)`` |
  115. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  116. | :ref:`bool<class_bool>` | :ref:`emission_enabled<class_BaseMaterial3D_property_emission_enabled>` | ``false`` |
  117. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  118. | :ref:`float<class_float>` | :ref:`emission_energy_multiplier<class_BaseMaterial3D_property_emission_energy_multiplier>` | ``1.0`` |
  119. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  120. | :ref:`float<class_float>` | :ref:`emission_intensity<class_BaseMaterial3D_property_emission_intensity>` | |
  121. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  122. | :ref:`bool<class_bool>` | :ref:`emission_on_uv2<class_BaseMaterial3D_property_emission_on_uv2>` | ``false`` |
  123. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  124. | :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>` | :ref:`emission_operator<class_BaseMaterial3D_property_emission_operator>` | ``0`` |
  125. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  126. | :ref:`Texture2D<class_Texture2D>` | :ref:`emission_texture<class_BaseMaterial3D_property_emission_texture>` | |
  127. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  128. | :ref:`bool<class_bool>` | :ref:`fixed_size<class_BaseMaterial3D_property_fixed_size>` | ``false`` |
  129. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  130. | :ref:`bool<class_bool>` | :ref:`grow<class_BaseMaterial3D_property_grow>` | ``false`` |
  131. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  132. | :ref:`float<class_float>` | :ref:`grow_amount<class_BaseMaterial3D_property_grow_amount>` | ``0.0`` |
  133. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  134. | :ref:`bool<class_bool>` | :ref:`heightmap_deep_parallax<class_BaseMaterial3D_property_heightmap_deep_parallax>` | ``false`` |
  135. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  136. | :ref:`bool<class_bool>` | :ref:`heightmap_enabled<class_BaseMaterial3D_property_heightmap_enabled>` | ``false`` |
  137. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  138. | :ref:`bool<class_bool>` | :ref:`heightmap_flip_binormal<class_BaseMaterial3D_property_heightmap_flip_binormal>` | ``false`` |
  139. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  140. | :ref:`bool<class_bool>` | :ref:`heightmap_flip_tangent<class_BaseMaterial3D_property_heightmap_flip_tangent>` | ``false`` |
  141. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  142. | :ref:`bool<class_bool>` | :ref:`heightmap_flip_texture<class_BaseMaterial3D_property_heightmap_flip_texture>` | ``false`` |
  143. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  144. | :ref:`int<class_int>` | :ref:`heightmap_max_layers<class_BaseMaterial3D_property_heightmap_max_layers>` | |
  145. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  146. | :ref:`int<class_int>` | :ref:`heightmap_min_layers<class_BaseMaterial3D_property_heightmap_min_layers>` | |
  147. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  148. | :ref:`float<class_float>` | :ref:`heightmap_scale<class_BaseMaterial3D_property_heightmap_scale>` | ``5.0`` |
  149. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  150. | :ref:`Texture2D<class_Texture2D>` | :ref:`heightmap_texture<class_BaseMaterial3D_property_heightmap_texture>` | |
  151. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  152. | :ref:`float<class_float>` | :ref:`metallic<class_BaseMaterial3D_property_metallic>` | ``0.0`` |
  153. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  154. | :ref:`float<class_float>` | :ref:`metallic_specular<class_BaseMaterial3D_property_metallic_specular>` | ``0.5`` |
  155. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  156. | :ref:`Texture2D<class_Texture2D>` | :ref:`metallic_texture<class_BaseMaterial3D_property_metallic_texture>` | |
  157. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  158. | :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` | :ref:`metallic_texture_channel<class_BaseMaterial3D_property_metallic_texture_channel>` | ``0`` |
  159. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  160. | :ref:`float<class_float>` | :ref:`msdf_outline_size<class_BaseMaterial3D_property_msdf_outline_size>` | ``0.0`` |
  161. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  162. | :ref:`float<class_float>` | :ref:`msdf_pixel_range<class_BaseMaterial3D_property_msdf_pixel_range>` | ``4.0`` |
  163. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  164. | :ref:`bool<class_bool>` | :ref:`no_depth_test<class_BaseMaterial3D_property_no_depth_test>` | ``false`` |
  165. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  166. | :ref:`bool<class_bool>` | :ref:`normal_enabled<class_BaseMaterial3D_property_normal_enabled>` | ``false`` |
  167. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  168. | :ref:`float<class_float>` | :ref:`normal_scale<class_BaseMaterial3D_property_normal_scale>` | ``1.0`` |
  169. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  170. | :ref:`Texture2D<class_Texture2D>` | :ref:`normal_texture<class_BaseMaterial3D_property_normal_texture>` | |
  171. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  172. | :ref:`Texture2D<class_Texture2D>` | :ref:`orm_texture<class_BaseMaterial3D_property_orm_texture>` | |
  173. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  174. | :ref:`int<class_int>` | :ref:`particles_anim_h_frames<class_BaseMaterial3D_property_particles_anim_h_frames>` | |
  175. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  176. | :ref:`bool<class_bool>` | :ref:`particles_anim_loop<class_BaseMaterial3D_property_particles_anim_loop>` | |
  177. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  178. | :ref:`int<class_int>` | :ref:`particles_anim_v_frames<class_BaseMaterial3D_property_particles_anim_v_frames>` | |
  179. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  180. | :ref:`float<class_float>` | :ref:`point_size<class_BaseMaterial3D_property_point_size>` | ``1.0`` |
  181. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  182. | :ref:`float<class_float>` | :ref:`proximity_fade_distance<class_BaseMaterial3D_property_proximity_fade_distance>` | ``1.0`` |
  183. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  184. | :ref:`bool<class_bool>` | :ref:`proximity_fade_enabled<class_BaseMaterial3D_property_proximity_fade_enabled>` | ``false`` |
  185. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  186. | :ref:`bool<class_bool>` | :ref:`refraction_enabled<class_BaseMaterial3D_property_refraction_enabled>` | ``false`` |
  187. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  188. | :ref:`float<class_float>` | :ref:`refraction_scale<class_BaseMaterial3D_property_refraction_scale>` | ``0.05`` |
  189. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  190. | :ref:`Texture2D<class_Texture2D>` | :ref:`refraction_texture<class_BaseMaterial3D_property_refraction_texture>` | |
  191. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  192. | :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` | :ref:`refraction_texture_channel<class_BaseMaterial3D_property_refraction_texture_channel>` | ``0`` |
  193. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  194. | :ref:`float<class_float>` | :ref:`rim<class_BaseMaterial3D_property_rim>` | ``1.0`` |
  195. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  196. | :ref:`bool<class_bool>` | :ref:`rim_enabled<class_BaseMaterial3D_property_rim_enabled>` | ``false`` |
  197. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  198. | :ref:`Texture2D<class_Texture2D>` | :ref:`rim_texture<class_BaseMaterial3D_property_rim_texture>` | |
  199. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  200. | :ref:`float<class_float>` | :ref:`rim_tint<class_BaseMaterial3D_property_rim_tint>` | ``0.5`` |
  201. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  202. | :ref:`float<class_float>` | :ref:`roughness<class_BaseMaterial3D_property_roughness>` | ``1.0`` |
  203. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  204. | :ref:`Texture2D<class_Texture2D>` | :ref:`roughness_texture<class_BaseMaterial3D_property_roughness_texture>` | |
  205. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  206. | :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` | :ref:`roughness_texture_channel<class_BaseMaterial3D_property_roughness_texture_channel>` | ``0`` |
  207. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  208. | :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` | :ref:`shading_mode<class_BaseMaterial3D_property_shading_mode>` | ``1`` |
  209. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  210. | :ref:`bool<class_bool>` | :ref:`shadow_to_opacity<class_BaseMaterial3D_property_shadow_to_opacity>` | ``false`` |
  211. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  212. | :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` | :ref:`specular_mode<class_BaseMaterial3D_property_specular_mode>` | ``0`` |
  213. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  214. | :ref:`bool<class_bool>` | :ref:`subsurf_scatter_enabled<class_BaseMaterial3D_property_subsurf_scatter_enabled>` | ``false`` |
  215. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  216. | :ref:`bool<class_bool>` | :ref:`subsurf_scatter_skin_mode<class_BaseMaterial3D_property_subsurf_scatter_skin_mode>` | ``false`` |
  217. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  218. | :ref:`float<class_float>` | :ref:`subsurf_scatter_strength<class_BaseMaterial3D_property_subsurf_scatter_strength>` | ``0.0`` |
  219. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  220. | :ref:`Texture2D<class_Texture2D>` | :ref:`subsurf_scatter_texture<class_BaseMaterial3D_property_subsurf_scatter_texture>` | |
  221. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  222. | :ref:`float<class_float>` | :ref:`subsurf_scatter_transmittance_boost<class_BaseMaterial3D_property_subsurf_scatter_transmittance_boost>` | ``0.0`` |
  223. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  224. | :ref:`Color<class_Color>` | :ref:`subsurf_scatter_transmittance_color<class_BaseMaterial3D_property_subsurf_scatter_transmittance_color>` | ``Color(1, 1, 1, 1)`` |
  225. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  226. | :ref:`float<class_float>` | :ref:`subsurf_scatter_transmittance_depth<class_BaseMaterial3D_property_subsurf_scatter_transmittance_depth>` | ``0.1`` |
  227. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  228. | :ref:`bool<class_bool>` | :ref:`subsurf_scatter_transmittance_enabled<class_BaseMaterial3D_property_subsurf_scatter_transmittance_enabled>` | ``false`` |
  229. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  230. | :ref:`Texture2D<class_Texture2D>` | :ref:`subsurf_scatter_transmittance_texture<class_BaseMaterial3D_property_subsurf_scatter_transmittance_texture>` | |
  231. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  232. | :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` | :ref:`texture_filter<class_BaseMaterial3D_property_texture_filter>` | ``3`` |
  233. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  234. | :ref:`bool<class_bool>` | :ref:`texture_repeat<class_BaseMaterial3D_property_texture_repeat>` | ``true`` |
  235. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  236. | :ref:`Transparency<enum_BaseMaterial3D_Transparency>` | :ref:`transparency<class_BaseMaterial3D_property_transparency>` | ``0`` |
  237. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  238. | :ref:`bool<class_bool>` | :ref:`use_particle_trails<class_BaseMaterial3D_property_use_particle_trails>` | ``false`` |
  239. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  240. | :ref:`bool<class_bool>` | :ref:`use_point_size<class_BaseMaterial3D_property_use_point_size>` | ``false`` |
  241. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  242. | :ref:`Vector3<class_Vector3>` | :ref:`uv1_offset<class_BaseMaterial3D_property_uv1_offset>` | ``Vector3(0, 0, 0)`` |
  243. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  244. | :ref:`Vector3<class_Vector3>` | :ref:`uv1_scale<class_BaseMaterial3D_property_uv1_scale>` | ``Vector3(1, 1, 1)`` |
  245. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  246. | :ref:`bool<class_bool>` | :ref:`uv1_triplanar<class_BaseMaterial3D_property_uv1_triplanar>` | ``false`` |
  247. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  248. | :ref:`float<class_float>` | :ref:`uv1_triplanar_sharpness<class_BaseMaterial3D_property_uv1_triplanar_sharpness>` | ``1.0`` |
  249. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  250. | :ref:`bool<class_bool>` | :ref:`uv1_world_triplanar<class_BaseMaterial3D_property_uv1_world_triplanar>` | ``false`` |
  251. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  252. | :ref:`Vector3<class_Vector3>` | :ref:`uv2_offset<class_BaseMaterial3D_property_uv2_offset>` | ``Vector3(0, 0, 0)`` |
  253. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  254. | :ref:`Vector3<class_Vector3>` | :ref:`uv2_scale<class_BaseMaterial3D_property_uv2_scale>` | ``Vector3(1, 1, 1)`` |
  255. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  256. | :ref:`bool<class_bool>` | :ref:`uv2_triplanar<class_BaseMaterial3D_property_uv2_triplanar>` | ``false`` |
  257. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  258. | :ref:`float<class_float>` | :ref:`uv2_triplanar_sharpness<class_BaseMaterial3D_property_uv2_triplanar_sharpness>` | ``1.0`` |
  259. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  260. | :ref:`bool<class_bool>` | :ref:`uv2_world_triplanar<class_BaseMaterial3D_property_uv2_world_triplanar>` | ``false`` |
  261. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  262. | :ref:`bool<class_bool>` | :ref:`vertex_color_is_srgb<class_BaseMaterial3D_property_vertex_color_is_srgb>` | ``false`` |
  263. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  264. | :ref:`bool<class_bool>` | :ref:`vertex_color_use_as_albedo<class_BaseMaterial3D_property_vertex_color_use_as_albedo>` | ``false`` |
  265. +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  266. .. rst-class:: classref-reftable-group
  267. Methods
  268. -------
  269. .. table::
  270. :widths: auto
  271. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  272. | :ref:`bool<class_bool>` | :ref:`get_feature<class_BaseMaterial3D_method_get_feature>`\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const| |
  273. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  274. | :ref:`bool<class_bool>` | :ref:`get_flag<class_BaseMaterial3D_method_get_flag>`\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const| |
  275. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  276. | :ref:`Texture2D<class_Texture2D>` | :ref:`get_texture<class_BaseMaterial3D_method_get_texture>`\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const| |
  277. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  278. | |void| | :ref:`set_feature<class_BaseMaterial3D_method_set_feature>`\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ ) |
  279. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  280. | |void| | :ref:`set_flag<class_BaseMaterial3D_method_set_flag>`\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ ) |
  281. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  282. | |void| | :ref:`set_texture<class_BaseMaterial3D_method_set_texture>`\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ ) |
  283. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  284. .. rst-class:: classref-section-separator
  285. ----
  286. .. rst-class:: classref-descriptions-group
  287. Enumerations
  288. ------------
  289. .. _enum_BaseMaterial3D_TextureParam:
  290. .. rst-class:: classref-enumeration
  291. enum **TextureParam**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_TextureParam>`
  292. .. _class_BaseMaterial3D_constant_TEXTURE_ALBEDO:
  293. .. rst-class:: classref-enumeration-constant
  294. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_ALBEDO** = ``0``
  295. Texture specifying per-pixel color.
  296. .. _class_BaseMaterial3D_constant_TEXTURE_METALLIC:
  297. .. rst-class:: classref-enumeration-constant
  298. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_METALLIC** = ``1``
  299. Texture specifying per-pixel metallic value.
  300. .. _class_BaseMaterial3D_constant_TEXTURE_ROUGHNESS:
  301. .. rst-class:: classref-enumeration-constant
  302. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_ROUGHNESS** = ``2``
  303. Texture specifying per-pixel roughness value.
  304. .. _class_BaseMaterial3D_constant_TEXTURE_EMISSION:
  305. .. rst-class:: classref-enumeration-constant
  306. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_EMISSION** = ``3``
  307. Texture specifying per-pixel emission color.
  308. .. _class_BaseMaterial3D_constant_TEXTURE_NORMAL:
  309. .. rst-class:: classref-enumeration-constant
  310. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_NORMAL** = ``4``
  311. Texture specifying per-pixel normal vector.
  312. .. _class_BaseMaterial3D_constant_TEXTURE_BENT_NORMAL:
  313. .. rst-class:: classref-enumeration-constant
  314. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_BENT_NORMAL** = ``18``
  315. Texture specifying per-pixel bent normal vector.
  316. .. _class_BaseMaterial3D_constant_TEXTURE_RIM:
  317. .. rst-class:: classref-enumeration-constant
  318. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_RIM** = ``5``
  319. Texture specifying per-pixel rim value.
  320. .. _class_BaseMaterial3D_constant_TEXTURE_CLEARCOAT:
  321. .. rst-class:: classref-enumeration-constant
  322. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_CLEARCOAT** = ``6``
  323. Texture specifying per-pixel clearcoat value.
  324. .. _class_BaseMaterial3D_constant_TEXTURE_FLOWMAP:
  325. .. rst-class:: classref-enumeration-constant
  326. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_FLOWMAP** = ``7``
  327. Texture specifying per-pixel flowmap direction for use with :ref:`anisotropy<class_BaseMaterial3D_property_anisotropy>`.
  328. .. _class_BaseMaterial3D_constant_TEXTURE_AMBIENT_OCCLUSION:
  329. .. rst-class:: classref-enumeration-constant
  330. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_AMBIENT_OCCLUSION** = ``8``
  331. Texture specifying per-pixel ambient occlusion value.
  332. .. _class_BaseMaterial3D_constant_TEXTURE_HEIGHTMAP:
  333. .. rst-class:: classref-enumeration-constant
  334. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_HEIGHTMAP** = ``9``
  335. Texture specifying per-pixel height.
  336. .. _class_BaseMaterial3D_constant_TEXTURE_SUBSURFACE_SCATTERING:
  337. .. rst-class:: classref-enumeration-constant
  338. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_SUBSURFACE_SCATTERING** = ``10``
  339. Texture specifying per-pixel subsurface scattering.
  340. .. _class_BaseMaterial3D_constant_TEXTURE_SUBSURFACE_TRANSMITTANCE:
  341. .. rst-class:: classref-enumeration-constant
  342. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_SUBSURFACE_TRANSMITTANCE** = ``11``
  343. Texture specifying per-pixel transmittance for subsurface scattering.
  344. .. _class_BaseMaterial3D_constant_TEXTURE_BACKLIGHT:
  345. .. rst-class:: classref-enumeration-constant
  346. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_BACKLIGHT** = ``12``
  347. Texture specifying per-pixel backlight color.
  348. .. _class_BaseMaterial3D_constant_TEXTURE_REFRACTION:
  349. .. rst-class:: classref-enumeration-constant
  350. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_REFRACTION** = ``13``
  351. Texture specifying per-pixel refraction strength.
  352. .. _class_BaseMaterial3D_constant_TEXTURE_DETAIL_MASK:
  353. .. rst-class:: classref-enumeration-constant
  354. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_DETAIL_MASK** = ``14``
  355. Texture specifying per-pixel detail mask blending value.
  356. .. _class_BaseMaterial3D_constant_TEXTURE_DETAIL_ALBEDO:
  357. .. rst-class:: classref-enumeration-constant
  358. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_DETAIL_ALBEDO** = ``15``
  359. Texture specifying per-pixel detail color.
  360. .. _class_BaseMaterial3D_constant_TEXTURE_DETAIL_NORMAL:
  361. .. rst-class:: classref-enumeration-constant
  362. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_DETAIL_NORMAL** = ``16``
  363. Texture specifying per-pixel detail normal.
  364. .. _class_BaseMaterial3D_constant_TEXTURE_ORM:
  365. .. rst-class:: classref-enumeration-constant
  366. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_ORM** = ``17``
  367. Texture holding ambient occlusion, roughness, and metallic.
  368. .. _class_BaseMaterial3D_constant_TEXTURE_MAX:
  369. .. rst-class:: classref-enumeration-constant
  370. :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` **TEXTURE_MAX** = ``19``
  371. Represents the size of the :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` enum.
  372. .. rst-class:: classref-item-separator
  373. ----
  374. .. _enum_BaseMaterial3D_TextureFilter:
  375. .. rst-class:: classref-enumeration
  376. enum **TextureFilter**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_TextureFilter>`
  377. .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_NEAREST:
  378. .. rst-class:: classref-enumeration-constant
  379. :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **TEXTURE_FILTER_NEAREST** = ``0``
  380. The texture filter reads from the nearest pixel only. This makes the texture look pixelated from up close, and grainy from a distance (due to mipmaps not being sampled).
  381. .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_LINEAR:
  382. .. rst-class:: classref-enumeration-constant
  383. :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **TEXTURE_FILTER_LINEAR** = ``1``
  384. The texture filter blends between the nearest 4 pixels. This makes the texture look smooth from up close, and grainy from a distance (due to mipmaps not being sampled).
  385. .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS:
  386. .. rst-class:: classref-enumeration-constant
  387. :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **TEXTURE_FILTER_NEAREST_WITH_MIPMAPS** = ``2``
  388. The texture filter reads from the nearest pixel and blends between the nearest 2 mipmaps (or uses the nearest mipmap if :ref:`ProjectSettings.rendering/textures/default_filters/use_nearest_mipmap_filter<class_ProjectSettings_property_rendering/textures/default_filters/use_nearest_mipmap_filter>` is ``true``). This makes the texture look pixelated from up close, and smooth from a distance.
  389. .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS:
  390. .. rst-class:: classref-enumeration-constant
  391. :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **TEXTURE_FILTER_LINEAR_WITH_MIPMAPS** = ``3``
  392. The texture filter blends between the nearest 4 pixels and between the nearest 2 mipmaps (or uses the nearest mipmap if :ref:`ProjectSettings.rendering/textures/default_filters/use_nearest_mipmap_filter<class_ProjectSettings_property_rendering/textures/default_filters/use_nearest_mipmap_filter>` is ``true``). This makes the texture look smooth from up close, and smooth from a distance.
  393. .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC:
  394. .. rst-class:: classref-enumeration-constant
  395. :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC** = ``4``
  396. The texture filter reads from the nearest pixel and blends between 2 mipmaps (or uses the nearest mipmap if :ref:`ProjectSettings.rendering/textures/default_filters/use_nearest_mipmap_filter<class_ProjectSettings_property_rendering/textures/default_filters/use_nearest_mipmap_filter>` is ``true``) based on the angle between the surface and the camera view. This makes the texture look pixelated from up close, and smooth from a distance. Anisotropic filtering improves texture quality on surfaces that are almost in line with the camera, but is slightly slower. The anisotropic filtering level can be changed by adjusting :ref:`ProjectSettings.rendering/textures/default_filters/anisotropic_filtering_level<class_ProjectSettings_property_rendering/textures/default_filters/anisotropic_filtering_level>`.
  397. .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC:
  398. .. rst-class:: classref-enumeration-constant
  399. :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC** = ``5``
  400. The texture filter blends between the nearest 4 pixels and blends between 2 mipmaps (or uses the nearest mipmap if :ref:`ProjectSettings.rendering/textures/default_filters/use_nearest_mipmap_filter<class_ProjectSettings_property_rendering/textures/default_filters/use_nearest_mipmap_filter>` is ``true``) based on the angle between the surface and the camera view. This makes the texture look smooth from up close, and smooth from a distance. Anisotropic filtering improves texture quality on surfaces that are almost in line with the camera, but is slightly slower. The anisotropic filtering level can be changed by adjusting :ref:`ProjectSettings.rendering/textures/default_filters/anisotropic_filtering_level<class_ProjectSettings_property_rendering/textures/default_filters/anisotropic_filtering_level>`.
  401. .. _class_BaseMaterial3D_constant_TEXTURE_FILTER_MAX:
  402. .. rst-class:: classref-enumeration-constant
  403. :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **TEXTURE_FILTER_MAX** = ``6``
  404. Represents the size of the :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` enum.
  405. .. rst-class:: classref-item-separator
  406. ----
  407. .. _enum_BaseMaterial3D_DetailUV:
  408. .. rst-class:: classref-enumeration
  409. enum **DetailUV**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_DetailUV>`
  410. .. _class_BaseMaterial3D_constant_DETAIL_UV_1:
  411. .. rst-class:: classref-enumeration-constant
  412. :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` **DETAIL_UV_1** = ``0``
  413. Use ``UV`` with the detail texture.
  414. .. _class_BaseMaterial3D_constant_DETAIL_UV_2:
  415. .. rst-class:: classref-enumeration-constant
  416. :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` **DETAIL_UV_2** = ``1``
  417. Use ``UV2`` with the detail texture.
  418. .. rst-class:: classref-item-separator
  419. ----
  420. .. _enum_BaseMaterial3D_Transparency:
  421. .. rst-class:: classref-enumeration
  422. enum **Transparency**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_Transparency>`
  423. .. _class_BaseMaterial3D_constant_TRANSPARENCY_DISABLED:
  424. .. rst-class:: classref-enumeration-constant
  425. :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **TRANSPARENCY_DISABLED** = ``0``
  426. The material will not use transparency. This is the fastest to render.
  427. .. _class_BaseMaterial3D_constant_TRANSPARENCY_ALPHA:
  428. .. rst-class:: classref-enumeration-constant
  429. :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **TRANSPARENCY_ALPHA** = ``1``
  430. The material will use the texture's alpha values for transparency. This is the slowest to render, and disables shadow casting.
  431. .. _class_BaseMaterial3D_constant_TRANSPARENCY_ALPHA_SCISSOR:
  432. .. rst-class:: classref-enumeration-constant
  433. :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **TRANSPARENCY_ALPHA_SCISSOR** = ``2``
  434. The material will cut off all values below a threshold, the rest will remain opaque. The opaque portions will be rendered in the depth prepass. This is faster to render than alpha blending, but slower than opaque rendering. This also supports casting shadows.
  435. .. _class_BaseMaterial3D_constant_TRANSPARENCY_ALPHA_HASH:
  436. .. rst-class:: classref-enumeration-constant
  437. :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **TRANSPARENCY_ALPHA_HASH** = ``3``
  438. The material will cut off all values below a spatially-deterministic threshold, the rest will remain opaque. This is faster to render than alpha blending, but slower than opaque rendering. This also supports casting shadows. Alpha hashing is suited for hair rendering.
  439. .. _class_BaseMaterial3D_constant_TRANSPARENCY_ALPHA_DEPTH_PRE_PASS:
  440. .. rst-class:: classref-enumeration-constant
  441. :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **TRANSPARENCY_ALPHA_DEPTH_PRE_PASS** = ``4``
  442. The material will use the texture's alpha value for transparency, but will discard fragments with an alpha of less than 0.99 during the depth prepass and fragments with an alpha less than 0.1 during the shadow pass. This also supports casting shadows.
  443. .. _class_BaseMaterial3D_constant_TRANSPARENCY_MAX:
  444. .. rst-class:: classref-enumeration-constant
  445. :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **TRANSPARENCY_MAX** = ``5``
  446. Represents the size of the :ref:`Transparency<enum_BaseMaterial3D_Transparency>` enum.
  447. .. rst-class:: classref-item-separator
  448. ----
  449. .. _enum_BaseMaterial3D_ShadingMode:
  450. .. rst-class:: classref-enumeration
  451. enum **ShadingMode**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_ShadingMode>`
  452. .. _class_BaseMaterial3D_constant_SHADING_MODE_UNSHADED:
  453. .. rst-class:: classref-enumeration-constant
  454. :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` **SHADING_MODE_UNSHADED** = ``0``
  455. The object will not receive shadows. This is the fastest to render, but it disables all interactions with lights.
  456. .. _class_BaseMaterial3D_constant_SHADING_MODE_PER_PIXEL:
  457. .. rst-class:: classref-enumeration-constant
  458. :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` **SHADING_MODE_PER_PIXEL** = ``1``
  459. The object will be shaded per pixel. Useful for realistic shading effects.
  460. .. _class_BaseMaterial3D_constant_SHADING_MODE_PER_VERTEX:
  461. .. rst-class:: classref-enumeration-constant
  462. :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` **SHADING_MODE_PER_VERTEX** = ``2``
  463. The object will be shaded per vertex. Useful when you want cheaper shaders and do not care about visual quality.
  464. .. _class_BaseMaterial3D_constant_SHADING_MODE_MAX:
  465. .. rst-class:: classref-enumeration-constant
  466. :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` **SHADING_MODE_MAX** = ``3``
  467. Represents the size of the :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` enum.
  468. .. rst-class:: classref-item-separator
  469. ----
  470. .. _enum_BaseMaterial3D_Feature:
  471. .. rst-class:: classref-enumeration
  472. enum **Feature**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_Feature>`
  473. .. _class_BaseMaterial3D_constant_FEATURE_EMISSION:
  474. .. rst-class:: classref-enumeration-constant
  475. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_EMISSION** = ``0``
  476. Constant for setting :ref:`emission_enabled<class_BaseMaterial3D_property_emission_enabled>`.
  477. .. _class_BaseMaterial3D_constant_FEATURE_NORMAL_MAPPING:
  478. .. rst-class:: classref-enumeration-constant
  479. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_NORMAL_MAPPING** = ``1``
  480. Constant for setting :ref:`normal_enabled<class_BaseMaterial3D_property_normal_enabled>`.
  481. .. _class_BaseMaterial3D_constant_FEATURE_RIM:
  482. .. rst-class:: classref-enumeration-constant
  483. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_RIM** = ``2``
  484. Constant for setting :ref:`rim_enabled<class_BaseMaterial3D_property_rim_enabled>`.
  485. .. _class_BaseMaterial3D_constant_FEATURE_CLEARCOAT:
  486. .. rst-class:: classref-enumeration-constant
  487. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_CLEARCOAT** = ``3``
  488. Constant for setting :ref:`clearcoat_enabled<class_BaseMaterial3D_property_clearcoat_enabled>`.
  489. .. _class_BaseMaterial3D_constant_FEATURE_ANISOTROPY:
  490. .. rst-class:: classref-enumeration-constant
  491. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_ANISOTROPY** = ``4``
  492. Constant for setting :ref:`anisotropy_enabled<class_BaseMaterial3D_property_anisotropy_enabled>`.
  493. .. _class_BaseMaterial3D_constant_FEATURE_AMBIENT_OCCLUSION:
  494. .. rst-class:: classref-enumeration-constant
  495. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_AMBIENT_OCCLUSION** = ``5``
  496. Constant for setting :ref:`ao_enabled<class_BaseMaterial3D_property_ao_enabled>`.
  497. .. _class_BaseMaterial3D_constant_FEATURE_HEIGHT_MAPPING:
  498. .. rst-class:: classref-enumeration-constant
  499. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_HEIGHT_MAPPING** = ``6``
  500. Constant for setting :ref:`heightmap_enabled<class_BaseMaterial3D_property_heightmap_enabled>`.
  501. .. _class_BaseMaterial3D_constant_FEATURE_SUBSURFACE_SCATTERING:
  502. .. rst-class:: classref-enumeration-constant
  503. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_SUBSURFACE_SCATTERING** = ``7``
  504. Constant for setting :ref:`subsurf_scatter_enabled<class_BaseMaterial3D_property_subsurf_scatter_enabled>`.
  505. .. _class_BaseMaterial3D_constant_FEATURE_SUBSURFACE_TRANSMITTANCE:
  506. .. rst-class:: classref-enumeration-constant
  507. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_SUBSURFACE_TRANSMITTANCE** = ``8``
  508. Constant for setting :ref:`subsurf_scatter_transmittance_enabled<class_BaseMaterial3D_property_subsurf_scatter_transmittance_enabled>`.
  509. .. _class_BaseMaterial3D_constant_FEATURE_BACKLIGHT:
  510. .. rst-class:: classref-enumeration-constant
  511. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_BACKLIGHT** = ``9``
  512. Constant for setting :ref:`backlight_enabled<class_BaseMaterial3D_property_backlight_enabled>`.
  513. .. _class_BaseMaterial3D_constant_FEATURE_REFRACTION:
  514. .. rst-class:: classref-enumeration-constant
  515. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_REFRACTION** = ``10``
  516. Constant for setting :ref:`refraction_enabled<class_BaseMaterial3D_property_refraction_enabled>`.
  517. .. _class_BaseMaterial3D_constant_FEATURE_DETAIL:
  518. .. rst-class:: classref-enumeration-constant
  519. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_DETAIL** = ``11``
  520. Constant for setting :ref:`detail_enabled<class_BaseMaterial3D_property_detail_enabled>`.
  521. .. _class_BaseMaterial3D_constant_FEATURE_BENT_NORMAL_MAPPING:
  522. .. rst-class:: classref-enumeration-constant
  523. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_BENT_NORMAL_MAPPING** = ``12``
  524. Constant for setting :ref:`bent_normal_enabled<class_BaseMaterial3D_property_bent_normal_enabled>`.
  525. .. _class_BaseMaterial3D_constant_FEATURE_MAX:
  526. .. rst-class:: classref-enumeration-constant
  527. :ref:`Feature<enum_BaseMaterial3D_Feature>` **FEATURE_MAX** = ``13``
  528. Represents the size of the :ref:`Feature<enum_BaseMaterial3D_Feature>` enum.
  529. .. rst-class:: classref-item-separator
  530. ----
  531. .. _enum_BaseMaterial3D_BlendMode:
  532. .. rst-class:: classref-enumeration
  533. enum **BlendMode**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_BlendMode>`
  534. .. _class_BaseMaterial3D_constant_BLEND_MODE_MIX:
  535. .. rst-class:: classref-enumeration-constant
  536. :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **BLEND_MODE_MIX** = ``0``
  537. Default blend mode. The color of the object is blended over the background based on the object's alpha value.
  538. .. _class_BaseMaterial3D_constant_BLEND_MODE_ADD:
  539. .. rst-class:: classref-enumeration-constant
  540. :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **BLEND_MODE_ADD** = ``1``
  541. The color of the object is added to the background.
  542. .. _class_BaseMaterial3D_constant_BLEND_MODE_SUB:
  543. .. rst-class:: classref-enumeration-constant
  544. :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **BLEND_MODE_SUB** = ``2``
  545. The color of the object is subtracted from the background.
  546. .. _class_BaseMaterial3D_constant_BLEND_MODE_MUL:
  547. .. rst-class:: classref-enumeration-constant
  548. :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **BLEND_MODE_MUL** = ``3``
  549. The color of the object is multiplied by the background.
  550. .. _class_BaseMaterial3D_constant_BLEND_MODE_PREMULT_ALPHA:
  551. .. rst-class:: classref-enumeration-constant
  552. :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **BLEND_MODE_PREMULT_ALPHA** = ``4``
  553. The color of the object is added to the background and the alpha channel is used to mask out the background. This is effectively a hybrid of the blend mix and add modes, useful for effects like fire where you want the flame to add but the smoke to mix. By default, this works with unshaded materials using premultiplied textures. For shaded materials, use the ``PREMUL_ALPHA_FACTOR`` built-in so that lighting can be modulated as well.
  554. .. rst-class:: classref-item-separator
  555. ----
  556. .. _enum_BaseMaterial3D_AlphaAntiAliasing:
  557. .. rst-class:: classref-enumeration
  558. enum **AlphaAntiAliasing**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_AlphaAntiAliasing>`
  559. .. _class_BaseMaterial3D_constant_ALPHA_ANTIALIASING_OFF:
  560. .. rst-class:: classref-enumeration-constant
  561. :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>` **ALPHA_ANTIALIASING_OFF** = ``0``
  562. Disables Alpha AntiAliasing for the material.
  563. .. _class_BaseMaterial3D_constant_ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE:
  564. .. rst-class:: classref-enumeration-constant
  565. :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>` **ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE** = ``1``
  566. Enables AlphaToCoverage. Alpha values in the material are passed to the AntiAliasing sample mask.
  567. .. _class_BaseMaterial3D_constant_ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE_AND_TO_ONE:
  568. .. rst-class:: classref-enumeration-constant
  569. :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>` **ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE_AND_TO_ONE** = ``2``
  570. Enables AlphaToCoverage and forces all non-zero alpha values to ``1``. Alpha values in the material are passed to the AntiAliasing sample mask.
  571. .. rst-class:: classref-item-separator
  572. ----
  573. .. _enum_BaseMaterial3D_DepthDrawMode:
  574. .. rst-class:: classref-enumeration
  575. enum **DepthDrawMode**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_DepthDrawMode>`
  576. .. _class_BaseMaterial3D_constant_DEPTH_DRAW_OPAQUE_ONLY:
  577. .. rst-class:: classref-enumeration-constant
  578. :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>` **DEPTH_DRAW_OPAQUE_ONLY** = ``0``
  579. Default depth draw mode. Depth is drawn only for opaque objects during the opaque prepass (if any) and during the opaque pass.
  580. .. _class_BaseMaterial3D_constant_DEPTH_DRAW_ALWAYS:
  581. .. rst-class:: classref-enumeration-constant
  582. :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>` **DEPTH_DRAW_ALWAYS** = ``1``
  583. Objects will write to depth during the opaque and the transparent passes. Transparent objects that are close to the camera may obscure other transparent objects behind them.
  584. \ **Note:** This does not influence whether transparent objects are included in the depth prepass or not. For that, see :ref:`Transparency<enum_BaseMaterial3D_Transparency>`.
  585. .. _class_BaseMaterial3D_constant_DEPTH_DRAW_DISABLED:
  586. .. rst-class:: classref-enumeration-constant
  587. :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>` **DEPTH_DRAW_DISABLED** = ``2``
  588. Objects will not write their depth to the depth buffer, even during the depth prepass (if enabled).
  589. .. rst-class:: classref-item-separator
  590. ----
  591. .. _enum_BaseMaterial3D_CullMode:
  592. .. rst-class:: classref-enumeration
  593. enum **CullMode**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_CullMode>`
  594. .. _class_BaseMaterial3D_constant_CULL_BACK:
  595. .. rst-class:: classref-enumeration-constant
  596. :ref:`CullMode<enum_BaseMaterial3D_CullMode>` **CULL_BACK** = ``0``
  597. Default cull mode. The back of the object is culled when not visible. Back face triangles will be culled when facing the camera. This results in only the front side of triangles being drawn. For closed-surface meshes, this means that only the exterior of the mesh will be visible.
  598. .. _class_BaseMaterial3D_constant_CULL_FRONT:
  599. .. rst-class:: classref-enumeration-constant
  600. :ref:`CullMode<enum_BaseMaterial3D_CullMode>` **CULL_FRONT** = ``1``
  601. Front face triangles will be culled when facing the camera. This results in only the back side of triangles being drawn. For closed-surface meshes, this means that the interior of the mesh will be drawn instead of the exterior.
  602. .. _class_BaseMaterial3D_constant_CULL_DISABLED:
  603. .. rst-class:: classref-enumeration-constant
  604. :ref:`CullMode<enum_BaseMaterial3D_CullMode>` **CULL_DISABLED** = ``2``
  605. No face culling is performed; both the front face and back face will be visible.
  606. .. rst-class:: classref-item-separator
  607. ----
  608. .. _enum_BaseMaterial3D_Flags:
  609. .. rst-class:: classref-enumeration
  610. enum **Flags**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_Flags>`
  611. .. _class_BaseMaterial3D_constant_FLAG_DISABLE_DEPTH_TEST:
  612. .. rst-class:: classref-enumeration-constant
  613. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_DISABLE_DEPTH_TEST** = ``0``
  614. Disables the depth test, so this object is drawn on top of all others drawn before it. This puts the object in the transparent draw pass where it is sorted based on distance to camera. Objects drawn after it in the draw order may cover it. This also disables writing to depth.
  615. .. _class_BaseMaterial3D_constant_FLAG_ALBEDO_FROM_VERTEX_COLOR:
  616. .. rst-class:: classref-enumeration-constant
  617. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_ALBEDO_FROM_VERTEX_COLOR** = ``1``
  618. Set ``ALBEDO`` to the per-vertex color specified in the mesh.
  619. .. _class_BaseMaterial3D_constant_FLAG_SRGB_VERTEX_COLOR:
  620. .. rst-class:: classref-enumeration-constant
  621. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_SRGB_VERTEX_COLOR** = ``2``
  622. Vertex colors are considered to be stored in sRGB color space and are converted to linear color space during rendering. See also :ref:`vertex_color_is_srgb<class_BaseMaterial3D_property_vertex_color_is_srgb>`.
  623. \ **Note:** Only effective when using the Forward+ and Mobile rendering methods.
  624. .. _class_BaseMaterial3D_constant_FLAG_USE_POINT_SIZE:
  625. .. rst-class:: classref-enumeration-constant
  626. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_USE_POINT_SIZE** = ``3``
  627. Uses point size to alter the size of primitive points. Also changes the albedo texture lookup to use ``POINT_COORD`` instead of ``UV``.
  628. .. _class_BaseMaterial3D_constant_FLAG_FIXED_SIZE:
  629. .. rst-class:: classref-enumeration-constant
  630. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_FIXED_SIZE** = ``4``
  631. Object is scaled by depth so that it always appears the same size on screen.
  632. .. _class_BaseMaterial3D_constant_FLAG_BILLBOARD_KEEP_SCALE:
  633. .. rst-class:: classref-enumeration-constant
  634. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_BILLBOARD_KEEP_SCALE** = ``5``
  635. 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>`.
  636. .. _class_BaseMaterial3D_constant_FLAG_UV1_USE_TRIPLANAR:
  637. .. rst-class:: classref-enumeration-constant
  638. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_UV1_USE_TRIPLANAR** = ``6``
  639. Use triplanar texture lookup for all texture lookups that would normally use ``UV``.
  640. .. _class_BaseMaterial3D_constant_FLAG_UV2_USE_TRIPLANAR:
  641. .. rst-class:: classref-enumeration-constant
  642. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_UV2_USE_TRIPLANAR** = ``7``
  643. Use triplanar texture lookup for all texture lookups that would normally use ``UV2``.
  644. .. _class_BaseMaterial3D_constant_FLAG_UV1_USE_WORLD_TRIPLANAR:
  645. .. rst-class:: classref-enumeration-constant
  646. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_UV1_USE_WORLD_TRIPLANAR** = ``8``
  647. Use triplanar texture lookup for all texture lookups that would normally use ``UV``.
  648. .. _class_BaseMaterial3D_constant_FLAG_UV2_USE_WORLD_TRIPLANAR:
  649. .. rst-class:: classref-enumeration-constant
  650. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_UV2_USE_WORLD_TRIPLANAR** = ``9``
  651. Use triplanar texture lookup for all texture lookups that would normally use ``UV2``.
  652. .. _class_BaseMaterial3D_constant_FLAG_AO_ON_UV2:
  653. .. rst-class:: classref-enumeration-constant
  654. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_AO_ON_UV2** = ``10``
  655. Use ``UV2`` coordinates to look up from the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>`.
  656. .. _class_BaseMaterial3D_constant_FLAG_EMISSION_ON_UV2:
  657. .. rst-class:: classref-enumeration-constant
  658. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_EMISSION_ON_UV2** = ``11``
  659. Use ``UV2`` coordinates to look up from the :ref:`emission_texture<class_BaseMaterial3D_property_emission_texture>`.
  660. .. _class_BaseMaterial3D_constant_FLAG_ALBEDO_TEXTURE_FORCE_SRGB:
  661. .. rst-class:: classref-enumeration-constant
  662. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_ALBEDO_TEXTURE_FORCE_SRGB** = ``12``
  663. Forces the shader to convert albedo from sRGB space to linear space. See also :ref:`albedo_texture_force_srgb<class_BaseMaterial3D_property_albedo_texture_force_srgb>`.
  664. .. _class_BaseMaterial3D_constant_FLAG_DONT_RECEIVE_SHADOWS:
  665. .. rst-class:: classref-enumeration-constant
  666. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_DONT_RECEIVE_SHADOWS** = ``13``
  667. Disables receiving shadows from other objects.
  668. .. _class_BaseMaterial3D_constant_FLAG_DISABLE_AMBIENT_LIGHT:
  669. .. rst-class:: classref-enumeration-constant
  670. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_DISABLE_AMBIENT_LIGHT** = ``14``
  671. Disables receiving ambient light.
  672. .. _class_BaseMaterial3D_constant_FLAG_USE_SHADOW_TO_OPACITY:
  673. .. rst-class:: classref-enumeration-constant
  674. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_USE_SHADOW_TO_OPACITY** = ``15``
  675. Enables the shadow to opacity feature.
  676. .. _class_BaseMaterial3D_constant_FLAG_USE_TEXTURE_REPEAT:
  677. .. rst-class:: classref-enumeration-constant
  678. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_USE_TEXTURE_REPEAT** = ``16``
  679. 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.
  680. .. _class_BaseMaterial3D_constant_FLAG_INVERT_HEIGHTMAP:
  681. .. rst-class:: classref-enumeration-constant
  682. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_INVERT_HEIGHTMAP** = ``17``
  683. Invert values read from a depth texture to convert them to height values (heightmap).
  684. .. _class_BaseMaterial3D_constant_FLAG_SUBSURFACE_MODE_SKIN:
  685. .. rst-class:: classref-enumeration-constant
  686. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_SUBSURFACE_MODE_SKIN** = ``18``
  687. Enables the skin mode for subsurface scattering which is used to improve the look of subsurface scattering when used for human skin.
  688. .. _class_BaseMaterial3D_constant_FLAG_PARTICLE_TRAILS_MODE:
  689. .. rst-class:: classref-enumeration-constant
  690. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_PARTICLE_TRAILS_MODE** = ``19``
  691. Enables parts of the shader required for :ref:`GPUParticles3D<class_GPUParticles3D>` trails to function. This also requires using a mesh with appropriate skinning, such as :ref:`RibbonTrailMesh<class_RibbonTrailMesh>` or :ref:`TubeTrailMesh<class_TubeTrailMesh>`. Enabling this feature outside of materials used in :ref:`GPUParticles3D<class_GPUParticles3D>` meshes will break material rendering.
  692. .. _class_BaseMaterial3D_constant_FLAG_ALBEDO_TEXTURE_MSDF:
  693. .. rst-class:: classref-enumeration-constant
  694. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_ALBEDO_TEXTURE_MSDF** = ``20``
  695. Enables multichannel signed distance field rendering shader.
  696. .. _class_BaseMaterial3D_constant_FLAG_DISABLE_FOG:
  697. .. rst-class:: classref-enumeration-constant
  698. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_DISABLE_FOG** = ``21``
  699. Disables receiving depth-based or volumetric fog.
  700. .. _class_BaseMaterial3D_constant_FLAG_DISABLE_SPECULAR_OCCLUSION:
  701. .. rst-class:: classref-enumeration-constant
  702. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_DISABLE_SPECULAR_OCCLUSION** = ``22``
  703. Disables specular occlusion.
  704. .. _class_BaseMaterial3D_constant_FLAG_MAX:
  705. .. rst-class:: classref-enumeration-constant
  706. :ref:`Flags<enum_BaseMaterial3D_Flags>` **FLAG_MAX** = ``23``
  707. Represents the size of the :ref:`Flags<enum_BaseMaterial3D_Flags>` enum.
  708. .. rst-class:: classref-item-separator
  709. ----
  710. .. _enum_BaseMaterial3D_DiffuseMode:
  711. .. rst-class:: classref-enumeration
  712. enum **DiffuseMode**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_DiffuseMode>`
  713. .. _class_BaseMaterial3D_constant_DIFFUSE_BURLEY:
  714. .. rst-class:: classref-enumeration-constant
  715. :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` **DIFFUSE_BURLEY** = ``0``
  716. Default diffuse scattering algorithm.
  717. .. _class_BaseMaterial3D_constant_DIFFUSE_LAMBERT:
  718. .. rst-class:: classref-enumeration-constant
  719. :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` **DIFFUSE_LAMBERT** = ``1``
  720. Diffuse scattering ignores roughness.
  721. .. _class_BaseMaterial3D_constant_DIFFUSE_LAMBERT_WRAP:
  722. .. rst-class:: classref-enumeration-constant
  723. :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` **DIFFUSE_LAMBERT_WRAP** = ``2``
  724. Extends Lambert to cover more than 90 degrees when roughness increases.
  725. .. _class_BaseMaterial3D_constant_DIFFUSE_TOON:
  726. .. rst-class:: classref-enumeration-constant
  727. :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` **DIFFUSE_TOON** = ``3``
  728. Uses a hard cut for lighting, with smoothing affected by roughness.
  729. .. rst-class:: classref-item-separator
  730. ----
  731. .. _enum_BaseMaterial3D_SpecularMode:
  732. .. rst-class:: classref-enumeration
  733. enum **SpecularMode**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_SpecularMode>`
  734. .. _class_BaseMaterial3D_constant_SPECULAR_SCHLICK_GGX:
  735. .. rst-class:: classref-enumeration-constant
  736. :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` **SPECULAR_SCHLICK_GGX** = ``0``
  737. Default specular blob.
  738. \ **Note:** Forward+ uses multiscattering for more accurate reflections, although the impact of multiscattering is more noticeable on rough metallic surfaces than on smooth, non-metallic surfaces.
  739. \ **Note:** Mobile and Compatibility don't perform multiscattering for performance reasons. Instead, they perform single scattering, which means rough metallic surfaces may look slightly darker than intended.
  740. .. _class_BaseMaterial3D_constant_SPECULAR_TOON:
  741. .. rst-class:: classref-enumeration-constant
  742. :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` **SPECULAR_TOON** = ``1``
  743. Toon blob which changes size based on roughness.
  744. .. _class_BaseMaterial3D_constant_SPECULAR_DISABLED:
  745. .. rst-class:: classref-enumeration-constant
  746. :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` **SPECULAR_DISABLED** = ``2``
  747. No specular blob. This is slightly faster to render than other specular modes.
  748. .. rst-class:: classref-item-separator
  749. ----
  750. .. _enum_BaseMaterial3D_BillboardMode:
  751. .. rst-class:: classref-enumeration
  752. enum **BillboardMode**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_BillboardMode>`
  753. .. _class_BaseMaterial3D_constant_BILLBOARD_DISABLED:
  754. .. rst-class:: classref-enumeration-constant
  755. :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` **BILLBOARD_DISABLED** = ``0``
  756. Billboard mode is disabled.
  757. .. _class_BaseMaterial3D_constant_BILLBOARD_ENABLED:
  758. .. rst-class:: classref-enumeration-constant
  759. :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` **BILLBOARD_ENABLED** = ``1``
  760. The object's Z axis will always face the camera.
  761. .. _class_BaseMaterial3D_constant_BILLBOARD_FIXED_Y:
  762. .. rst-class:: classref-enumeration-constant
  763. :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` **BILLBOARD_FIXED_Y** = ``2``
  764. The object's X axis will always face the camera.
  765. .. _class_BaseMaterial3D_constant_BILLBOARD_PARTICLES:
  766. .. rst-class:: classref-enumeration-constant
  767. :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` **BILLBOARD_PARTICLES** = ``3``
  768. Used for particle systems when assigned to :ref:`GPUParticles3D<class_GPUParticles3D>` and :ref:`CPUParticles3D<class_CPUParticles3D>` nodes (flipbook animation). Enables ``particles_anim_*`` properties.
  769. The :ref:`ParticleProcessMaterial.anim_speed_min<class_ParticleProcessMaterial_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.
  770. .. rst-class:: classref-item-separator
  771. ----
  772. .. _enum_BaseMaterial3D_TextureChannel:
  773. .. rst-class:: classref-enumeration
  774. enum **TextureChannel**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_TextureChannel>`
  775. .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_RED:
  776. .. rst-class:: classref-enumeration-constant
  777. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **TEXTURE_CHANNEL_RED** = ``0``
  778. Used to read from the red channel of a texture.
  779. .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_GREEN:
  780. .. rst-class:: classref-enumeration-constant
  781. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **TEXTURE_CHANNEL_GREEN** = ``1``
  782. Used to read from the green channel of a texture.
  783. .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_BLUE:
  784. .. rst-class:: classref-enumeration-constant
  785. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **TEXTURE_CHANNEL_BLUE** = ``2``
  786. Used to read from the blue channel of a texture.
  787. .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_ALPHA:
  788. .. rst-class:: classref-enumeration-constant
  789. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **TEXTURE_CHANNEL_ALPHA** = ``3``
  790. Used to read from the alpha channel of a texture.
  791. .. _class_BaseMaterial3D_constant_TEXTURE_CHANNEL_GRAYSCALE:
  792. .. rst-class:: classref-enumeration-constant
  793. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **TEXTURE_CHANNEL_GRAYSCALE** = ``4``
  794. Used to read from the linear (non-perceptual) average of the red, green and blue channels of a texture.
  795. .. rst-class:: classref-item-separator
  796. ----
  797. .. _enum_BaseMaterial3D_EmissionOperator:
  798. .. rst-class:: classref-enumeration
  799. enum **EmissionOperator**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_EmissionOperator>`
  800. .. _class_BaseMaterial3D_constant_EMISSION_OP_ADD:
  801. .. rst-class:: classref-enumeration-constant
  802. :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>` **EMISSION_OP_ADD** = ``0``
  803. Adds the emission color to the color from the emission texture.
  804. .. _class_BaseMaterial3D_constant_EMISSION_OP_MULTIPLY:
  805. .. rst-class:: classref-enumeration-constant
  806. :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>` **EMISSION_OP_MULTIPLY** = ``1``
  807. Multiplies the emission color by the color from the emission texture.
  808. .. rst-class:: classref-item-separator
  809. ----
  810. .. _enum_BaseMaterial3D_DistanceFadeMode:
  811. .. rst-class:: classref-enumeration
  812. enum **DistanceFadeMode**: :ref:`๐Ÿ”—<enum_BaseMaterial3D_DistanceFadeMode>`
  813. .. _class_BaseMaterial3D_constant_DISTANCE_FADE_DISABLED:
  814. .. rst-class:: classref-enumeration-constant
  815. :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` **DISTANCE_FADE_DISABLED** = ``0``
  816. Do not use distance fade.
  817. .. _class_BaseMaterial3D_constant_DISTANCE_FADE_PIXEL_ALPHA:
  818. .. rst-class:: classref-enumeration-constant
  819. :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` **DISTANCE_FADE_PIXEL_ALPHA** = ``1``
  820. Smoothly fades the object out based on each pixel's distance from the camera using the alpha channel.
  821. .. _class_BaseMaterial3D_constant_DISTANCE_FADE_PIXEL_DITHER:
  822. .. rst-class:: classref-enumeration-constant
  823. :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` **DISTANCE_FADE_PIXEL_DITHER** = ``2``
  824. Smoothly fades the object out based on each pixel's distance from the camera using a dithering 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>`.
  825. .. _class_BaseMaterial3D_constant_DISTANCE_FADE_OBJECT_DITHER:
  826. .. rst-class:: classref-enumeration-constant
  827. :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` **DISTANCE_FADE_OBJECT_DITHER** = ``3``
  828. Smoothly fades the object out based on the object's distance from the camera using a dithering 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>` and :ref:`DISTANCE_FADE_PIXEL_DITHER<class_BaseMaterial3D_constant_DISTANCE_FADE_PIXEL_DITHER>`.
  829. .. rst-class:: classref-section-separator
  830. ----
  831. .. rst-class:: classref-descriptions-group
  832. Property Descriptions
  833. ---------------------
  834. .. _class_BaseMaterial3D_property_albedo_color:
  835. .. rst-class:: classref-property
  836. :ref:`Color<class_Color>` **albedo_color** = ``Color(1, 1, 1, 1)`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_albedo_color>`
  837. .. rst-class:: classref-property-setget
  838. - |void| **set_albedo**\ (\ value\: :ref:`Color<class_Color>`\ )
  839. - :ref:`Color<class_Color>` **get_albedo**\ (\ )
  840. The material's base color.
  841. \ **Note:** If :ref:`detail_enabled<class_BaseMaterial3D_property_detail_enabled>` is ``true`` and a :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>` texture is specified, :ref:`albedo_color<class_BaseMaterial3D_property_albedo_color>` will *not* modulate the detail texture. This can be used to color partial areas of a material by not specifying an albedo texture and using a transparent :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>` texture instead.
  842. .. rst-class:: classref-item-separator
  843. ----
  844. .. _class_BaseMaterial3D_property_albedo_texture:
  845. .. rst-class:: classref-property
  846. :ref:`Texture2D<class_Texture2D>` **albedo_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_albedo_texture>`
  847. .. rst-class:: classref-property-setget
  848. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  849. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  850. Texture to multiply by :ref:`albedo_color<class_BaseMaterial3D_property_albedo_color>`. Used for basic texturing of objects.
  851. If the texture appears unexpectedly too dark or too bright, check :ref:`albedo_texture_force_srgb<class_BaseMaterial3D_property_albedo_texture_force_srgb>`.
  852. .. rst-class:: classref-item-separator
  853. ----
  854. .. _class_BaseMaterial3D_property_albedo_texture_force_srgb:
  855. .. rst-class:: classref-property
  856. :ref:`bool<class_bool>` **albedo_texture_force_srgb** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_albedo_texture_force_srgb>`
  857. .. rst-class:: classref-property-setget
  858. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  859. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  860. If ``true``, forces a conversion of the :ref:`albedo_texture<class_BaseMaterial3D_property_albedo_texture>` from sRGB color space to linear color space. See also :ref:`vertex_color_is_srgb<class_BaseMaterial3D_property_vertex_color_is_srgb>`.
  861. This should only be enabled when needed (typically when using a :ref:`ViewportTexture<class_ViewportTexture>` as :ref:`albedo_texture<class_BaseMaterial3D_property_albedo_texture>`). If :ref:`albedo_texture_force_srgb<class_BaseMaterial3D_property_albedo_texture_force_srgb>` is ``true`` when it shouldn't be, the texture will appear to be too dark. If :ref:`albedo_texture_force_srgb<class_BaseMaterial3D_property_albedo_texture_force_srgb>` is ``false`` when it shouldn't be, the texture will appear to be too bright.
  862. .. rst-class:: classref-item-separator
  863. ----
  864. .. _class_BaseMaterial3D_property_albedo_texture_msdf:
  865. .. rst-class:: classref-property
  866. :ref:`bool<class_bool>` **albedo_texture_msdf** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_albedo_texture_msdf>`
  867. .. rst-class:: classref-property-setget
  868. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  869. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  870. Enables multichannel signed distance field rendering shader. Use :ref:`msdf_pixel_range<class_BaseMaterial3D_property_msdf_pixel_range>` and :ref:`msdf_outline_size<class_BaseMaterial3D_property_msdf_outline_size>` to configure MSDF parameters.
  871. .. rst-class:: classref-item-separator
  872. ----
  873. .. _class_BaseMaterial3D_property_alpha_antialiasing_edge:
  874. .. rst-class:: classref-property
  875. :ref:`float<class_float>` **alpha_antialiasing_edge** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_alpha_antialiasing_edge>`
  876. .. rst-class:: classref-property-setget
  877. - |void| **set_alpha_antialiasing_edge**\ (\ value\: :ref:`float<class_float>`\ )
  878. - :ref:`float<class_float>` **get_alpha_antialiasing_edge**\ (\ )
  879. Threshold at which antialiasing will be applied on the alpha channel.
  880. .. rst-class:: classref-item-separator
  881. ----
  882. .. _class_BaseMaterial3D_property_alpha_antialiasing_mode:
  883. .. rst-class:: classref-property
  884. :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>` **alpha_antialiasing_mode** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_alpha_antialiasing_mode>`
  885. .. rst-class:: classref-property-setget
  886. - |void| **set_alpha_antialiasing**\ (\ value\: :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>`\ )
  887. - :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>` **get_alpha_antialiasing**\ (\ )
  888. The type of alpha antialiasing to apply. See :ref:`AlphaAntiAliasing<enum_BaseMaterial3D_AlphaAntiAliasing>`.
  889. .. rst-class:: classref-item-separator
  890. ----
  891. .. _class_BaseMaterial3D_property_alpha_hash_scale:
  892. .. rst-class:: classref-property
  893. :ref:`float<class_float>` **alpha_hash_scale** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_alpha_hash_scale>`
  894. .. rst-class:: classref-property-setget
  895. - |void| **set_alpha_hash_scale**\ (\ value\: :ref:`float<class_float>`\ )
  896. - :ref:`float<class_float>` **get_alpha_hash_scale**\ (\ )
  897. The hashing scale for Alpha Hash. Recommended values between ``0`` and ``2``.
  898. .. rst-class:: classref-item-separator
  899. ----
  900. .. _class_BaseMaterial3D_property_alpha_scissor_threshold:
  901. .. rst-class:: classref-property
  902. :ref:`float<class_float>` **alpha_scissor_threshold** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_alpha_scissor_threshold>`
  903. .. rst-class:: classref-property-setget
  904. - |void| **set_alpha_scissor_threshold**\ (\ value\: :ref:`float<class_float>`\ )
  905. - :ref:`float<class_float>` **get_alpha_scissor_threshold**\ (\ )
  906. Threshold at which the alpha scissor will discard values. Higher values will result in more pixels being discarded. If the material becomes too opaque at a distance, try increasing :ref:`alpha_scissor_threshold<class_BaseMaterial3D_property_alpha_scissor_threshold>`. If the material disappears at a distance, try decreasing :ref:`alpha_scissor_threshold<class_BaseMaterial3D_property_alpha_scissor_threshold>`.
  907. .. rst-class:: classref-item-separator
  908. ----
  909. .. _class_BaseMaterial3D_property_anisotropy:
  910. .. rst-class:: classref-property
  911. :ref:`float<class_float>` **anisotropy** = ``0.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_anisotropy>`
  912. .. rst-class:: classref-property-setget
  913. - |void| **set_anisotropy**\ (\ value\: :ref:`float<class_float>`\ )
  914. - :ref:`float<class_float>` **get_anisotropy**\ (\ )
  915. The strength of the anisotropy effect. This is multiplied by :ref:`anisotropy_flowmap<class_BaseMaterial3D_property_anisotropy_flowmap>`'s alpha channel if a texture is defined there and the texture contains an alpha channel.
  916. .. rst-class:: classref-item-separator
  917. ----
  918. .. _class_BaseMaterial3D_property_anisotropy_enabled:
  919. .. rst-class:: classref-property
  920. :ref:`bool<class_bool>` **anisotropy_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_anisotropy_enabled>`
  921. .. rst-class:: classref-property-setget
  922. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  923. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  924. If ``true``, anisotropy is enabled. Anisotropy changes the shape of the specular blob and aligns it to tangent space. This is useful for brushed aluminum and hair reflections.
  925. \ **Note:** Mesh tangents are needed for anisotropy to work. If the mesh does not contain tangents, the anisotropy effect will appear broken.
  926. \ **Note:** Material anisotropy should not to be confused with anisotropic texture filtering, which can be enabled by setting :ref:`texture_filter<class_BaseMaterial3D_property_texture_filter>` to :ref:`TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC<class_BaseMaterial3D_constant_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC>`.
  927. .. rst-class:: classref-item-separator
  928. ----
  929. .. _class_BaseMaterial3D_property_anisotropy_flowmap:
  930. .. rst-class:: classref-property
  931. :ref:`Texture2D<class_Texture2D>` **anisotropy_flowmap** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_anisotropy_flowmap>`
  932. .. rst-class:: classref-property-setget
  933. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  934. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  935. Texture that offsets the tangent map for anisotropy calculations and optionally controls the anisotropy effect (if an alpha channel is present). The flowmap texture is expected to be a derivative map, with the red channel representing distortion on the X axis and green channel representing distortion on the Y axis. Values below 0.5 will result in negative distortion, whereas values above 0.5 will result in positive distortion.
  936. If present, the texture's alpha channel will be used to multiply the strength of the :ref:`anisotropy<class_BaseMaterial3D_property_anisotropy>` effect. Fully opaque pixels will keep the anisotropy effect's original strength while fully transparent pixels will disable the anisotropy effect entirely. The flowmap texture's blue channel is ignored.
  937. .. rst-class:: classref-item-separator
  938. ----
  939. .. _class_BaseMaterial3D_property_ao_enabled:
  940. .. rst-class:: classref-property
  941. :ref:`bool<class_bool>` **ao_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_ao_enabled>`
  942. .. rst-class:: classref-property-setget
  943. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  944. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  945. If ``true``, ambient occlusion is enabled. Ambient occlusion darkens areas based on the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>`.
  946. .. rst-class:: classref-item-separator
  947. ----
  948. .. _class_BaseMaterial3D_property_ao_light_affect:
  949. .. rst-class:: classref-property
  950. :ref:`float<class_float>` **ao_light_affect** = ``0.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_ao_light_affect>`
  951. .. rst-class:: classref-property-setget
  952. - |void| **set_ao_light_affect**\ (\ value\: :ref:`float<class_float>`\ )
  953. - :ref:`float<class_float>` **get_ao_light_affect**\ (\ )
  954. 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.
  955. .. rst-class:: classref-item-separator
  956. ----
  957. .. _class_BaseMaterial3D_property_ao_on_uv2:
  958. .. rst-class:: classref-property
  959. :ref:`bool<class_bool>` **ao_on_uv2** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_ao_on_uv2>`
  960. .. rst-class:: classref-property-setget
  961. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  962. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  963. If ``true``, use ``UV2`` coordinates to look up from the :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>`.
  964. .. rst-class:: classref-item-separator
  965. ----
  966. .. _class_BaseMaterial3D_property_ao_texture:
  967. .. rst-class:: classref-property
  968. :ref:`Texture2D<class_Texture2D>` **ao_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_ao_texture>`
  969. .. rst-class:: classref-property-setget
  970. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  971. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  972. Texture that defines the amount of ambient occlusion for a given point on the object.
  973. .. rst-class:: classref-item-separator
  974. ----
  975. .. _class_BaseMaterial3D_property_ao_texture_channel:
  976. .. rst-class:: classref-property
  977. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **ao_texture_channel** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_ao_texture_channel>`
  978. .. rst-class:: classref-property-setget
  979. - |void| **set_ao_texture_channel**\ (\ value\: :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>`\ )
  980. - :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **get_ao_texture_channel**\ (\ )
  981. 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.
  982. .. rst-class:: classref-item-separator
  983. ----
  984. .. _class_BaseMaterial3D_property_backlight:
  985. .. rst-class:: classref-property
  986. :ref:`Color<class_Color>` **backlight** = ``Color(0, 0, 0, 1)`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_backlight>`
  987. .. rst-class:: classref-property-setget
  988. - |void| **set_backlight**\ (\ value\: :ref:`Color<class_Color>`\ )
  989. - :ref:`Color<class_Color>` **get_backlight**\ (\ )
  990. The color used by the backlight effect. Represents the light passing through an object.
  991. .. rst-class:: classref-item-separator
  992. ----
  993. .. _class_BaseMaterial3D_property_backlight_enabled:
  994. .. rst-class:: classref-property
  995. :ref:`bool<class_bool>` **backlight_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_backlight_enabled>`
  996. .. rst-class:: classref-property-setget
  997. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  998. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  999. If ``true``, the backlight effect is enabled. See also :ref:`subsurf_scatter_transmittance_enabled<class_BaseMaterial3D_property_subsurf_scatter_transmittance_enabled>`.
  1000. .. rst-class:: classref-item-separator
  1001. ----
  1002. .. _class_BaseMaterial3D_property_backlight_texture:
  1003. .. rst-class:: classref-property
  1004. :ref:`Texture2D<class_Texture2D>` **backlight_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_backlight_texture>`
  1005. .. rst-class:: classref-property-setget
  1006. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1007. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1008. Texture used to control the backlight effect per-pixel. Added to :ref:`backlight<class_BaseMaterial3D_property_backlight>`.
  1009. .. rst-class:: classref-item-separator
  1010. ----
  1011. .. _class_BaseMaterial3D_property_bent_normal_enabled:
  1012. .. rst-class:: classref-property
  1013. :ref:`bool<class_bool>` **bent_normal_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_bent_normal_enabled>`
  1014. .. rst-class:: classref-property-setget
  1015. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1016. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1017. If ``true``, the bent normal map is enabled. This allows for more accurate indirect lighting and specular occlusion.
  1018. .. rst-class:: classref-item-separator
  1019. ----
  1020. .. _class_BaseMaterial3D_property_bent_normal_texture:
  1021. .. rst-class:: classref-property
  1022. :ref:`Texture2D<class_Texture2D>` **bent_normal_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_bent_normal_texture>`
  1023. .. rst-class:: classref-property-setget
  1024. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1025. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1026. Texture that specifies the average direction of incoming ambient light at a given pixel. The :ref:`bent_normal_texture<class_BaseMaterial3D_property_bent_normal_texture>` only uses the red and green channels; the blue and alpha channels are ignored. The normal read from :ref:`bent_normal_texture<class_BaseMaterial3D_property_bent_normal_texture>` is oriented around the surface normal provided by the :ref:`Mesh<class_Mesh>`.
  1027. \ **Note:** A bent normal map is different from a regular normal map. When baking a bent normal map make sure to use **a cosine distribution** for the bent normal map to work correctly.
  1028. \ **Note:** The mesh must have both normals and tangents defined in its vertex data. Otherwise, the shading produced by the bent normal map will not look correct. 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.
  1029. \ **Note:** Godot expects the bent 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.
  1030. .. rst-class:: classref-item-separator
  1031. ----
  1032. .. _class_BaseMaterial3D_property_billboard_keep_scale:
  1033. .. rst-class:: classref-property
  1034. :ref:`bool<class_bool>` **billboard_keep_scale** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_billboard_keep_scale>`
  1035. .. rst-class:: classref-property-setget
  1036. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1037. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1038. 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 not :ref:`BILLBOARD_DISABLED<class_BaseMaterial3D_constant_BILLBOARD_DISABLED>`.
  1039. .. rst-class:: classref-item-separator
  1040. ----
  1041. .. _class_BaseMaterial3D_property_billboard_mode:
  1042. .. rst-class:: classref-property
  1043. :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` **billboard_mode** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_billboard_mode>`
  1044. .. rst-class:: classref-property-setget
  1045. - |void| **set_billboard_mode**\ (\ value\: :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>`\ )
  1046. - :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>` **get_billboard_mode**\ (\ )
  1047. Controls how the object faces the camera. See :ref:`BillboardMode<enum_BaseMaterial3D_BillboardMode>`.
  1048. \ **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.
  1049. .. rst-class:: classref-item-separator
  1050. ----
  1051. .. _class_BaseMaterial3D_property_blend_mode:
  1052. .. rst-class:: classref-property
  1053. :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **blend_mode** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_blend_mode>`
  1054. .. rst-class:: classref-property-setget
  1055. - |void| **set_blend_mode**\ (\ value\: :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>`\ )
  1056. - :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **get_blend_mode**\ (\ )
  1057. The material's blend mode.
  1058. \ **Note:** Values other than ``Mix`` force the object into the transparent pipeline. See :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>`.
  1059. .. rst-class:: classref-item-separator
  1060. ----
  1061. .. _class_BaseMaterial3D_property_clearcoat:
  1062. .. rst-class:: classref-property
  1063. :ref:`float<class_float>` **clearcoat** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_clearcoat>`
  1064. .. rst-class:: classref-property-setget
  1065. - |void| **set_clearcoat**\ (\ value\: :ref:`float<class_float>`\ )
  1066. - :ref:`float<class_float>` **get_clearcoat**\ (\ )
  1067. Sets the strength of the clearcoat effect. Setting to ``0`` looks the same as disabling the clearcoat effect.
  1068. .. rst-class:: classref-item-separator
  1069. ----
  1070. .. _class_BaseMaterial3D_property_clearcoat_enabled:
  1071. .. rst-class:: classref-property
  1072. :ref:`bool<class_bool>` **clearcoat_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_clearcoat_enabled>`
  1073. .. rst-class:: classref-property-setget
  1074. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1075. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1076. 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.
  1077. \ **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>`.
  1078. .. rst-class:: classref-item-separator
  1079. ----
  1080. .. _class_BaseMaterial3D_property_clearcoat_roughness:
  1081. .. rst-class:: classref-property
  1082. :ref:`float<class_float>` **clearcoat_roughness** = ``0.5`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_clearcoat_roughness>`
  1083. .. rst-class:: classref-property-setget
  1084. - |void| **set_clearcoat_roughness**\ (\ value\: :ref:`float<class_float>`\ )
  1085. - :ref:`float<class_float>` **get_clearcoat_roughness**\ (\ )
  1086. Sets the roughness of the clearcoat pass. A higher value results in a rougher clearcoat while a lower value results in a smoother clearcoat.
  1087. .. rst-class:: classref-item-separator
  1088. ----
  1089. .. _class_BaseMaterial3D_property_clearcoat_texture:
  1090. .. rst-class:: classref-property
  1091. :ref:`Texture2D<class_Texture2D>` **clearcoat_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_clearcoat_texture>`
  1092. .. rst-class:: classref-property-setget
  1093. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1094. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1095. 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.
  1096. .. rst-class:: classref-item-separator
  1097. ----
  1098. .. _class_BaseMaterial3D_property_cull_mode:
  1099. .. rst-class:: classref-property
  1100. :ref:`CullMode<enum_BaseMaterial3D_CullMode>` **cull_mode** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_cull_mode>`
  1101. .. rst-class:: classref-property-setget
  1102. - |void| **set_cull_mode**\ (\ value\: :ref:`CullMode<enum_BaseMaterial3D_CullMode>`\ )
  1103. - :ref:`CullMode<enum_BaseMaterial3D_CullMode>` **get_cull_mode**\ (\ )
  1104. Determines which side of the triangle to cull depending on whether the triangle faces towards or away from the camera. See :ref:`CullMode<enum_BaseMaterial3D_CullMode>`.
  1105. .. rst-class:: classref-item-separator
  1106. ----
  1107. .. _class_BaseMaterial3D_property_depth_draw_mode:
  1108. .. rst-class:: classref-property
  1109. :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>` **depth_draw_mode** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_depth_draw_mode>`
  1110. .. rst-class:: classref-property-setget
  1111. - |void| **set_depth_draw_mode**\ (\ value\: :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>`\ )
  1112. - :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>` **get_depth_draw_mode**\ (\ )
  1113. Determines when depth rendering takes place. See :ref:`DepthDrawMode<enum_BaseMaterial3D_DepthDrawMode>`. See also :ref:`transparency<class_BaseMaterial3D_property_transparency>`.
  1114. .. rst-class:: classref-item-separator
  1115. ----
  1116. .. _class_BaseMaterial3D_property_detail_albedo:
  1117. .. rst-class:: classref-property
  1118. :ref:`Texture2D<class_Texture2D>` **detail_albedo** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_detail_albedo>`
  1119. .. rst-class:: classref-property-setget
  1120. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1121. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1122. Texture that specifies the color of the detail overlay. :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>`'s alpha channel is used as a mask, even when the material is opaque. To use a dedicated texture as a mask, see :ref:`detail_mask<class_BaseMaterial3D_property_detail_mask>`.
  1123. \ **Note:** :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>` is *not* modulated by :ref:`albedo_color<class_BaseMaterial3D_property_albedo_color>`.
  1124. .. rst-class:: classref-item-separator
  1125. ----
  1126. .. _class_BaseMaterial3D_property_detail_blend_mode:
  1127. .. rst-class:: classref-property
  1128. :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **detail_blend_mode** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_detail_blend_mode>`
  1129. .. rst-class:: classref-property-setget
  1130. - |void| **set_detail_blend_mode**\ (\ value\: :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>`\ )
  1131. - :ref:`BlendMode<enum_BaseMaterial3D_BlendMode>` **get_detail_blend_mode**\ (\ )
  1132. 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.
  1133. .. rst-class:: classref-item-separator
  1134. ----
  1135. .. _class_BaseMaterial3D_property_detail_enabled:
  1136. .. rst-class:: classref-property
  1137. :ref:`bool<class_bool>` **detail_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_detail_enabled>`
  1138. .. rst-class:: classref-property-setget
  1139. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1140. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1141. 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>` and :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>`'s alpha channel. This can be used to add variation to objects, or to blend between two different albedo/normal textures.
  1142. .. rst-class:: classref-item-separator
  1143. ----
  1144. .. _class_BaseMaterial3D_property_detail_mask:
  1145. .. rst-class:: classref-property
  1146. :ref:`Texture2D<class_Texture2D>` **detail_mask** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_detail_mask>`
  1147. .. rst-class:: classref-property-setget
  1148. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1149. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1150. Texture used to specify how the detail textures get blended with the base textures. :ref:`detail_mask<class_BaseMaterial3D_property_detail_mask>` can be used together with :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>`'s alpha channel (if any).
  1151. .. rst-class:: classref-item-separator
  1152. ----
  1153. .. _class_BaseMaterial3D_property_detail_normal:
  1154. .. rst-class:: classref-property
  1155. :ref:`Texture2D<class_Texture2D>` **detail_normal** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_detail_normal>`
  1156. .. rst-class:: classref-property-setget
  1157. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1158. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1159. Texture that specifies the per-pixel normal of the detail overlay. The :ref:`detail_normal<class_BaseMaterial3D_property_detail_normal>` texture only uses the red and green channels; the blue and alpha channels are ignored. The normal read from :ref:`detail_normal<class_BaseMaterial3D_property_detail_normal>` is oriented around the surface normal provided by the :ref:`Mesh<class_Mesh>`.
  1160. \ **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.
  1161. .. rst-class:: classref-item-separator
  1162. ----
  1163. .. _class_BaseMaterial3D_property_detail_uv_layer:
  1164. .. rst-class:: classref-property
  1165. :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` **detail_uv_layer** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_detail_uv_layer>`
  1166. .. rst-class:: classref-property-setget
  1167. - |void| **set_detail_uv**\ (\ value\: :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>`\ )
  1168. - :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` **get_detail_uv**\ (\ )
  1169. Specifies whether to use ``UV`` or ``UV2`` for the detail layer. See :ref:`DetailUV<enum_BaseMaterial3D_DetailUV>` for options.
  1170. .. rst-class:: classref-item-separator
  1171. ----
  1172. .. _class_BaseMaterial3D_property_diffuse_mode:
  1173. .. rst-class:: classref-property
  1174. :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` **diffuse_mode** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_diffuse_mode>`
  1175. .. rst-class:: classref-property-setget
  1176. - |void| **set_diffuse_mode**\ (\ value\: :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>`\ )
  1177. - :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>` **get_diffuse_mode**\ (\ )
  1178. The algorithm used for diffuse light scattering. See :ref:`DiffuseMode<enum_BaseMaterial3D_DiffuseMode>`.
  1179. .. rst-class:: classref-item-separator
  1180. ----
  1181. .. _class_BaseMaterial3D_property_disable_ambient_light:
  1182. .. rst-class:: classref-property
  1183. :ref:`bool<class_bool>` **disable_ambient_light** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_disable_ambient_light>`
  1184. .. rst-class:: classref-property-setget
  1185. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1186. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1187. If ``true``, the object receives no ambient light.
  1188. .. rst-class:: classref-item-separator
  1189. ----
  1190. .. _class_BaseMaterial3D_property_disable_fog:
  1191. .. rst-class:: classref-property
  1192. :ref:`bool<class_bool>` **disable_fog** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_disable_fog>`
  1193. .. rst-class:: classref-property-setget
  1194. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1195. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1196. If ``true``, the object will not be affected by fog (neither volumetric nor depth fog). This is useful for unshaded or transparent materials (e.g. particles), which without this setting will be affected even if fully transparent.
  1197. .. rst-class:: classref-item-separator
  1198. ----
  1199. .. _class_BaseMaterial3D_property_disable_receive_shadows:
  1200. .. rst-class:: classref-property
  1201. :ref:`bool<class_bool>` **disable_receive_shadows** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_disable_receive_shadows>`
  1202. .. rst-class:: classref-property-setget
  1203. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1204. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1205. If ``true``, the object receives no shadow that would otherwise be cast onto it.
  1206. .. rst-class:: classref-item-separator
  1207. ----
  1208. .. _class_BaseMaterial3D_property_disable_specular_occlusion:
  1209. .. rst-class:: classref-property
  1210. :ref:`bool<class_bool>` **disable_specular_occlusion** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_disable_specular_occlusion>`
  1211. .. rst-class:: classref-property-setget
  1212. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1213. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1214. If ``true``, disables specular occlusion even if :ref:`ProjectSettings.rendering/reflections/specular_occlusion/enabled<class_ProjectSettings_property_rendering/reflections/specular_occlusion/enabled>` is ``false``.
  1215. .. rst-class:: classref-item-separator
  1216. ----
  1217. .. _class_BaseMaterial3D_property_distance_fade_max_distance:
  1218. .. rst-class:: classref-property
  1219. :ref:`float<class_float>` **distance_fade_max_distance** = ``10.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_distance_fade_max_distance>`
  1220. .. rst-class:: classref-property-setget
  1221. - |void| **set_distance_fade_max_distance**\ (\ value\: :ref:`float<class_float>`\ )
  1222. - :ref:`float<class_float>` **get_distance_fade_max_distance**\ (\ )
  1223. Distance at which the object appears fully opaque.
  1224. \ **Note:** If :ref:`distance_fade_max_distance<class_BaseMaterial3D_property_distance_fade_max_distance>` is less than :ref:`distance_fade_min_distance<class_BaseMaterial3D_property_distance_fade_min_distance>`, the behavior will be reversed. The object will start to fade away at :ref:`distance_fade_max_distance<class_BaseMaterial3D_property_distance_fade_max_distance>` and will fully disappear once it reaches :ref:`distance_fade_min_distance<class_BaseMaterial3D_property_distance_fade_min_distance>`.
  1225. .. rst-class:: classref-item-separator
  1226. ----
  1227. .. _class_BaseMaterial3D_property_distance_fade_min_distance:
  1228. .. rst-class:: classref-property
  1229. :ref:`float<class_float>` **distance_fade_min_distance** = ``0.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_distance_fade_min_distance>`
  1230. .. rst-class:: classref-property-setget
  1231. - |void| **set_distance_fade_min_distance**\ (\ value\: :ref:`float<class_float>`\ )
  1232. - :ref:`float<class_float>` **get_distance_fade_min_distance**\ (\ )
  1233. Distance at which the object starts to become visible. If the object is less than this distance away, it will be invisible.
  1234. \ **Note:** If :ref:`distance_fade_min_distance<class_BaseMaterial3D_property_distance_fade_min_distance>` is greater than :ref:`distance_fade_max_distance<class_BaseMaterial3D_property_distance_fade_max_distance>`, the behavior will be reversed. The object will start to fade away at :ref:`distance_fade_max_distance<class_BaseMaterial3D_property_distance_fade_max_distance>` and will fully disappear once it reaches :ref:`distance_fade_min_distance<class_BaseMaterial3D_property_distance_fade_min_distance>`.
  1235. .. rst-class:: classref-item-separator
  1236. ----
  1237. .. _class_BaseMaterial3D_property_distance_fade_mode:
  1238. .. rst-class:: classref-property
  1239. :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` **distance_fade_mode** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_distance_fade_mode>`
  1240. .. rst-class:: classref-property-setget
  1241. - |void| **set_distance_fade**\ (\ value\: :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>`\ )
  1242. - :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>` **get_distance_fade**\ (\ )
  1243. Specifies which type of fade to use. Can be any of the :ref:`DistanceFadeMode<enum_BaseMaterial3D_DistanceFadeMode>`\ s.
  1244. .. rst-class:: classref-item-separator
  1245. ----
  1246. .. _class_BaseMaterial3D_property_emission:
  1247. .. rst-class:: classref-property
  1248. :ref:`Color<class_Color>` **emission** = ``Color(0, 0, 0, 1)`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_emission>`
  1249. .. rst-class:: classref-property-setget
  1250. - |void| **set_emission**\ (\ value\: :ref:`Color<class_Color>`\ )
  1251. - :ref:`Color<class_Color>` **get_emission**\ (\ )
  1252. The emitted light's color. See :ref:`emission_enabled<class_BaseMaterial3D_property_emission_enabled>`.
  1253. .. rst-class:: classref-item-separator
  1254. ----
  1255. .. _class_BaseMaterial3D_property_emission_enabled:
  1256. .. rst-class:: classref-property
  1257. :ref:`bool<class_bool>` **emission_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_emission_enabled>`
  1258. .. rst-class:: classref-property-setget
  1259. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1260. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1261. 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>`, SDFGI, or :ref:`LightmapGI<class_LightmapGI>` is used and this object is used in baked lighting.
  1262. .. rst-class:: classref-item-separator
  1263. ----
  1264. .. _class_BaseMaterial3D_property_emission_energy_multiplier:
  1265. .. rst-class:: classref-property
  1266. :ref:`float<class_float>` **emission_energy_multiplier** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_emission_energy_multiplier>`
  1267. .. rst-class:: classref-property-setget
  1268. - |void| **set_emission_energy_multiplier**\ (\ value\: :ref:`float<class_float>`\ )
  1269. - :ref:`float<class_float>` **get_emission_energy_multiplier**\ (\ )
  1270. Multiplier for emitted light. See :ref:`emission_enabled<class_BaseMaterial3D_property_emission_enabled>`.
  1271. .. rst-class:: classref-item-separator
  1272. ----
  1273. .. _class_BaseMaterial3D_property_emission_intensity:
  1274. .. rst-class:: classref-property
  1275. :ref:`float<class_float>` **emission_intensity** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_emission_intensity>`
  1276. .. rst-class:: classref-property-setget
  1277. - |void| **set_emission_intensity**\ (\ value\: :ref:`float<class_float>`\ )
  1278. - :ref:`float<class_float>` **get_emission_intensity**\ (\ )
  1279. Luminance of emitted light, measured in nits (candela per square meter). Only available when :ref:`ProjectSettings.rendering/lights_and_shadows/use_physical_light_units<class_ProjectSettings_property_rendering/lights_and_shadows/use_physical_light_units>` is enabled. The default is roughly equivalent to an indoor lightbulb.
  1280. .. rst-class:: classref-item-separator
  1281. ----
  1282. .. _class_BaseMaterial3D_property_emission_on_uv2:
  1283. .. rst-class:: classref-property
  1284. :ref:`bool<class_bool>` **emission_on_uv2** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_emission_on_uv2>`
  1285. .. rst-class:: classref-property-setget
  1286. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1287. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1288. Use ``UV2`` to read from the :ref:`emission_texture<class_BaseMaterial3D_property_emission_texture>`.
  1289. .. rst-class:: classref-item-separator
  1290. ----
  1291. .. _class_BaseMaterial3D_property_emission_operator:
  1292. .. rst-class:: classref-property
  1293. :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>` **emission_operator** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_emission_operator>`
  1294. .. rst-class:: classref-property-setget
  1295. - |void| **set_emission_operator**\ (\ value\: :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>`\ )
  1296. - :ref:`EmissionOperator<enum_BaseMaterial3D_EmissionOperator>` **get_emission_operator**\ (\ )
  1297. 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.
  1298. .. rst-class:: classref-item-separator
  1299. ----
  1300. .. _class_BaseMaterial3D_property_emission_texture:
  1301. .. rst-class:: classref-property
  1302. :ref:`Texture2D<class_Texture2D>` **emission_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_emission_texture>`
  1303. .. rst-class:: classref-property-setget
  1304. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1305. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1306. Texture that specifies how much surface emits light at a given point.
  1307. .. rst-class:: classref-item-separator
  1308. ----
  1309. .. _class_BaseMaterial3D_property_fixed_size:
  1310. .. rst-class:: classref-property
  1311. :ref:`bool<class_bool>` **fixed_size** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_fixed_size>`
  1312. .. rst-class:: classref-property-setget
  1313. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1314. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1315. If ``true``, the object is rendered at the same size regardless of distance. The object's size on screen is the same as if the camera was ``1.0`` units away from the object's origin, regardless of the actual distance from the camera. The :ref:`Camera3D<class_Camera3D>`'s field of view (or :ref:`Camera3D.size<class_Camera3D_property_size>` when in orthogonal/frustum mode) still affects the size the object is drawn at.
  1316. .. rst-class:: classref-item-separator
  1317. ----
  1318. .. _class_BaseMaterial3D_property_grow:
  1319. .. rst-class:: classref-property
  1320. :ref:`bool<class_bool>` **grow** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_grow>`
  1321. .. rst-class:: classref-property-setget
  1322. - |void| **set_grow_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  1323. - :ref:`bool<class_bool>` **is_grow_enabled**\ (\ )
  1324. If ``true``, enables the vertex grow setting. This can be used to create mesh-based outlines using a second material pass and its :ref:`cull_mode<class_BaseMaterial3D_property_cull_mode>` set to :ref:`CULL_FRONT<class_BaseMaterial3D_constant_CULL_FRONT>`. See also :ref:`grow_amount<class_BaseMaterial3D_property_grow_amount>`.
  1325. \ **Note:** Vertex growth cannot create new vertices, which means that visible gaps may occur in sharp corners. This can be alleviated by designing the mesh to use smooth normals exclusively using `face weighted normals <http://wiki.polycount.com/wiki/Face_weighted_normals>`__ in the 3D authoring software. In this case, grow will be able to join every outline together, just like in the original mesh.
  1326. .. rst-class:: classref-item-separator
  1327. ----
  1328. .. _class_BaseMaterial3D_property_grow_amount:
  1329. .. rst-class:: classref-property
  1330. :ref:`float<class_float>` **grow_amount** = ``0.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_grow_amount>`
  1331. .. rst-class:: classref-property-setget
  1332. - |void| **set_grow**\ (\ value\: :ref:`float<class_float>`\ )
  1333. - :ref:`float<class_float>` **get_grow**\ (\ )
  1334. Grows object vertices in the direction of their normals. Only effective if :ref:`grow<class_BaseMaterial3D_property_grow>` is ``true``.
  1335. .. rst-class:: classref-item-separator
  1336. ----
  1337. .. _class_BaseMaterial3D_property_heightmap_deep_parallax:
  1338. .. rst-class:: classref-property
  1339. :ref:`bool<class_bool>` **heightmap_deep_parallax** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_deep_parallax>`
  1340. .. rst-class:: classref-property-setget
  1341. - |void| **set_heightmap_deep_parallax**\ (\ value\: :ref:`bool<class_bool>`\ )
  1342. - :ref:`bool<class_bool>` **is_heightmap_deep_parallax_enabled**\ (\ )
  1343. If ``true``, uses parallax occlusion mapping to represent depth in the material instead of simple offset mapping (see :ref:`heightmap_enabled<class_BaseMaterial3D_property_heightmap_enabled>`). This results in a more convincing depth effect, but is much more expensive on the GPU. Only enable this on materials where it makes a significant visual difference.
  1344. .. rst-class:: classref-item-separator
  1345. ----
  1346. .. _class_BaseMaterial3D_property_heightmap_enabled:
  1347. .. rst-class:: classref-property
  1348. :ref:`bool<class_bool>` **heightmap_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_enabled>`
  1349. .. rst-class:: classref-property-setget
  1350. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1351. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1352. If ``true``, height mapping is enabled (also called "parallax mapping" or "depth mapping"). See also :ref:`normal_enabled<class_BaseMaterial3D_property_normal_enabled>`. Height mapping is a demanding feature on the GPU, so it should only be used on materials where it makes a significant visual difference.
  1353. \ **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.
  1354. .. rst-class:: classref-item-separator
  1355. ----
  1356. .. _class_BaseMaterial3D_property_heightmap_flip_binormal:
  1357. .. rst-class:: classref-property
  1358. :ref:`bool<class_bool>` **heightmap_flip_binormal** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_flip_binormal>`
  1359. .. rst-class:: classref-property-setget
  1360. - |void| **set_heightmap_deep_parallax_flip_binormal**\ (\ value\: :ref:`bool<class_bool>`\ )
  1361. - :ref:`bool<class_bool>` **get_heightmap_deep_parallax_flip_binormal**\ (\ )
  1362. If ``true``, flips the mesh's binormal vectors when interpreting the height map. If the heightmap effect looks strange when the camera moves (even with a reasonable :ref:`heightmap_scale<class_BaseMaterial3D_property_heightmap_scale>`), try setting this to ``true``.
  1363. .. rst-class:: classref-item-separator
  1364. ----
  1365. .. _class_BaseMaterial3D_property_heightmap_flip_tangent:
  1366. .. rst-class:: classref-property
  1367. :ref:`bool<class_bool>` **heightmap_flip_tangent** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_flip_tangent>`
  1368. .. rst-class:: classref-property-setget
  1369. - |void| **set_heightmap_deep_parallax_flip_tangent**\ (\ value\: :ref:`bool<class_bool>`\ )
  1370. - :ref:`bool<class_bool>` **get_heightmap_deep_parallax_flip_tangent**\ (\ )
  1371. If ``true``, flips the mesh's tangent vectors when interpreting the height map. If the heightmap effect looks strange when the camera moves (even with a reasonable :ref:`heightmap_scale<class_BaseMaterial3D_property_heightmap_scale>`), try setting this to ``true``.
  1372. .. rst-class:: classref-item-separator
  1373. ----
  1374. .. _class_BaseMaterial3D_property_heightmap_flip_texture:
  1375. .. rst-class:: classref-property
  1376. :ref:`bool<class_bool>` **heightmap_flip_texture** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_flip_texture>`
  1377. .. rst-class:: classref-property-setget
  1378. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1379. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1380. If ``true``, interprets the height map texture as a depth map, with brighter values appearing to be "lower" in altitude compared to darker values.
  1381. This can be enabled for compatibility with some materials authored for Godot 3.x. This is not necessary if the Invert import option was used to invert the depth map in Godot 3.x, in which case :ref:`heightmap_flip_texture<class_BaseMaterial3D_property_heightmap_flip_texture>` should remain ``false``.
  1382. .. rst-class:: classref-item-separator
  1383. ----
  1384. .. _class_BaseMaterial3D_property_heightmap_max_layers:
  1385. .. rst-class:: classref-property
  1386. :ref:`int<class_int>` **heightmap_max_layers** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_max_layers>`
  1387. .. rst-class:: classref-property-setget
  1388. - |void| **set_heightmap_deep_parallax_max_layers**\ (\ value\: :ref:`int<class_int>`\ )
  1389. - :ref:`int<class_int>` **get_heightmap_deep_parallax_max_layers**\ (\ )
  1390. The number of layers to use for parallax occlusion mapping when the camera is up close to the material. Higher values result in a more convincing depth effect, especially in materials that have steep height changes. Higher values have a significant cost on the GPU, so it should only be increased on materials where it makes a significant visual difference.
  1391. \ **Note:** Only effective if :ref:`heightmap_deep_parallax<class_BaseMaterial3D_property_heightmap_deep_parallax>` is ``true``.
  1392. .. rst-class:: classref-item-separator
  1393. ----
  1394. .. _class_BaseMaterial3D_property_heightmap_min_layers:
  1395. .. rst-class:: classref-property
  1396. :ref:`int<class_int>` **heightmap_min_layers** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_min_layers>`
  1397. .. rst-class:: classref-property-setget
  1398. - |void| **set_heightmap_deep_parallax_min_layers**\ (\ value\: :ref:`int<class_int>`\ )
  1399. - :ref:`int<class_int>` **get_heightmap_deep_parallax_min_layers**\ (\ )
  1400. The number of layers to use for parallax occlusion mapping when the camera is far away from the material. Higher values result in a more convincing depth effect, especially in materials that have steep height changes. Higher values have a significant cost on the GPU, so it should only be increased on materials where it makes a significant visual difference.
  1401. \ **Note:** Only effective if :ref:`heightmap_deep_parallax<class_BaseMaterial3D_property_heightmap_deep_parallax>` is ``true``.
  1402. .. rst-class:: classref-item-separator
  1403. ----
  1404. .. _class_BaseMaterial3D_property_heightmap_scale:
  1405. .. rst-class:: classref-property
  1406. :ref:`float<class_float>` **heightmap_scale** = ``5.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_scale>`
  1407. .. rst-class:: classref-property-setget
  1408. - |void| **set_heightmap_scale**\ (\ value\: :ref:`float<class_float>`\ )
  1409. - :ref:`float<class_float>` **get_heightmap_scale**\ (\ )
  1410. The heightmap scale to use for the parallax effect (see :ref:`heightmap_enabled<class_BaseMaterial3D_property_heightmap_enabled>`). The default value is tuned so that the highest point (value = 255) appears to be 5 cm higher than the lowest point (value = 0). Higher values result in a deeper appearance, but may result in artifacts appearing when looking at the material from oblique angles, especially when the camera moves. Negative values can be used to invert the parallax effect, but this is different from inverting the texture using :ref:`heightmap_flip_texture<class_BaseMaterial3D_property_heightmap_flip_texture>` as the material will also appear to be "closer" to the camera. In most cases, :ref:`heightmap_scale<class_BaseMaterial3D_property_heightmap_scale>` should be kept to a positive value.
  1411. \ **Note:** If the height map effect looks strange regardless of this value, try adjusting :ref:`heightmap_flip_binormal<class_BaseMaterial3D_property_heightmap_flip_binormal>` and :ref:`heightmap_flip_tangent<class_BaseMaterial3D_property_heightmap_flip_tangent>`. See also :ref:`heightmap_texture<class_BaseMaterial3D_property_heightmap_texture>` for recommendations on authoring heightmap textures, as the way the heightmap texture is authored affects how :ref:`heightmap_scale<class_BaseMaterial3D_property_heightmap_scale>` behaves.
  1412. .. rst-class:: classref-item-separator
  1413. ----
  1414. .. _class_BaseMaterial3D_property_heightmap_texture:
  1415. .. rst-class:: classref-property
  1416. :ref:`Texture2D<class_Texture2D>` **heightmap_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_heightmap_texture>`
  1417. .. rst-class:: classref-property-setget
  1418. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1419. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1420. The texture to use as a height map. See also :ref:`heightmap_enabled<class_BaseMaterial3D_property_heightmap_enabled>`.
  1421. For best results, the texture should be normalized (with :ref:`heightmap_scale<class_BaseMaterial3D_property_heightmap_scale>` reduced to compensate). In `GIMP <https://gimp.org>`__, this can be done using **Colors > Auto > Equalize**. If the texture only uses a small part of its available range, the parallax effect may look strange, especially when the camera moves.
  1422. \ **Note:** To reduce memory usage and improve loading times, you may be able to use a lower-resolution heightmap texture as most heightmaps are only comprised of low-frequency data.
  1423. .. rst-class:: classref-item-separator
  1424. ----
  1425. .. _class_BaseMaterial3D_property_metallic:
  1426. .. rst-class:: classref-property
  1427. :ref:`float<class_float>` **metallic** = ``0.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_metallic>`
  1428. .. rst-class:: classref-property-setget
  1429. - |void| **set_metallic**\ (\ value\: :ref:`float<class_float>`\ )
  1430. - :ref:`float<class_float>` **get_metallic**\ (\ )
  1431. 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>`.
  1432. .. rst-class:: classref-item-separator
  1433. ----
  1434. .. _class_BaseMaterial3D_property_metallic_specular:
  1435. .. rst-class:: classref-property
  1436. :ref:`float<class_float>` **metallic_specular** = ``0.5`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_metallic_specular>`
  1437. .. rst-class:: classref-property-setget
  1438. - |void| **set_specular**\ (\ value\: :ref:`float<class_float>`\ )
  1439. - :ref:`float<class_float>` **get_specular**\ (\ )
  1440. Adjusts the strength of specular reflections. Specular reflections are composed of scene reflections and the specular lobe which is the bright spot that is reflected from light sources. When set to ``0.0``, no specular reflections will be visible. This differs from the :ref:`SPECULAR_DISABLED<class_BaseMaterial3D_constant_SPECULAR_DISABLED>` :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` as :ref:`SPECULAR_DISABLED<class_BaseMaterial3D_constant_SPECULAR_DISABLED>` only applies to the specular lobe from the light source.
  1441. \ **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>`.
  1442. .. rst-class:: classref-item-separator
  1443. ----
  1444. .. _class_BaseMaterial3D_property_metallic_texture:
  1445. .. rst-class:: classref-property
  1446. :ref:`Texture2D<class_Texture2D>` **metallic_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_metallic_texture>`
  1447. .. rst-class:: classref-property-setget
  1448. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1449. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1450. Texture used to specify metallic for an object. This is multiplied by :ref:`metallic<class_BaseMaterial3D_property_metallic>`.
  1451. .. rst-class:: classref-item-separator
  1452. ----
  1453. .. _class_BaseMaterial3D_property_metallic_texture_channel:
  1454. .. rst-class:: classref-property
  1455. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **metallic_texture_channel** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_metallic_texture_channel>`
  1456. .. rst-class:: classref-property-setget
  1457. - |void| **set_metallic_texture_channel**\ (\ value\: :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>`\ )
  1458. - :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **get_metallic_texture_channel**\ (\ )
  1459. 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.
  1460. .. rst-class:: classref-item-separator
  1461. ----
  1462. .. _class_BaseMaterial3D_property_msdf_outline_size:
  1463. .. rst-class:: classref-property
  1464. :ref:`float<class_float>` **msdf_outline_size** = ``0.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_msdf_outline_size>`
  1465. .. rst-class:: classref-property-setget
  1466. - |void| **set_msdf_outline_size**\ (\ value\: :ref:`float<class_float>`\ )
  1467. - :ref:`float<class_float>` **get_msdf_outline_size**\ (\ )
  1468. The width of the shape outline.
  1469. .. rst-class:: classref-item-separator
  1470. ----
  1471. .. _class_BaseMaterial3D_property_msdf_pixel_range:
  1472. .. rst-class:: classref-property
  1473. :ref:`float<class_float>` **msdf_pixel_range** = ``4.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_msdf_pixel_range>`
  1474. .. rst-class:: classref-property-setget
  1475. - |void| **set_msdf_pixel_range**\ (\ value\: :ref:`float<class_float>`\ )
  1476. - :ref:`float<class_float>` **get_msdf_pixel_range**\ (\ )
  1477. The width of the range around the shape between the minimum and maximum representable signed distance.
  1478. .. rst-class:: classref-item-separator
  1479. ----
  1480. .. _class_BaseMaterial3D_property_no_depth_test:
  1481. .. rst-class:: classref-property
  1482. :ref:`bool<class_bool>` **no_depth_test** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_no_depth_test>`
  1483. .. rst-class:: classref-property-setget
  1484. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1485. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1486. If ``true``, depth testing is disabled and the object will be drawn in render order.
  1487. .. rst-class:: classref-item-separator
  1488. ----
  1489. .. _class_BaseMaterial3D_property_normal_enabled:
  1490. .. rst-class:: classref-property
  1491. :ref:`bool<class_bool>` **normal_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_normal_enabled>`
  1492. .. rst-class:: classref-property-setget
  1493. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1494. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1495. If ``true``, normal mapping is enabled. This has a slight performance cost, especially on mobile GPUs.
  1496. .. rst-class:: classref-item-separator
  1497. ----
  1498. .. _class_BaseMaterial3D_property_normal_scale:
  1499. .. rst-class:: classref-property
  1500. :ref:`float<class_float>` **normal_scale** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_normal_scale>`
  1501. .. rst-class:: classref-property-setget
  1502. - |void| **set_normal_scale**\ (\ value\: :ref:`float<class_float>`\ )
  1503. - :ref:`float<class_float>` **get_normal_scale**\ (\ )
  1504. The strength of the normal map's effect.
  1505. .. rst-class:: classref-item-separator
  1506. ----
  1507. .. _class_BaseMaterial3D_property_normal_texture:
  1508. .. rst-class:: classref-property
  1509. :ref:`Texture2D<class_Texture2D>` **normal_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_normal_texture>`
  1510. .. rst-class:: classref-property-setget
  1511. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1512. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1513. Texture used to specify the normal at a given pixel. The :ref:`normal_texture<class_BaseMaterial3D_property_normal_texture>` only uses the red and green channels; the blue and alpha channels are ignored. The normal read from :ref:`normal_texture<class_BaseMaterial3D_property_normal_texture>` is oriented around the surface normal provided by the :ref:`Mesh<class_Mesh>`.
  1514. \ **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.
  1515. \ **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.
  1516. \ **Note:** If :ref:`detail_enabled<class_BaseMaterial3D_property_detail_enabled>` is ``true``, the :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>` texture is drawn *below* the :ref:`normal_texture<class_BaseMaterial3D_property_normal_texture>`. To display a normal map *above* the :ref:`detail_albedo<class_BaseMaterial3D_property_detail_albedo>` texture, use :ref:`detail_normal<class_BaseMaterial3D_property_detail_normal>` instead.
  1517. .. rst-class:: classref-item-separator
  1518. ----
  1519. .. _class_BaseMaterial3D_property_orm_texture:
  1520. .. rst-class:: classref-property
  1521. :ref:`Texture2D<class_Texture2D>` **orm_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_orm_texture>`
  1522. .. rst-class:: classref-property-setget
  1523. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1524. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1525. The Occlusion/Roughness/Metallic texture to use. This is a more efficient replacement of :ref:`ao_texture<class_BaseMaterial3D_property_ao_texture>`, :ref:`roughness_texture<class_BaseMaterial3D_property_roughness_texture>` and :ref:`metallic_texture<class_BaseMaterial3D_property_metallic_texture>` in :ref:`ORMMaterial3D<class_ORMMaterial3D>`. Ambient occlusion is stored in the red channel. Roughness map is stored in the green channel. Metallic map is stored in the blue channel. The alpha channel is ignored.
  1526. .. rst-class:: classref-item-separator
  1527. ----
  1528. .. _class_BaseMaterial3D_property_particles_anim_h_frames:
  1529. .. rst-class:: classref-property
  1530. :ref:`int<class_int>` **particles_anim_h_frames** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_particles_anim_h_frames>`
  1531. .. rst-class:: classref-property-setget
  1532. - |void| **set_particles_anim_h_frames**\ (\ value\: :ref:`int<class_int>`\ )
  1533. - :ref:`int<class_int>` **get_particles_anim_h_frames**\ (\ )
  1534. 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>`.
  1535. .. rst-class:: classref-item-separator
  1536. ----
  1537. .. _class_BaseMaterial3D_property_particles_anim_loop:
  1538. .. rst-class:: classref-property
  1539. :ref:`bool<class_bool>` **particles_anim_loop** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_particles_anim_loop>`
  1540. .. rst-class:: classref-property-setget
  1541. - |void| **set_particles_anim_loop**\ (\ value\: :ref:`bool<class_bool>`\ )
  1542. - :ref:`bool<class_bool>` **get_particles_anim_loop**\ (\ )
  1543. 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>`.
  1544. .. rst-class:: classref-item-separator
  1545. ----
  1546. .. _class_BaseMaterial3D_property_particles_anim_v_frames:
  1547. .. rst-class:: classref-property
  1548. :ref:`int<class_int>` **particles_anim_v_frames** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_particles_anim_v_frames>`
  1549. .. rst-class:: classref-property-setget
  1550. - |void| **set_particles_anim_v_frames**\ (\ value\: :ref:`int<class_int>`\ )
  1551. - :ref:`int<class_int>` **get_particles_anim_v_frames**\ (\ )
  1552. 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>`.
  1553. .. rst-class:: classref-item-separator
  1554. ----
  1555. .. _class_BaseMaterial3D_property_point_size:
  1556. .. rst-class:: classref-property
  1557. :ref:`float<class_float>` **point_size** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_point_size>`
  1558. .. rst-class:: classref-property-setget
  1559. - |void| **set_point_size**\ (\ value\: :ref:`float<class_float>`\ )
  1560. - :ref:`float<class_float>` **get_point_size**\ (\ )
  1561. The point size in pixels. See :ref:`use_point_size<class_BaseMaterial3D_property_use_point_size>`.
  1562. .. rst-class:: classref-item-separator
  1563. ----
  1564. .. _class_BaseMaterial3D_property_proximity_fade_distance:
  1565. .. rst-class:: classref-property
  1566. :ref:`float<class_float>` **proximity_fade_distance** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_proximity_fade_distance>`
  1567. .. rst-class:: classref-property-setget
  1568. - |void| **set_proximity_fade_distance**\ (\ value\: :ref:`float<class_float>`\ )
  1569. - :ref:`float<class_float>` **get_proximity_fade_distance**\ (\ )
  1570. Distance over which the fade effect takes place. The larger the distance the longer it takes for an object to fade.
  1571. .. rst-class:: classref-item-separator
  1572. ----
  1573. .. _class_BaseMaterial3D_property_proximity_fade_enabled:
  1574. .. rst-class:: classref-property
  1575. :ref:`bool<class_bool>` **proximity_fade_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_proximity_fade_enabled>`
  1576. .. rst-class:: classref-property-setget
  1577. - |void| **set_proximity_fade_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  1578. - :ref:`bool<class_bool>` **is_proximity_fade_enabled**\ (\ )
  1579. If ``true``, the proximity fade effect is enabled. The proximity fade effect fades out each pixel based on its distance to another object.
  1580. .. rst-class:: classref-item-separator
  1581. ----
  1582. .. _class_BaseMaterial3D_property_refraction_enabled:
  1583. .. rst-class:: classref-property
  1584. :ref:`bool<class_bool>` **refraction_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_refraction_enabled>`
  1585. .. rst-class:: classref-property-setget
  1586. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1587. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1588. If ``true``, the refraction effect is enabled. Distorts transparency based on light from behind the object.
  1589. \ **Note:** Refraction is implemented using the screen texture. Only opaque materials will appear in the refraction, since transparent materials do not appear in the screen texture.
  1590. .. rst-class:: classref-item-separator
  1591. ----
  1592. .. _class_BaseMaterial3D_property_refraction_scale:
  1593. .. rst-class:: classref-property
  1594. :ref:`float<class_float>` **refraction_scale** = ``0.05`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_refraction_scale>`
  1595. .. rst-class:: classref-property-setget
  1596. - |void| **set_refraction**\ (\ value\: :ref:`float<class_float>`\ )
  1597. - :ref:`float<class_float>` **get_refraction**\ (\ )
  1598. The strength of the refraction effect.
  1599. .. rst-class:: classref-item-separator
  1600. ----
  1601. .. _class_BaseMaterial3D_property_refraction_texture:
  1602. .. rst-class:: classref-property
  1603. :ref:`Texture2D<class_Texture2D>` **refraction_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_refraction_texture>`
  1604. .. rst-class:: classref-property-setget
  1605. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1606. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1607. Texture that controls the strength of the refraction per-pixel. Multiplied by :ref:`refraction_scale<class_BaseMaterial3D_property_refraction_scale>`.
  1608. .. rst-class:: classref-item-separator
  1609. ----
  1610. .. _class_BaseMaterial3D_property_refraction_texture_channel:
  1611. .. rst-class:: classref-property
  1612. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **refraction_texture_channel** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_refraction_texture_channel>`
  1613. .. rst-class:: classref-property-setget
  1614. - |void| **set_refraction_texture_channel**\ (\ value\: :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>`\ )
  1615. - :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **get_refraction_texture_channel**\ (\ )
  1616. Specifies the channel of the :ref:`refraction_texture<class_BaseMaterial3D_property_refraction_texture>` in which the refraction information is stored. This is useful when you store the information for multiple effects in a single texture. For example if you stored refraction in the red channel, roughness in the blue, and ambient occlusion in the green you could reduce the number of textures you use.
  1617. .. rst-class:: classref-item-separator
  1618. ----
  1619. .. _class_BaseMaterial3D_property_rim:
  1620. .. rst-class:: classref-property
  1621. :ref:`float<class_float>` **rim** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_rim>`
  1622. .. rst-class:: classref-property-setget
  1623. - |void| **set_rim**\ (\ value\: :ref:`float<class_float>`\ )
  1624. - :ref:`float<class_float>` **get_rim**\ (\ )
  1625. Sets the strength of the rim lighting effect.
  1626. .. rst-class:: classref-item-separator
  1627. ----
  1628. .. _class_BaseMaterial3D_property_rim_enabled:
  1629. .. rst-class:: classref-property
  1630. :ref:`bool<class_bool>` **rim_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_rim_enabled>`
  1631. .. rst-class:: classref-property-setget
  1632. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1633. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1634. If ``true``, rim effect is enabled. Rim lighting increases the brightness at glancing angles on an object.
  1635. \ **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>`.
  1636. .. rst-class:: classref-item-separator
  1637. ----
  1638. .. _class_BaseMaterial3D_property_rim_texture:
  1639. .. rst-class:: classref-property
  1640. :ref:`Texture2D<class_Texture2D>` **rim_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_rim_texture>`
  1641. .. rst-class:: classref-property-setget
  1642. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1643. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1644. Texture used to set the strength of the rim lighting effect per-pixel. Multiplied by :ref:`rim<class_BaseMaterial3D_property_rim>`.
  1645. .. rst-class:: classref-item-separator
  1646. ----
  1647. .. _class_BaseMaterial3D_property_rim_tint:
  1648. .. rst-class:: classref-property
  1649. :ref:`float<class_float>` **rim_tint** = ``0.5`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_rim_tint>`
  1650. .. rst-class:: classref-property-setget
  1651. - |void| **set_rim_tint**\ (\ value\: :ref:`float<class_float>`\ )
  1652. - :ref:`float<class_float>` **get_rim_tint**\ (\ )
  1653. 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.
  1654. .. rst-class:: classref-item-separator
  1655. ----
  1656. .. _class_BaseMaterial3D_property_roughness:
  1657. .. rst-class:: classref-property
  1658. :ref:`float<class_float>` **roughness** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_roughness>`
  1659. .. rst-class:: classref-property-setget
  1660. - |void| **set_roughness**\ (\ value\: :ref:`float<class_float>`\ )
  1661. - :ref:`float<class_float>` **get_roughness**\ (\ )
  1662. 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>`.
  1663. .. rst-class:: classref-item-separator
  1664. ----
  1665. .. _class_BaseMaterial3D_property_roughness_texture:
  1666. .. rst-class:: classref-property
  1667. :ref:`Texture2D<class_Texture2D>` **roughness_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_roughness_texture>`
  1668. .. rst-class:: classref-property-setget
  1669. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1670. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1671. Texture used to control the roughness per-pixel. Multiplied by :ref:`roughness<class_BaseMaterial3D_property_roughness>`.
  1672. .. rst-class:: classref-item-separator
  1673. ----
  1674. .. _class_BaseMaterial3D_property_roughness_texture_channel:
  1675. .. rst-class:: classref-property
  1676. :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **roughness_texture_channel** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_roughness_texture_channel>`
  1677. .. rst-class:: classref-property-setget
  1678. - |void| **set_roughness_texture_channel**\ (\ value\: :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>`\ )
  1679. - :ref:`TextureChannel<enum_BaseMaterial3D_TextureChannel>` **get_roughness_texture_channel**\ (\ )
  1680. Specifies the channel of the :ref:`roughness_texture<class_BaseMaterial3D_property_roughness_texture>` in which the roughness 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.
  1681. .. rst-class:: classref-item-separator
  1682. ----
  1683. .. _class_BaseMaterial3D_property_shading_mode:
  1684. .. rst-class:: classref-property
  1685. :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` **shading_mode** = ``1`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_shading_mode>`
  1686. .. rst-class:: classref-property-setget
  1687. - |void| **set_shading_mode**\ (\ value\: :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>`\ )
  1688. - :ref:`ShadingMode<enum_BaseMaterial3D_ShadingMode>` **get_shading_mode**\ (\ )
  1689. Sets whether the shading takes place, per-pixel, per-vertex or unshaded. Per-vertex lighting is faster, making it the best choice for mobile applications, however it looks considerably worse than per-pixel. Unshaded rendering is the fastest, but disables all interactions with lights.
  1690. .. rst-class:: classref-item-separator
  1691. ----
  1692. .. _class_BaseMaterial3D_property_shadow_to_opacity:
  1693. .. rst-class:: classref-property
  1694. :ref:`bool<class_bool>` **shadow_to_opacity** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_shadow_to_opacity>`
  1695. .. rst-class:: classref-property-setget
  1696. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1697. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1698. 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.
  1699. .. rst-class:: classref-item-separator
  1700. ----
  1701. .. _class_BaseMaterial3D_property_specular_mode:
  1702. .. rst-class:: classref-property
  1703. :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` **specular_mode** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_specular_mode>`
  1704. .. rst-class:: classref-property-setget
  1705. - |void| **set_specular_mode**\ (\ value\: :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>`\ )
  1706. - :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>` **get_specular_mode**\ (\ )
  1707. The method for rendering the specular blob. See :ref:`SpecularMode<enum_BaseMaterial3D_SpecularMode>`.
  1708. \ **Note:** :ref:`specular_mode<class_BaseMaterial3D_property_specular_mode>` only applies to the specular blob. It does not affect specular reflections from the sky, screen-space reflections, :ref:`VoxelGI<class_VoxelGI>`, SDFGI or :ref:`ReflectionProbe<class_ReflectionProbe>`\ s. To disable reflections from these sources as well, set :ref:`metallic_specular<class_BaseMaterial3D_property_metallic_specular>` to ``0.0`` instead.
  1709. .. rst-class:: classref-item-separator
  1710. ----
  1711. .. _class_BaseMaterial3D_property_subsurf_scatter_enabled:
  1712. .. rst-class:: classref-property
  1713. :ref:`bool<class_bool>` **subsurf_scatter_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_enabled>`
  1714. .. rst-class:: classref-property-setget
  1715. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1716. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1717. If ``true``, subsurface scattering is enabled. Emulates light that penetrates an object's surface, is scattered, and then emerges. Subsurface scattering quality is controlled by :ref:`ProjectSettings.rendering/environment/subsurface_scattering/subsurface_scattering_quality<class_ProjectSettings_property_rendering/environment/subsurface_scattering/subsurface_scattering_quality>`.
  1718. .. rst-class:: classref-item-separator
  1719. ----
  1720. .. _class_BaseMaterial3D_property_subsurf_scatter_skin_mode:
  1721. .. rst-class:: classref-property
  1722. :ref:`bool<class_bool>` **subsurf_scatter_skin_mode** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_skin_mode>`
  1723. .. rst-class:: classref-property-setget
  1724. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1725. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1726. If ``true``, subsurface scattering will use a special mode optimized for the color and density of human skin, such as boosting the intensity of the red channel in subsurface scattering.
  1727. .. rst-class:: classref-item-separator
  1728. ----
  1729. .. _class_BaseMaterial3D_property_subsurf_scatter_strength:
  1730. .. rst-class:: classref-property
  1731. :ref:`float<class_float>` **subsurf_scatter_strength** = ``0.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_strength>`
  1732. .. rst-class:: classref-property-setget
  1733. - |void| **set_subsurface_scattering_strength**\ (\ value\: :ref:`float<class_float>`\ )
  1734. - :ref:`float<class_float>` **get_subsurface_scattering_strength**\ (\ )
  1735. The strength of the subsurface scattering effect. The depth of the effect is also controlled by :ref:`ProjectSettings.rendering/environment/subsurface_scattering/subsurface_scattering_scale<class_ProjectSettings_property_rendering/environment/subsurface_scattering/subsurface_scattering_scale>`, which is set globally.
  1736. .. rst-class:: classref-item-separator
  1737. ----
  1738. .. _class_BaseMaterial3D_property_subsurf_scatter_texture:
  1739. .. rst-class:: classref-property
  1740. :ref:`Texture2D<class_Texture2D>` **subsurf_scatter_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_texture>`
  1741. .. rst-class:: classref-property-setget
  1742. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1743. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1744. 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>`.
  1745. .. rst-class:: classref-item-separator
  1746. ----
  1747. .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_boost:
  1748. .. rst-class:: classref-property
  1749. :ref:`float<class_float>` **subsurf_scatter_transmittance_boost** = ``0.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_transmittance_boost>`
  1750. .. rst-class:: classref-property-setget
  1751. - |void| **set_transmittance_boost**\ (\ value\: :ref:`float<class_float>`\ )
  1752. - :ref:`float<class_float>` **get_transmittance_boost**\ (\ )
  1753. The intensity of the subsurface scattering transmittance effect.
  1754. .. rst-class:: classref-item-separator
  1755. ----
  1756. .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_color:
  1757. .. rst-class:: classref-property
  1758. :ref:`Color<class_Color>` **subsurf_scatter_transmittance_color** = ``Color(1, 1, 1, 1)`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_transmittance_color>`
  1759. .. rst-class:: classref-property-setget
  1760. - |void| **set_transmittance_color**\ (\ value\: :ref:`Color<class_Color>`\ )
  1761. - :ref:`Color<class_Color>` **get_transmittance_color**\ (\ )
  1762. The color to multiply the subsurface scattering transmittance effect with. Ignored if :ref:`subsurf_scatter_skin_mode<class_BaseMaterial3D_property_subsurf_scatter_skin_mode>` is ``true``.
  1763. .. rst-class:: classref-item-separator
  1764. ----
  1765. .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_depth:
  1766. .. rst-class:: classref-property
  1767. :ref:`float<class_float>` **subsurf_scatter_transmittance_depth** = ``0.1`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_transmittance_depth>`
  1768. .. rst-class:: classref-property-setget
  1769. - |void| **set_transmittance_depth**\ (\ value\: :ref:`float<class_float>`\ )
  1770. - :ref:`float<class_float>` **get_transmittance_depth**\ (\ )
  1771. The depth of the subsurface scattering transmittance effect.
  1772. .. rst-class:: classref-item-separator
  1773. ----
  1774. .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_enabled:
  1775. .. rst-class:: classref-property
  1776. :ref:`bool<class_bool>` **subsurf_scatter_transmittance_enabled** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_transmittance_enabled>`
  1777. .. rst-class:: classref-property-setget
  1778. - |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ )
  1779. - :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const|
  1780. If ``true``, enables subsurface scattering transmittance. Only effective if :ref:`subsurf_scatter_enabled<class_BaseMaterial3D_property_subsurf_scatter_enabled>` is ``true``. See also :ref:`backlight_enabled<class_BaseMaterial3D_property_backlight_enabled>`.
  1781. .. rst-class:: classref-item-separator
  1782. ----
  1783. .. _class_BaseMaterial3D_property_subsurf_scatter_transmittance_texture:
  1784. .. rst-class:: classref-property
  1785. :ref:`Texture2D<class_Texture2D>` **subsurf_scatter_transmittance_texture** :ref:`๐Ÿ”—<class_BaseMaterial3D_property_subsurf_scatter_transmittance_texture>`
  1786. .. rst-class:: classref-property-setget
  1787. - |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ )
  1788. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const|
  1789. The texture to use for multiplying the intensity of the subsurface scattering transmittance intensity. See also :ref:`subsurf_scatter_texture<class_BaseMaterial3D_property_subsurf_scatter_texture>`. Ignored if :ref:`subsurf_scatter_skin_mode<class_BaseMaterial3D_property_subsurf_scatter_skin_mode>` is ``true``.
  1790. .. rst-class:: classref-item-separator
  1791. ----
  1792. .. _class_BaseMaterial3D_property_texture_filter:
  1793. .. rst-class:: classref-property
  1794. :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **texture_filter** = ``3`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_texture_filter>`
  1795. .. rst-class:: classref-property-setget
  1796. - |void| **set_texture_filter**\ (\ value\: :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>`\ )
  1797. - :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` **get_texture_filter**\ (\ )
  1798. Filter flags for the texture. See :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` for options.
  1799. \ **Note:** :ref:`heightmap_texture<class_BaseMaterial3D_property_heightmap_texture>` is always sampled with linear filtering, even if nearest-neighbor filtering is selected here. This is to ensure the heightmap effect looks as intended. If you need sharper height transitions between pixels, resize the heightmap texture in an image editor with nearest-neighbor filtering.
  1800. .. rst-class:: classref-item-separator
  1801. ----
  1802. .. _class_BaseMaterial3D_property_texture_repeat:
  1803. .. rst-class:: classref-property
  1804. :ref:`bool<class_bool>` **texture_repeat** = ``true`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_texture_repeat>`
  1805. .. rst-class:: classref-property-setget
  1806. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1807. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1808. Repeat flags for the texture. See :ref:`TextureFilter<enum_BaseMaterial3D_TextureFilter>` for options.
  1809. .. rst-class:: classref-item-separator
  1810. ----
  1811. .. _class_BaseMaterial3D_property_transparency:
  1812. .. rst-class:: classref-property
  1813. :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **transparency** = ``0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_transparency>`
  1814. .. rst-class:: classref-property-setget
  1815. - |void| **set_transparency**\ (\ value\: :ref:`Transparency<enum_BaseMaterial3D_Transparency>`\ )
  1816. - :ref:`Transparency<enum_BaseMaterial3D_Transparency>` **get_transparency**\ (\ )
  1817. The material's transparency mode. Some transparency modes will disable shadow casting. Any transparency mode other than :ref:`TRANSPARENCY_DISABLED<class_BaseMaterial3D_constant_TRANSPARENCY_DISABLED>` has a greater performance impact compared to opaque rendering. See also :ref:`blend_mode<class_BaseMaterial3D_property_blend_mode>`.
  1818. .. rst-class:: classref-item-separator
  1819. ----
  1820. .. _class_BaseMaterial3D_property_use_particle_trails:
  1821. .. rst-class:: classref-property
  1822. :ref:`bool<class_bool>` **use_particle_trails** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_use_particle_trails>`
  1823. .. rst-class:: classref-property-setget
  1824. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1825. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1826. If ``true``, enables parts of the shader required for :ref:`GPUParticles3D<class_GPUParticles3D>` trails to function. This also requires using a mesh with appropriate skinning, such as :ref:`RibbonTrailMesh<class_RibbonTrailMesh>` or :ref:`TubeTrailMesh<class_TubeTrailMesh>`. Enabling this feature outside of materials used in :ref:`GPUParticles3D<class_GPUParticles3D>` meshes will break material rendering.
  1827. .. rst-class:: classref-item-separator
  1828. ----
  1829. .. _class_BaseMaterial3D_property_use_point_size:
  1830. .. rst-class:: classref-property
  1831. :ref:`bool<class_bool>` **use_point_size** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_use_point_size>`
  1832. .. rst-class:: classref-property-setget
  1833. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1834. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1835. If ``true``, render point size can be changed.
  1836. \ **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>`.
  1837. .. rst-class:: classref-item-separator
  1838. ----
  1839. .. _class_BaseMaterial3D_property_uv1_offset:
  1840. .. rst-class:: classref-property
  1841. :ref:`Vector3<class_Vector3>` **uv1_offset** = ``Vector3(0, 0, 0)`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv1_offset>`
  1842. .. rst-class:: classref-property-setget
  1843. - |void| **set_uv1_offset**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  1844. - :ref:`Vector3<class_Vector3>` **get_uv1_offset**\ (\ )
  1845. 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. The Z component is used when :ref:`uv1_triplanar<class_BaseMaterial3D_property_uv1_triplanar>` is enabled, but it is not used anywhere else.
  1846. .. rst-class:: classref-item-separator
  1847. ----
  1848. .. _class_BaseMaterial3D_property_uv1_scale:
  1849. .. rst-class:: classref-property
  1850. :ref:`Vector3<class_Vector3>` **uv1_scale** = ``Vector3(1, 1, 1)`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv1_scale>`
  1851. .. rst-class:: classref-property-setget
  1852. - |void| **set_uv1_scale**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  1853. - :ref:`Vector3<class_Vector3>` **get_uv1_scale**\ (\ )
  1854. How much to scale the ``UV`` coordinates. This is multiplied by ``UV`` in the vertex function. The Z component is used when :ref:`uv1_triplanar<class_BaseMaterial3D_property_uv1_triplanar>` is enabled, but it is not used anywhere else.
  1855. .. rst-class:: classref-item-separator
  1856. ----
  1857. .. _class_BaseMaterial3D_property_uv1_triplanar:
  1858. .. rst-class:: classref-property
  1859. :ref:`bool<class_bool>` **uv1_triplanar** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv1_triplanar>`
  1860. .. rst-class:: classref-property-setget
  1861. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1862. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1863. 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.
  1864. .. rst-class:: classref-item-separator
  1865. ----
  1866. .. _class_BaseMaterial3D_property_uv1_triplanar_sharpness:
  1867. .. rst-class:: classref-property
  1868. :ref:`float<class_float>` **uv1_triplanar_sharpness** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv1_triplanar_sharpness>`
  1869. .. rst-class:: classref-property-setget
  1870. - |void| **set_uv1_triplanar_blend_sharpness**\ (\ value\: :ref:`float<class_float>`\ )
  1871. - :ref:`float<class_float>` **get_uv1_triplanar_blend_sharpness**\ (\ )
  1872. A lower number blends the texture more softly while a higher number blends the texture more sharply.
  1873. \ **Note:** :ref:`uv1_triplanar_sharpness<class_BaseMaterial3D_property_uv1_triplanar_sharpness>` is clamped between ``0.0`` and ``150.0`` (inclusive) as values outside that range can look broken depending on the mesh.
  1874. .. rst-class:: classref-item-separator
  1875. ----
  1876. .. _class_BaseMaterial3D_property_uv1_world_triplanar:
  1877. .. rst-class:: classref-property
  1878. :ref:`bool<class_bool>` **uv1_world_triplanar** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv1_world_triplanar>`
  1879. .. rst-class:: classref-property-setget
  1880. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1881. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1882. 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>`.
  1883. .. rst-class:: classref-item-separator
  1884. ----
  1885. .. _class_BaseMaterial3D_property_uv2_offset:
  1886. .. rst-class:: classref-property
  1887. :ref:`Vector3<class_Vector3>` **uv2_offset** = ``Vector3(0, 0, 0)`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv2_offset>`
  1888. .. rst-class:: classref-property-setget
  1889. - |void| **set_uv2_offset**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  1890. - :ref:`Vector3<class_Vector3>` **get_uv2_offset**\ (\ )
  1891. 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. The Z component is used when :ref:`uv2_triplanar<class_BaseMaterial3D_property_uv2_triplanar>` is enabled, but it is not used anywhere else.
  1892. .. rst-class:: classref-item-separator
  1893. ----
  1894. .. _class_BaseMaterial3D_property_uv2_scale:
  1895. .. rst-class:: classref-property
  1896. :ref:`Vector3<class_Vector3>` **uv2_scale** = ``Vector3(1, 1, 1)`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv2_scale>`
  1897. .. rst-class:: classref-property-setget
  1898. - |void| **set_uv2_scale**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  1899. - :ref:`Vector3<class_Vector3>` **get_uv2_scale**\ (\ )
  1900. How much to scale the ``UV2`` coordinates. This is multiplied by ``UV2`` in the vertex function. The Z component is used when :ref:`uv2_triplanar<class_BaseMaterial3D_property_uv2_triplanar>` is enabled, but it is not used anywhere else.
  1901. .. rst-class:: classref-item-separator
  1902. ----
  1903. .. _class_BaseMaterial3D_property_uv2_triplanar:
  1904. .. rst-class:: classref-property
  1905. :ref:`bool<class_bool>` **uv2_triplanar** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv2_triplanar>`
  1906. .. rst-class:: classref-property-setget
  1907. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1908. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1909. 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.
  1910. .. rst-class:: classref-item-separator
  1911. ----
  1912. .. _class_BaseMaterial3D_property_uv2_triplanar_sharpness:
  1913. .. rst-class:: classref-property
  1914. :ref:`float<class_float>` **uv2_triplanar_sharpness** = ``1.0`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv2_triplanar_sharpness>`
  1915. .. rst-class:: classref-property-setget
  1916. - |void| **set_uv2_triplanar_blend_sharpness**\ (\ value\: :ref:`float<class_float>`\ )
  1917. - :ref:`float<class_float>` **get_uv2_triplanar_blend_sharpness**\ (\ )
  1918. A lower number blends the texture more softly while a higher number blends the texture more sharply.
  1919. \ **Note:** :ref:`uv2_triplanar_sharpness<class_BaseMaterial3D_property_uv2_triplanar_sharpness>` is clamped between ``0.0`` and ``150.0`` (inclusive) as values outside that range can look broken depending on the mesh.
  1920. .. rst-class:: classref-item-separator
  1921. ----
  1922. .. _class_BaseMaterial3D_property_uv2_world_triplanar:
  1923. .. rst-class:: classref-property
  1924. :ref:`bool<class_bool>` **uv2_world_triplanar** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_uv2_world_triplanar>`
  1925. .. rst-class:: classref-property-setget
  1926. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1927. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1928. 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>`.
  1929. .. rst-class:: classref-item-separator
  1930. ----
  1931. .. _class_BaseMaterial3D_property_vertex_color_is_srgb:
  1932. .. rst-class:: classref-property
  1933. :ref:`bool<class_bool>` **vertex_color_is_srgb** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_vertex_color_is_srgb>`
  1934. .. rst-class:: classref-property-setget
  1935. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1936. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1937. If ``true``, vertex colors are considered to be stored in sRGB color space and are converted to linear color space during rendering. If ``false``, vertex colors are considered to be stored in linear color space and are rendered as-is. See also :ref:`albedo_texture_force_srgb<class_BaseMaterial3D_property_albedo_texture_force_srgb>`.
  1938. \ **Note:** Only effective when using the Forward+ and Mobile rendering methods, not Compatibility.
  1939. .. rst-class:: classref-item-separator
  1940. ----
  1941. .. _class_BaseMaterial3D_property_vertex_color_use_as_albedo:
  1942. .. rst-class:: classref-property
  1943. :ref:`bool<class_bool>` **vertex_color_use_as_albedo** = ``false`` :ref:`๐Ÿ”—<class_BaseMaterial3D_property_vertex_color_use_as_albedo>`
  1944. .. rst-class:: classref-property-setget
  1945. - |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ )
  1946. - :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const|
  1947. If ``true``, the vertex color is used as albedo color.
  1948. .. rst-class:: classref-section-separator
  1949. ----
  1950. .. rst-class:: classref-descriptions-group
  1951. Method Descriptions
  1952. -------------------
  1953. .. _class_BaseMaterial3D_method_get_feature:
  1954. .. rst-class:: classref-method
  1955. :ref:`bool<class_bool>` **get_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`\ ) |const| :ref:`๐Ÿ”—<class_BaseMaterial3D_method_get_feature>`
  1956. Returns ``true``, if the specified :ref:`Feature<enum_BaseMaterial3D_Feature>` is enabled.
  1957. .. rst-class:: classref-item-separator
  1958. ----
  1959. .. _class_BaseMaterial3D_method_get_flag:
  1960. .. rst-class:: classref-method
  1961. :ref:`bool<class_bool>` **get_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`\ ) |const| :ref:`๐Ÿ”—<class_BaseMaterial3D_method_get_flag>`
  1962. Returns ``true``, if the specified flag is enabled. See :ref:`Flags<enum_BaseMaterial3D_Flags>` enumerator for options.
  1963. .. rst-class:: classref-item-separator
  1964. ----
  1965. .. _class_BaseMaterial3D_method_get_texture:
  1966. .. rst-class:: classref-method
  1967. :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`\ ) |const| :ref:`๐Ÿ”—<class_BaseMaterial3D_method_get_texture>`
  1968. Returns the :ref:`Texture2D<class_Texture2D>` associated with the specified :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`.
  1969. .. rst-class:: classref-item-separator
  1970. ----
  1971. .. _class_BaseMaterial3D_method_set_feature:
  1972. .. rst-class:: classref-method
  1973. |void| **set_feature**\ (\ feature\: :ref:`Feature<enum_BaseMaterial3D_Feature>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_BaseMaterial3D_method_set_feature>`
  1974. 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``.
  1975. .. rst-class:: classref-item-separator
  1976. ----
  1977. .. _class_BaseMaterial3D_method_set_flag:
  1978. .. rst-class:: classref-method
  1979. |void| **set_flag**\ (\ flag\: :ref:`Flags<enum_BaseMaterial3D_Flags>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_BaseMaterial3D_method_set_flag>`
  1980. 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.
  1981. .. rst-class:: classref-item-separator
  1982. ----
  1983. .. _class_BaseMaterial3D_method_set_texture:
  1984. .. rst-class:: classref-method
  1985. |void| **set_texture**\ (\ param\: :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>`, texture\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`๐Ÿ”—<class_BaseMaterial3D_method_set_texture>`
  1986. Sets the texture for the slot specified by ``param``. See :ref:`TextureParam<enum_BaseMaterial3D_TextureParam>` for available slots.
  1987. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  1988. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  1989. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  1990. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  1991. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  1992. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  1993. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  1994. .. |void| replace:: :abbr:`void (No return value.)`