class_basematerial3d.rst 195 KB

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