class_visualserver.rst 460 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualServer.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualServer:
  5. VisualServer
  6. ============
  7. **Inherits:** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Server for anything visible.
  12. Member Functions
  13. ----------------
  14. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`black_bars_set_images<class_VisualServer_black_bars_set_images>` **(** :ref:`RID<class_rid>` left, :ref:`RID<class_rid>` top, :ref:`RID<class_rid>` right, :ref:`RID<class_rid>` bottom **)** |
  16. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`black_bars_set_margins<class_VisualServer_black_bars_set_margins>` **(** :ref:`int<class_int>` left, :ref:`int<class_int>` top, :ref:`int<class_int>` right, :ref:`int<class_int>` bottom **)** |
  18. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`RID<class_rid>` | :ref:`camera_create<class_VisualServer_camera_create>` **(** **)** |
  20. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`camera_set_cull_mask<class_VisualServer_camera_set_cull_mask>` **(** :ref:`RID<class_rid>` camera, :ref:`int<class_int>` layers **)** |
  22. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`camera_set_environment<class_VisualServer_camera_set_environment>` **(** :ref:`RID<class_rid>` camera, :ref:`RID<class_rid>` env **)** |
  24. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`camera_set_orthogonal<class_VisualServer_camera_set_orthogonal>` **(** :ref:`RID<class_rid>` camera, :ref:`float<class_float>` size, :ref:`float<class_float>` z_near, :ref:`float<class_float>` z_far **)** |
  26. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`camera_set_perspective<class_VisualServer_camera_set_perspective>` **(** :ref:`RID<class_rid>` camera, :ref:`float<class_float>` fovy_degrees, :ref:`float<class_float>` z_near, :ref:`float<class_float>` z_far **)** |
  28. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`camera_set_transform<class_VisualServer_camera_set_transform>` **(** :ref:`RID<class_rid>` camera, :ref:`Transform<class_transform>` transform **)** |
  30. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`camera_set_use_vertical_aspect<class_VisualServer_camera_set_use_vertical_aspect>` **(** :ref:`RID<class_rid>` camera, :ref:`bool<class_bool>` enable **)** |
  32. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`RID<class_rid>` | :ref:`canvas_create<class_VisualServer_canvas_create>` **(** **)** |
  34. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`canvas_item_add_circle<class_VisualServer_canvas_item_add_circle>` **(** :ref:`RID<class_rid>` item, :ref:`Vector2<class_vector2>` pos, :ref:`float<class_float>` radius, :ref:`Color<class_color>` color **)** |
  36. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`canvas_item_add_clip_ignore<class_VisualServer_canvas_item_add_clip_ignore>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` ignore **)** |
  38. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | void | :ref:`canvas_item_add_line<class_VisualServer_canvas_item_add_line>` **(** :ref:`RID<class_rid>` item, :ref:`Vector2<class_vector2>` from, :ref:`Vector2<class_vector2>` to, :ref:`Color<class_color>` color, :ref:`float<class_float>` width=1.0, :ref:`bool<class_bool>` antialiased=false **)** |
  40. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | void | :ref:`canvas_item_add_mesh<class_VisualServer_canvas_item_add_mesh>` **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` mesh, :ref:`RID<class_rid>` skeleton **)** |
  42. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | void | :ref:`canvas_item_add_multimesh<class_VisualServer_canvas_item_add_multimesh>` **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` mesh, :ref:`RID<class_rid>` skeleton **)** |
  44. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | void | :ref:`canvas_item_add_nine_patch<class_VisualServer_canvas_item_add_nine_patch>` **(** :ref:`RID<class_rid>` item, :ref:`Rect2<class_rect2>` rect, :ref:`Rect2<class_rect2>` source, :ref:`RID<class_rid>` texture, :ref:`Vector2<class_vector2>` topleft, :ref:`Vector2<class_vector2>` bottomright, :ref:`int<class_int>` x_axis_mode=0, :ref:`int<class_int>` y_axis_mode=0, :ref:`bool<class_bool>` draw_center=true, :ref:`Color<class_color>` modulate=Color( 1, 1, 1, 1 ), :ref:`RID<class_rid>` normal_map **)** |
  46. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | void | :ref:`canvas_item_add_particles<class_VisualServer_canvas_item_add_particles>` **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` particles, :ref:`RID<class_rid>` texture, :ref:`RID<class_rid>` normal_map, :ref:`int<class_int>` h_frames, :ref:`int<class_int>` v_frames **)** |
  48. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | void | :ref:`canvas_item_add_polygon<class_VisualServer_canvas_item_add_polygon>` **(** :ref:`RID<class_rid>` item, :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolColorArray<class_poolcolorarray>` colors, :ref:`PoolVector2Array<class_poolvector2array>` uvs=PoolVector2Array( ), :ref:`RID<class_rid>` texture, :ref:`RID<class_rid>` normal_map, :ref:`bool<class_bool>` antialiased=false **)** |
  50. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | void | :ref:`canvas_item_add_polyline<class_VisualServer_canvas_item_add_polyline>` **(** :ref:`RID<class_rid>` item, :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolColorArray<class_poolcolorarray>` colors, :ref:`float<class_float>` width=1.0, :ref:`bool<class_bool>` antialiased=false **)** |
  52. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | void | :ref:`canvas_item_add_primitive<class_VisualServer_canvas_item_add_primitive>` **(** :ref:`RID<class_rid>` item, :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolColorArray<class_poolcolorarray>` colors, :ref:`PoolVector2Array<class_poolvector2array>` uvs, :ref:`RID<class_rid>` texture, :ref:`float<class_float>` width=1.0, :ref:`RID<class_rid>` normal_map **)** |
  54. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | void | :ref:`canvas_item_add_rect<class_VisualServer_canvas_item_add_rect>` **(** :ref:`RID<class_rid>` item, :ref:`Rect2<class_rect2>` rect, :ref:`Color<class_color>` color **)** |
  56. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | void | :ref:`canvas_item_add_set_transform<class_VisualServer_canvas_item_add_set_transform>` **(** :ref:`RID<class_rid>` item, :ref:`Transform2D<class_transform2d>` transform **)** |
  58. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | void | :ref:`canvas_item_add_texture_rect<class_VisualServer_canvas_item_add_texture_rect>` **(** :ref:`RID<class_rid>` item, :ref:`Rect2<class_rect2>` rect, :ref:`RID<class_rid>` texture, :ref:`bool<class_bool>` tile=false, :ref:`Color<class_color>` modulate=Color( 1, 1, 1, 1 ), :ref:`bool<class_bool>` transpose=false, :ref:`RID<class_rid>` normal_map **)** |
  60. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | void | :ref:`canvas_item_add_texture_rect_region<class_VisualServer_canvas_item_add_texture_rect_region>` **(** :ref:`RID<class_rid>` item, :ref:`Rect2<class_rect2>` rect, :ref:`RID<class_rid>` texture, :ref:`Rect2<class_rect2>` src_rect, :ref:`Color<class_color>` modulate=Color( 1, 1, 1, 1 ), :ref:`bool<class_bool>` transpose=false, :ref:`RID<class_rid>` normal_map, :ref:`bool<class_bool>` clip_uv=true **)** |
  62. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | void | :ref:`canvas_item_add_triangle_array<class_VisualServer_canvas_item_add_triangle_array>` **(** :ref:`RID<class_rid>` item, :ref:`PoolIntArray<class_poolintarray>` indices, :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolColorArray<class_poolcolorarray>` colors, :ref:`PoolVector2Array<class_poolvector2array>` uvs=PoolVector2Array( ), :ref:`RID<class_rid>` texture, :ref:`int<class_int>` count=-1, :ref:`RID<class_rid>` normal_map **)** |
  64. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | void | :ref:`canvas_item_clear<class_VisualServer_canvas_item_clear>` **(** :ref:`RID<class_rid>` item **)** |
  66. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`RID<class_rid>` | :ref:`canvas_item_create<class_VisualServer_canvas_item_create>` **(** **)** |
  68. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`canvas_item_set_clip<class_VisualServer_canvas_item_set_clip>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` clip **)** |
  70. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`canvas_item_set_copy_to_backbuffer<class_VisualServer_canvas_item_set_copy_to_backbuffer>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled, :ref:`Rect2<class_rect2>` rect **)** |
  72. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`canvas_item_set_custom_rect<class_VisualServer_canvas_item_set_custom_rect>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` use_custom_rect, :ref:`Rect2<class_rect2>` rect=Rect2( 0, 0, 0, 0 ) **)** |
  74. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`canvas_item_set_distance_field_mode<class_VisualServer_canvas_item_set_distance_field_mode>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)** |
  76. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | void | :ref:`canvas_item_set_draw_behind_parent<class_VisualServer_canvas_item_set_draw_behind_parent>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)** |
  78. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | void | :ref:`canvas_item_set_draw_index<class_VisualServer_canvas_item_set_draw_index>` **(** :ref:`RID<class_rid>` item, :ref:`int<class_int>` index **)** |
  80. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`canvas_item_set_light_mask<class_VisualServer_canvas_item_set_light_mask>` **(** :ref:`RID<class_rid>` item, :ref:`int<class_int>` mask **)** |
  82. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | void | :ref:`canvas_item_set_material<class_VisualServer_canvas_item_set_material>` **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` material **)** |
  84. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | void | :ref:`canvas_item_set_modulate<class_VisualServer_canvas_item_set_modulate>` **(** :ref:`RID<class_rid>` item, :ref:`Color<class_color>` color **)** |
  86. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | void | :ref:`canvas_item_set_parent<class_VisualServer_canvas_item_set_parent>` **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` parent **)** |
  88. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | void | :ref:`canvas_item_set_self_modulate<class_VisualServer_canvas_item_set_self_modulate>` **(** :ref:`RID<class_rid>` item, :ref:`Color<class_color>` color **)** |
  90. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | void | :ref:`canvas_item_set_sort_children_by_y<class_VisualServer_canvas_item_set_sort_children_by_y>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)** |
  92. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | void | :ref:`canvas_item_set_transform<class_VisualServer_canvas_item_set_transform>` **(** :ref:`RID<class_rid>` item, :ref:`Transform2D<class_transform2d>` transform **)** |
  94. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. | void | :ref:`canvas_item_set_use_parent_material<class_VisualServer_canvas_item_set_use_parent_material>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)** |
  96. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  97. | void | :ref:`canvas_item_set_visible<class_VisualServer_canvas_item_set_visible>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` visible **)** |
  98. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  99. | void | :ref:`canvas_item_set_z_as_relative_to_parent<class_VisualServer_canvas_item_set_z_as_relative_to_parent>` **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)** |
  100. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  101. | void | :ref:`canvas_item_set_z_index<class_VisualServer_canvas_item_set_z_index>` **(** :ref:`RID<class_rid>` item, :ref:`int<class_int>` z_index **)** |
  102. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  103. | void | :ref:`canvas_light_attach_to_canvas<class_VisualServer_canvas_light_attach_to_canvas>` **(** :ref:`RID<class_rid>` light, :ref:`RID<class_rid>` canvas **)** |
  104. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  105. | :ref:`RID<class_rid>` | :ref:`canvas_light_create<class_VisualServer_canvas_light_create>` **(** **)** |
  106. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  107. | void | :ref:`canvas_light_occluder_attach_to_canvas<class_VisualServer_canvas_light_occluder_attach_to_canvas>` **(** :ref:`RID<class_rid>` occluder, :ref:`RID<class_rid>` canvas **)** |
  108. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  109. | :ref:`RID<class_rid>` | :ref:`canvas_light_occluder_create<class_VisualServer_canvas_light_occluder_create>` **(** **)** |
  110. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  111. | void | :ref:`canvas_light_occluder_set_enabled<class_VisualServer_canvas_light_occluder_set_enabled>` **(** :ref:`RID<class_rid>` occluder, :ref:`bool<class_bool>` enabled **)** |
  112. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  113. | void | :ref:`canvas_light_occluder_set_light_mask<class_VisualServer_canvas_light_occluder_set_light_mask>` **(** :ref:`RID<class_rid>` occluder, :ref:`int<class_int>` mask **)** |
  114. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  115. | void | :ref:`canvas_light_occluder_set_polygon<class_VisualServer_canvas_light_occluder_set_polygon>` **(** :ref:`RID<class_rid>` occluder, :ref:`RID<class_rid>` polygon **)** |
  116. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  117. | void | :ref:`canvas_light_occluder_set_transform<class_VisualServer_canvas_light_occluder_set_transform>` **(** :ref:`RID<class_rid>` occluder, :ref:`Transform2D<class_transform2d>` transform **)** |
  118. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  119. | void | :ref:`canvas_light_set_color<class_VisualServer_canvas_light_set_color>` **(** :ref:`RID<class_rid>` light, :ref:`Color<class_color>` color **)** |
  120. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  121. | void | :ref:`canvas_light_set_enabled<class_VisualServer_canvas_light_set_enabled>` **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enabled **)** |
  122. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  123. | void | :ref:`canvas_light_set_energy<class_VisualServer_canvas_light_set_energy>` **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` energy **)** |
  124. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  125. | void | :ref:`canvas_light_set_height<class_VisualServer_canvas_light_set_height>` **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` height **)** |
  126. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  127. | void | :ref:`canvas_light_set_item_cull_mask<class_VisualServer_canvas_light_set_item_cull_mask>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mask **)** |
  128. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  129. | void | :ref:`canvas_light_set_item_shadow_cull_mask<class_VisualServer_canvas_light_set_item_shadow_cull_mask>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mask **)** |
  130. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  131. | void | :ref:`canvas_light_set_layer_range<class_VisualServer_canvas_light_set_layer_range>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` min_layer, :ref:`int<class_int>` max_layer **)** |
  132. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  133. | void | :ref:`canvas_light_set_mode<class_VisualServer_canvas_light_set_mode>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mode **)** |
  134. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  135. | void | :ref:`canvas_light_set_scale<class_VisualServer_canvas_light_set_scale>` **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` scale **)** |
  136. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  137. | void | :ref:`canvas_light_set_shadow_buffer_size<class_VisualServer_canvas_light_set_shadow_buffer_size>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` size **)** |
  138. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  139. | void | :ref:`canvas_light_set_shadow_color<class_VisualServer_canvas_light_set_shadow_color>` **(** :ref:`RID<class_rid>` light, :ref:`Color<class_color>` color **)** |
  140. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  141. | void | :ref:`canvas_light_set_shadow_enabled<class_VisualServer_canvas_light_set_shadow_enabled>` **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enabled **)** |
  142. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  143. | void | :ref:`canvas_light_set_shadow_filter<class_VisualServer_canvas_light_set_shadow_filter>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` filter **)** |
  144. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  145. | void | :ref:`canvas_light_set_shadow_gradient_length<class_VisualServer_canvas_light_set_shadow_gradient_length>` **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` length **)** |
  146. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  147. | void | :ref:`canvas_light_set_shadow_smooth<class_VisualServer_canvas_light_set_shadow_smooth>` **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` smooth **)** |
  148. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  149. | void | :ref:`canvas_light_set_texture<class_VisualServer_canvas_light_set_texture>` **(** :ref:`RID<class_rid>` light, :ref:`RID<class_rid>` texture **)** |
  150. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  151. | void | :ref:`canvas_light_set_texture_offset<class_VisualServer_canvas_light_set_texture_offset>` **(** :ref:`RID<class_rid>` light, :ref:`Vector2<class_vector2>` offset **)** |
  152. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  153. | void | :ref:`canvas_light_set_transform<class_VisualServer_canvas_light_set_transform>` **(** :ref:`RID<class_rid>` light, :ref:`Transform2D<class_transform2d>` transform **)** |
  154. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  155. | void | :ref:`canvas_light_set_z_range<class_VisualServer_canvas_light_set_z_range>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` min_z, :ref:`int<class_int>` max_z **)** |
  156. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  157. | :ref:`RID<class_rid>` | :ref:`canvas_occluder_polygon_create<class_VisualServer_canvas_occluder_polygon_create>` **(** **)** |
  158. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  159. | void | :ref:`canvas_occluder_polygon_set_cull_mode<class_VisualServer_canvas_occluder_polygon_set_cull_mode>` **(** :ref:`RID<class_rid>` occluder_polygon, :ref:`int<class_int>` mode **)** |
  160. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  161. | void | :ref:`canvas_occluder_polygon_set_shape<class_VisualServer_canvas_occluder_polygon_set_shape>` **(** :ref:`RID<class_rid>` occluder_polygon, :ref:`PoolVector2Array<class_poolvector2array>` shape, :ref:`bool<class_bool>` closed **)** |
  162. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  163. | void | :ref:`canvas_occluder_polygon_set_shape_as_lines<class_VisualServer_canvas_occluder_polygon_set_shape_as_lines>` **(** :ref:`RID<class_rid>` occluder_polygon, :ref:`PoolVector2Array<class_poolvector2array>` shape **)** |
  164. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  165. | void | :ref:`canvas_set_item_mirroring<class_VisualServer_canvas_set_item_mirroring>` **(** :ref:`RID<class_rid>` canvas, :ref:`RID<class_rid>` item, :ref:`Vector2<class_vector2>` mirroring **)** |
  166. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  167. | void | :ref:`canvas_set_modulate<class_VisualServer_canvas_set_modulate>` **(** :ref:`RID<class_rid>` canvas, :ref:`Color<class_color>` color **)** |
  168. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  169. | :ref:`RID<class_rid>` | :ref:`directional_light_create<class_VisualServer_directional_light_create>` **(** **)** |
  170. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  171. | void | :ref:`draw<class_VisualServer_draw>` **(** :ref:`bool<class_bool>` swap_buffers=true **)** |
  172. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  173. | :ref:`RID<class_rid>` | :ref:`environment_create<class_VisualServer_environment_create>` **(** **)** |
  174. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  175. | void | :ref:`environment_set_adjustment<class_VisualServer_environment_set_adjustment>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` brightness, :ref:`float<class_float>` contrast, :ref:`float<class_float>` saturation, :ref:`RID<class_rid>` ramp **)** |
  176. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  177. | void | :ref:`environment_set_ambient_light<class_VisualServer_environment_set_ambient_light>` **(** :ref:`RID<class_rid>` env, :ref:`Color<class_color>` color, :ref:`float<class_float>` energy=1.0, :ref:`float<class_float>` sky_contibution=0.0 **)** |
  178. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  179. | void | :ref:`environment_set_background<class_VisualServer_environment_set_background>` **(** :ref:`RID<class_rid>` env, :ref:`int<class_int>` bg **)** |
  180. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  181. | void | :ref:`environment_set_bg_color<class_VisualServer_environment_set_bg_color>` **(** :ref:`RID<class_rid>` env, :ref:`Color<class_color>` color **)** |
  182. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  183. | void | :ref:`environment_set_bg_energy<class_VisualServer_environment_set_bg_energy>` **(** :ref:`RID<class_rid>` env, :ref:`float<class_float>` energy **)** |
  184. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  185. | void | :ref:`environment_set_canvas_max_layer<class_VisualServer_environment_set_canvas_max_layer>` **(** :ref:`RID<class_rid>` env, :ref:`int<class_int>` max_layer **)** |
  186. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  187. | void | :ref:`environment_set_dof_blur_far<class_VisualServer_environment_set_dof_blur_far>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` distance, :ref:`float<class_float>` transition, :ref:`float<class_float>` far_amount, :ref:`int<class_int>` quality **)** |
  188. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  189. | void | :ref:`environment_set_dof_blur_near<class_VisualServer_environment_set_dof_blur_near>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` distance, :ref:`float<class_float>` transition, :ref:`float<class_float>` far_amount, :ref:`int<class_int>` quality **)** |
  190. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  191. | void | :ref:`environment_set_fog<class_VisualServer_environment_set_fog>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`Color<class_color>` color, :ref:`Color<class_color>` sun_color, :ref:`float<class_float>` sun_amount **)** |
  192. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  193. | void | :ref:`environment_set_fog_depth<class_VisualServer_environment_set_fog_depth>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` depth_begin, :ref:`float<class_float>` depth_curve, :ref:`bool<class_bool>` transmit, :ref:`float<class_float>` transmit_curve **)** |
  194. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  195. | void | :ref:`environment_set_fog_height<class_VisualServer_environment_set_fog_height>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` min_height, :ref:`float<class_float>` max_height, :ref:`float<class_float>` height_curve **)** |
  196. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  197. | void | :ref:`environment_set_glow<class_VisualServer_environment_set_glow>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`int<class_int>` level_flags, :ref:`float<class_float>` intensity, :ref:`float<class_float>` strength, :ref:`float<class_float>` bloom_threshold, :ref:`int<class_int>` blend_mode, :ref:`float<class_float>` hdr_bleed_threshold, :ref:`float<class_float>` hdr_bleed_scale, :ref:`bool<class_bool>` bicubic_upscale **)** |
  198. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  199. | void | :ref:`environment_set_sky<class_VisualServer_environment_set_sky>` **(** :ref:`RID<class_rid>` env, :ref:`RID<class_rid>` sky **)** |
  200. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  201. | void | :ref:`environment_set_sky_custom_fov<class_VisualServer_environment_set_sky_custom_fov>` **(** :ref:`RID<class_rid>` env, :ref:`float<class_float>` scale **)** |
  202. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  203. | void | :ref:`environment_set_ssao<class_VisualServer_environment_set_ssao>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` radius, :ref:`float<class_float>` intensity, :ref:`float<class_float>` radius2, :ref:`float<class_float>` intensity2, :ref:`float<class_float>` bias, :ref:`float<class_float>` light_affect, :ref:`Color<class_color>` color, :ref:`int<class_int>` quality, :ref:`int<class_int>` blur, :ref:`float<class_float>` bilateral_sharpness **)** |
  204. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  205. | void | :ref:`environment_set_ssr<class_VisualServer_environment_set_ssr>` **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`int<class_int>` max_steps, :ref:`float<class_float>` fade_in, :ref:`float<class_float>` fade_out, :ref:`float<class_float>` depth_tolerance, :ref:`bool<class_bool>` roughness **)** |
  206. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  207. | void | :ref:`environment_set_tonemap<class_VisualServer_environment_set_tonemap>` **(** :ref:`RID<class_rid>` env, :ref:`int<class_int>` tone_mapper, :ref:`float<class_float>` exposure, :ref:`float<class_float>` white, :ref:`bool<class_bool>` auto_exposure, :ref:`float<class_float>` min_luminance, :ref:`float<class_float>` max_luminance, :ref:`float<class_float>` auto_exp_speed, :ref:`float<class_float>` auto_exp_grey **)** |
  208. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  209. | void | :ref:`finish<class_VisualServer_finish>` **(** **)** |
  210. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  211. | void | :ref:`force_draw<class_VisualServer_force_draw>` **(** :ref:`bool<class_bool>` swap_buffers=true **)** |
  212. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  213. | void | :ref:`force_sync<class_VisualServer_force_sync>` **(** **)** |
  214. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  215. | void | :ref:`free_rid<class_VisualServer_free_rid>` **(** :ref:`RID<class_rid>` rid **)** |
  216. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  217. | :ref:`int<class_int>` | :ref:`get_render_info<class_VisualServer_get_render_info>` **(** :ref:`int<class_int>` info **)** |
  218. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  219. | :ref:`RID<class_rid>` | :ref:`get_test_cube<class_VisualServer_get_test_cube>` **(** **)** |
  220. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  221. | :ref:`RID<class_rid>` | :ref:`get_test_texture<class_VisualServer_get_test_texture>` **(** **)** |
  222. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  223. | :ref:`RID<class_rid>` | :ref:`get_white_texture<class_VisualServer_get_white_texture>` **(** **)** |
  224. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  225. | :ref:`RID<class_rid>` | :ref:`gi_probe_create<class_VisualServer_gi_probe_create>` **(** **)** |
  226. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  227. | :ref:`float<class_float>` | :ref:`gi_probe_get_bias<class_VisualServer_gi_probe_get_bias>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  228. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  229. | :ref:`AABB<class_aabb>` | :ref:`gi_probe_get_bounds<class_VisualServer_gi_probe_get_bounds>` **(** :ref:`RID<class_rid>` probe **)** const |
  230. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  231. | :ref:`float<class_float>` | :ref:`gi_probe_get_cell_size<class_VisualServer_gi_probe_get_cell_size>` **(** :ref:`RID<class_rid>` probe **)** const |
  232. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  233. | :ref:`PoolIntArray<class_poolintarray>` | :ref:`gi_probe_get_dynamic_data<class_VisualServer_gi_probe_get_dynamic_data>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  234. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  235. | :ref:`int<class_int>` | :ref:`gi_probe_get_dynamic_range<class_VisualServer_gi_probe_get_dynamic_range>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  236. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  237. | :ref:`float<class_float>` | :ref:`gi_probe_get_energy<class_VisualServer_gi_probe_get_energy>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  238. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  239. | :ref:`float<class_float>` | :ref:`gi_probe_get_normal_bias<class_VisualServer_gi_probe_get_normal_bias>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  240. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  241. | :ref:`float<class_float>` | :ref:`gi_probe_get_propagation<class_VisualServer_gi_probe_get_propagation>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  242. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  243. | :ref:`Transform<class_transform>` | :ref:`gi_probe_get_to_cell_xform<class_VisualServer_gi_probe_get_to_cell_xform>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  244. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  245. | :ref:`bool<class_bool>` | :ref:`gi_probe_is_compressed<class_VisualServer_gi_probe_is_compressed>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  246. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  247. | :ref:`bool<class_bool>` | :ref:`gi_probe_is_interior<class_VisualServer_gi_probe_is_interior>` **(** :ref:`RID<class_rid>` arg0 **)** const |
  248. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  249. | void | :ref:`gi_probe_set_bias<class_VisualServer_gi_probe_set_bias>` **(** :ref:`RID<class_rid>` bias, :ref:`float<class_float>` arg1 **)** |
  250. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  251. | void | :ref:`gi_probe_set_bounds<class_VisualServer_gi_probe_set_bounds>` **(** :ref:`RID<class_rid>` probe, :ref:`AABB<class_aabb>` bounds **)** |
  252. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  253. | void | :ref:`gi_probe_set_cell_size<class_VisualServer_gi_probe_set_cell_size>` **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` range **)** |
  254. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  255. | void | :ref:`gi_probe_set_compress<class_VisualServer_gi_probe_set_compress>` **(** :ref:`RID<class_rid>` enable, :ref:`bool<class_bool>` arg1 **)** |
  256. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  257. | void | :ref:`gi_probe_set_dynamic_data<class_VisualServer_gi_probe_set_dynamic_data>` **(** :ref:`RID<class_rid>` data, :ref:`PoolIntArray<class_poolintarray>` arg1 **)** |
  258. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  259. | void | :ref:`gi_probe_set_dynamic_range<class_VisualServer_gi_probe_set_dynamic_range>` **(** :ref:`RID<class_rid>` range, :ref:`int<class_int>` arg1 **)** |
  260. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  261. | void | :ref:`gi_probe_set_energy<class_VisualServer_gi_probe_set_energy>` **(** :ref:`RID<class_rid>` energy, :ref:`float<class_float>` arg1 **)** |
  262. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  263. | void | :ref:`gi_probe_set_interior<class_VisualServer_gi_probe_set_interior>` **(** :ref:`RID<class_rid>` enable, :ref:`bool<class_bool>` arg1 **)** |
  264. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  265. | void | :ref:`gi_probe_set_normal_bias<class_VisualServer_gi_probe_set_normal_bias>` **(** :ref:`RID<class_rid>` bias, :ref:`float<class_float>` arg1 **)** |
  266. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  267. | void | :ref:`gi_probe_set_propagation<class_VisualServer_gi_probe_set_propagation>` **(** :ref:`RID<class_rid>` propagation, :ref:`float<class_float>` arg1 **)** |
  268. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  269. | void | :ref:`gi_probe_set_to_cell_xform<class_VisualServer_gi_probe_set_to_cell_xform>` **(** :ref:`RID<class_rid>` xform, :ref:`Transform<class_transform>` arg1 **)** |
  270. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  271. | :ref:`bool<class_bool>` | :ref:`has_changed<class_VisualServer_has_changed>` **(** **)** const |
  272. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  273. | :ref:`bool<class_bool>` | :ref:`has_feature<class_VisualServer_has_feature>` **(** :ref:`int<class_int>` feature **)** const |
  274. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  275. | :ref:`bool<class_bool>` | :ref:`has_os_feature<class_VisualServer_has_os_feature>` **(** :ref:`String<class_string>` feature **)** const |
  276. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  277. | void | :ref:`immediate_begin<class_VisualServer_immediate_begin>` **(** :ref:`RID<class_rid>` immediate, :ref:`int<class_int>` primitive, :ref:`RID<class_rid>` texture **)** |
  278. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  279. | void | :ref:`immediate_clear<class_VisualServer_immediate_clear>` **(** :ref:`RID<class_rid>` immediate **)** |
  280. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  281. | void | :ref:`immediate_color<class_VisualServer_immediate_color>` **(** :ref:`RID<class_rid>` immediate, :ref:`Color<class_color>` color **)** |
  282. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  283. | :ref:`RID<class_rid>` | :ref:`immediate_create<class_VisualServer_immediate_create>` **(** **)** |
  284. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  285. | void | :ref:`immediate_end<class_VisualServer_immediate_end>` **(** :ref:`RID<class_rid>` immediate **)** |
  286. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  287. | :ref:`RID<class_rid>` | :ref:`immediate_get_material<class_VisualServer_immediate_get_material>` **(** :ref:`RID<class_rid>` immediate **)** const |
  288. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  289. | void | :ref:`immediate_normal<class_VisualServer_immediate_normal>` **(** :ref:`RID<class_rid>` immediate, :ref:`Vector3<class_vector3>` normal **)** |
  290. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  291. | void | :ref:`immediate_set_material<class_VisualServer_immediate_set_material>` **(** :ref:`RID<class_rid>` immediate, :ref:`RID<class_rid>` material **)** |
  292. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  293. | void | :ref:`immediate_tangent<class_VisualServer_immediate_tangent>` **(** :ref:`RID<class_rid>` immediate, :ref:`Plane<class_plane>` tangent **)** |
  294. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  295. | void | :ref:`immediate_uv<class_VisualServer_immediate_uv>` **(** :ref:`RID<class_rid>` immediate, :ref:`Vector2<class_vector2>` tex_uv **)** |
  296. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  297. | void | :ref:`immediate_uv2<class_VisualServer_immediate_uv2>` **(** :ref:`RID<class_rid>` immediate, :ref:`Vector2<class_vector2>` tex_uv **)** |
  298. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  299. | void | :ref:`immediate_vertex<class_VisualServer_immediate_vertex>` **(** :ref:`RID<class_rid>` immediate, :ref:`Vector3<class_vector3>` vertex **)** |
  300. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  301. | void | :ref:`immediate_vertex_2d<class_VisualServer_immediate_vertex_2d>` **(** :ref:`RID<class_rid>` immediate, :ref:`Vector2<class_vector2>` vertex **)** |
  302. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  303. | void | :ref:`init<class_VisualServer_init>` **(** **)** |
  304. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  305. | void | :ref:`instance_attach_object_instance_id<class_VisualServer_instance_attach_object_instance_id>` **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` id **)** |
  306. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  307. | void | :ref:`instance_attach_skeleton<class_VisualServer_instance_attach_skeleton>` **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` skeleton **)** |
  308. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  309. | :ref:`RID<class_rid>` | :ref:`instance_create<class_VisualServer_instance_create>` **(** **)** |
  310. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  311. | :ref:`RID<class_rid>` | :ref:`instance_create2<class_VisualServer_instance_create2>` **(** :ref:`RID<class_rid>` base, :ref:`RID<class_rid>` scenario **)** |
  312. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  313. | void | :ref:`instance_geometry_set_as_instance_lod<class_VisualServer_instance_geometry_set_as_instance_lod>` **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` as_lod_of_instance **)** |
  314. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  315. | void | :ref:`instance_geometry_set_cast_shadows_setting<class_VisualServer_instance_geometry_set_cast_shadows_setting>` **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` shadow_casting_setting **)** |
  316. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  317. | void | :ref:`instance_geometry_set_draw_range<class_VisualServer_instance_geometry_set_draw_range>` **(** :ref:`RID<class_rid>` instance, :ref:`float<class_float>` min, :ref:`float<class_float>` max, :ref:`float<class_float>` min_margin, :ref:`float<class_float>` max_margin **)** |
  318. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  319. | void | :ref:`instance_geometry_set_flag<class_VisualServer_instance_geometry_set_flag>` **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enabled **)** |
  320. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  321. | void | :ref:`instance_geometry_set_material_override<class_VisualServer_instance_geometry_set_material_override>` **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` material **)** |
  322. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  323. | void | :ref:`instance_set_base<class_VisualServer_instance_set_base>` **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` base **)** |
  324. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  325. | void | :ref:`instance_set_blend_shape_weight<class_VisualServer_instance_set_blend_shape_weight>` **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` shape, :ref:`float<class_float>` weight **)** |
  326. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  327. | void | :ref:`instance_set_custom_aabb<class_VisualServer_instance_set_custom_aabb>` **(** :ref:`RID<class_rid>` instance, :ref:`AABB<class_aabb>` aabb **)** |
  328. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  329. | void | :ref:`instance_set_exterior<class_VisualServer_instance_set_exterior>` **(** :ref:`RID<class_rid>` instance, :ref:`bool<class_bool>` enabled **)** |
  330. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  331. | void | :ref:`instance_set_extra_visibility_margin<class_VisualServer_instance_set_extra_visibility_margin>` **(** :ref:`RID<class_rid>` instance, :ref:`float<class_float>` margin **)** |
  332. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  333. | void | :ref:`instance_set_layer_mask<class_VisualServer_instance_set_layer_mask>` **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` mask **)** |
  334. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  335. | void | :ref:`instance_set_scenario<class_VisualServer_instance_set_scenario>` **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` scenario **)** |
  336. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  337. | void | :ref:`instance_set_surface_material<class_VisualServer_instance_set_surface_material>` **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` surface, :ref:`RID<class_rid>` material **)** |
  338. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  339. | void | :ref:`instance_set_transform<class_VisualServer_instance_set_transform>` **(** :ref:`RID<class_rid>` instance, :ref:`Transform<class_transform>` transform **)** |
  340. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  341. | void | :ref:`instance_set_use_lightmap<class_VisualServer_instance_set_use_lightmap>` **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` lightmap_instance, :ref:`RID<class_rid>` lightmap **)** |
  342. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  343. | void | :ref:`instance_set_visible<class_VisualServer_instance_set_visible>` **(** :ref:`RID<class_rid>` instance, :ref:`bool<class_bool>` visible **)** |
  344. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  345. | :ref:`Array<class_array>` | :ref:`instances_cull_aabb<class_VisualServer_instances_cull_aabb>` **(** :ref:`AABB<class_aabb>` aabb, :ref:`RID<class_rid>` scenario **)** const |
  346. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  347. | :ref:`Array<class_array>` | :ref:`instances_cull_convex<class_VisualServer_instances_cull_convex>` **(** :ref:`Array<class_array>` convex, :ref:`RID<class_rid>` scenario **)** const |
  348. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  349. | :ref:`Array<class_array>` | :ref:`instances_cull_ray<class_VisualServer_instances_cull_ray>` **(** :ref:`Vector3<class_vector3>` from, :ref:`Vector3<class_vector3>` to, :ref:`RID<class_rid>` scenario **)** const |
  350. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  351. | void | :ref:`light_directional_set_blend_splits<class_VisualServer_light_directional_set_blend_splits>` **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enable **)** |
  352. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  353. | void | :ref:`light_directional_set_shadow_depth_range_mode<class_VisualServer_light_directional_set_shadow_depth_range_mode>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` range_mode **)** |
  354. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  355. | void | :ref:`light_directional_set_shadow_mode<class_VisualServer_light_directional_set_shadow_mode>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mode **)** |
  356. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  357. | void | :ref:`light_omni_set_shadow_detail<class_VisualServer_light_omni_set_shadow_detail>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` detail **)** |
  358. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  359. | void | :ref:`light_omni_set_shadow_mode<class_VisualServer_light_omni_set_shadow_mode>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mode **)** |
  360. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  361. | void | :ref:`light_set_color<class_VisualServer_light_set_color>` **(** :ref:`RID<class_rid>` light, :ref:`Color<class_color>` color **)** |
  362. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  363. | void | :ref:`light_set_cull_mask<class_VisualServer_light_set_cull_mask>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mask **)** |
  364. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  365. | void | :ref:`light_set_negative<class_VisualServer_light_set_negative>` **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enable **)** |
  366. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  367. | void | :ref:`light_set_param<class_VisualServer_light_set_param>` **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` param, :ref:`float<class_float>` value **)** |
  368. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  369. | void | :ref:`light_set_projector<class_VisualServer_light_set_projector>` **(** :ref:`RID<class_rid>` light, :ref:`RID<class_rid>` texture **)** |
  370. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  371. | void | :ref:`light_set_reverse_cull_face_mode<class_VisualServer_light_set_reverse_cull_face_mode>` **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enabled **)** |
  372. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  373. | void | :ref:`light_set_shadow<class_VisualServer_light_set_shadow>` **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enabled **)** |
  374. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  375. | void | :ref:`light_set_shadow_color<class_VisualServer_light_set_shadow_color>` **(** :ref:`RID<class_rid>` light, :ref:`Color<class_color>` color **)** |
  376. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  377. | :ref:`RID<class_rid>` | :ref:`lightmap_capture_create<class_VisualServer_lightmap_capture_create>` **(** **)** |
  378. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  379. | :ref:`AABB<class_aabb>` | :ref:`lightmap_capture_get_bounds<class_VisualServer_lightmap_capture_get_bounds>` **(** :ref:`RID<class_rid>` capture **)** const |
  380. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  381. | :ref:`float<class_float>` | :ref:`lightmap_capture_get_energy<class_VisualServer_lightmap_capture_get_energy>` **(** :ref:`RID<class_rid>` capture **)** const |
  382. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  383. | :ref:`PoolByteArray<class_poolbytearray>` | :ref:`lightmap_capture_get_octree<class_VisualServer_lightmap_capture_get_octree>` **(** :ref:`RID<class_rid>` capture **)** const |
  384. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  385. | :ref:`int<class_int>` | :ref:`lightmap_capture_get_octree_cell_subdiv<class_VisualServer_lightmap_capture_get_octree_cell_subdiv>` **(** :ref:`RID<class_rid>` capture **)** const |
  386. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  387. | :ref:`Transform<class_transform>` | :ref:`lightmap_capture_get_octree_cell_transform<class_VisualServer_lightmap_capture_get_octree_cell_transform>` **(** :ref:`RID<class_rid>` capture **)** const |
  388. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  389. | void | :ref:`lightmap_capture_set_bounds<class_VisualServer_lightmap_capture_set_bounds>` **(** :ref:`RID<class_rid>` capture, :ref:`AABB<class_aabb>` bounds **)** |
  390. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  391. | void | :ref:`lightmap_capture_set_energy<class_VisualServer_lightmap_capture_set_energy>` **(** :ref:`RID<class_rid>` capture, :ref:`float<class_float>` energy **)** |
  392. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  393. | void | :ref:`lightmap_capture_set_octree<class_VisualServer_lightmap_capture_set_octree>` **(** :ref:`RID<class_rid>` capture, :ref:`PoolByteArray<class_poolbytearray>` octree **)** |
  394. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  395. | void | :ref:`lightmap_capture_set_octree_cell_subdiv<class_VisualServer_lightmap_capture_set_octree_cell_subdiv>` **(** :ref:`RID<class_rid>` capture, :ref:`int<class_int>` subdiv **)** |
  396. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  397. | void | :ref:`lightmap_capture_set_octree_cell_transform<class_VisualServer_lightmap_capture_set_octree_cell_transform>` **(** :ref:`RID<class_rid>` capture, :ref:`Transform<class_transform>` xform **)** |
  398. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  399. | :ref:`RID<class_rid>` | :ref:`make_sphere_mesh<class_VisualServer_make_sphere_mesh>` **(** :ref:`int<class_int>` latitudes, :ref:`int<class_int>` longitudes, :ref:`float<class_float>` radius **)** |
  400. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  401. | :ref:`RID<class_rid>` | :ref:`material_create<class_VisualServer_material_create>` **(** **)** |
  402. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  403. | :ref:`Variant<class_variant>` | :ref:`material_get_param<class_VisualServer_material_get_param>` **(** :ref:`RID<class_rid>` material, :ref:`String<class_string>` parameter **)** const |
  404. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  405. | :ref:`RID<class_rid>` | :ref:`material_get_shader<class_VisualServer_material_get_shader>` **(** :ref:`RID<class_rid>` shader_material **)** const |
  406. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  407. | void | :ref:`material_set_line_width<class_VisualServer_material_set_line_width>` **(** :ref:`RID<class_rid>` material, :ref:`float<class_float>` width **)** |
  408. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  409. | void | :ref:`material_set_next_pass<class_VisualServer_material_set_next_pass>` **(** :ref:`RID<class_rid>` material, :ref:`RID<class_rid>` next_material **)** |
  410. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  411. | void | :ref:`material_set_param<class_VisualServer_material_set_param>` **(** :ref:`RID<class_rid>` material, :ref:`String<class_string>` parameter, :ref:`Variant<class_variant>` value **)** |
  412. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  413. | void | :ref:`material_set_render_priority<class_VisualServer_material_set_render_priority>` **(** :ref:`RID<class_rid>` material, :ref:`int<class_int>` priority **)** |
  414. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  415. | void | :ref:`material_set_shader<class_VisualServer_material_set_shader>` **(** :ref:`RID<class_rid>` shader_material, :ref:`RID<class_rid>` shader **)** |
  416. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  417. | void | :ref:`mesh_add_surface_from_arrays<class_VisualServer_mesh_add_surface_from_arrays>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` primtive, :ref:`Array<class_array>` arrays, :ref:`Array<class_array>` blend_shapes=[ ], :ref:`int<class_int>` compress_format=97792 **)** |
  418. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  419. | void | :ref:`mesh_clear<class_VisualServer_mesh_clear>` **(** :ref:`RID<class_rid>` mesh **)** |
  420. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  421. | :ref:`RID<class_rid>` | :ref:`mesh_create<class_VisualServer_mesh_create>` **(** **)** |
  422. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  423. | :ref:`int<class_int>` | :ref:`mesh_get_blend_shape_count<class_VisualServer_mesh_get_blend_shape_count>` **(** :ref:`RID<class_rid>` mesh **)** const |
  424. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  425. | :ref:`int<class_int>` | :ref:`mesh_get_blend_shape_mode<class_VisualServer_mesh_get_blend_shape_mode>` **(** :ref:`RID<class_rid>` mesh **)** const |
  426. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  427. | :ref:`AABB<class_aabb>` | :ref:`mesh_get_custom_aabb<class_VisualServer_mesh_get_custom_aabb>` **(** :ref:`RID<class_rid>` mesh **)** const |
  428. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  429. | :ref:`int<class_int>` | :ref:`mesh_get_surface_count<class_VisualServer_mesh_get_surface_count>` **(** :ref:`RID<class_rid>` mesh **)** const |
  430. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  431. | void | :ref:`mesh_remove_surface<class_VisualServer_mesh_remove_surface>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` index **)** |
  432. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  433. | void | :ref:`mesh_set_blend_shape_count<class_VisualServer_mesh_set_blend_shape_count>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` amount **)** |
  434. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  435. | void | :ref:`mesh_set_blend_shape_mode<class_VisualServer_mesh_set_blend_shape_mode>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` mode **)** |
  436. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  437. | void | :ref:`mesh_set_custom_aabb<class_VisualServer_mesh_set_custom_aabb>` **(** :ref:`RID<class_rid>` mesh, :ref:`AABB<class_aabb>` aabb **)** |
  438. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  439. | :ref:`AABB<class_aabb>` | :ref:`mesh_surface_get_aabb<class_VisualServer_mesh_surface_get_aabb>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  440. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  441. | :ref:`PoolByteArray<class_poolbytearray>` | :ref:`mesh_surface_get_array<class_VisualServer_mesh_surface_get_array>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  442. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  443. | :ref:`int<class_int>` | :ref:`mesh_surface_get_array_index_len<class_VisualServer_mesh_surface_get_array_index_len>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  444. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  445. | :ref:`int<class_int>` | :ref:`mesh_surface_get_array_len<class_VisualServer_mesh_surface_get_array_len>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  446. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  447. | :ref:`Array<class_array>` | :ref:`mesh_surface_get_arrays<class_VisualServer_mesh_surface_get_arrays>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  448. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  449. | :ref:`Array<class_array>` | :ref:`mesh_surface_get_blend_shape_arrays<class_VisualServer_mesh_surface_get_blend_shape_arrays>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  450. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  451. | :ref:`int<class_int>` | :ref:`mesh_surface_get_format<class_VisualServer_mesh_surface_get_format>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  452. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  453. | :ref:`PoolByteArray<class_poolbytearray>` | :ref:`mesh_surface_get_index_array<class_VisualServer_mesh_surface_get_index_array>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  454. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  455. | :ref:`RID<class_rid>` | :ref:`mesh_surface_get_material<class_VisualServer_mesh_surface_get_material>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  456. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  457. | :ref:`int<class_int>` | :ref:`mesh_surface_get_primitive_type<class_VisualServer_mesh_surface_get_primitive_type>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  458. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  459. | :ref:`Array<class_array>` | :ref:`mesh_surface_get_skeleton_aabb<class_VisualServer_mesh_surface_get_skeleton_aabb>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const |
  460. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  461. | void | :ref:`mesh_surface_set_material<class_VisualServer_mesh_surface_set_material>` **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface, :ref:`RID<class_rid>` material **)** |
  462. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  463. | void | :ref:`multimesh_allocate<class_VisualServer_multimesh_allocate>` **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` instances, :ref:`int<class_int>` transform_format, :ref:`int<class_int>` color_format **)** |
  464. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  465. | :ref:`AABB<class_aabb>` | :ref:`multimesh_get_aabb<class_VisualServer_multimesh_get_aabb>` **(** :ref:`RID<class_rid>` multimesh **)** const |
  466. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  467. | :ref:`int<class_int>` | :ref:`multimesh_get_instance_count<class_VisualServer_multimesh_get_instance_count>` **(** :ref:`RID<class_rid>` multimesh **)** const |
  468. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  469. | :ref:`RID<class_rid>` | :ref:`multimesh_get_mesh<class_VisualServer_multimesh_get_mesh>` **(** :ref:`RID<class_rid>` multimesh **)** const |
  470. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  471. | :ref:`int<class_int>` | :ref:`multimesh_get_visible_instances<class_VisualServer_multimesh_get_visible_instances>` **(** :ref:`RID<class_rid>` multimesh **)** const |
  472. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  473. | :ref:`Color<class_color>` | :ref:`multimesh_instance_get_color<class_VisualServer_multimesh_instance_get_color>` **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index **)** const |
  474. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  475. | :ref:`Transform<class_transform>` | :ref:`multimesh_instance_get_transform<class_VisualServer_multimesh_instance_get_transform>` **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index **)** const |
  476. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  477. | :ref:`Transform2D<class_transform2d>` | :ref:`multimesh_instance_get_transform_2d<class_VisualServer_multimesh_instance_get_transform_2d>` **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index **)** const |
  478. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  479. | void | :ref:`multimesh_instance_set_color<class_VisualServer_multimesh_instance_set_color>` **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index, :ref:`Color<class_color>` color **)** |
  480. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  481. | void | :ref:`multimesh_instance_set_transform<class_VisualServer_multimesh_instance_set_transform>` **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index, :ref:`Transform<class_transform>` transform **)** |
  482. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  483. | void | :ref:`multimesh_instance_set_transform_2d<class_VisualServer_multimesh_instance_set_transform_2d>` **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index, :ref:`Transform2D<class_transform2d>` transform **)** |
  484. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  485. | void | :ref:`multimesh_set_mesh<class_VisualServer_multimesh_set_mesh>` **(** :ref:`RID<class_rid>` multimesh, :ref:`RID<class_rid>` mesh **)** |
  486. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  487. | void | :ref:`multimesh_set_visible_instances<class_VisualServer_multimesh_set_visible_instances>` **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` visible **)** |
  488. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  489. | :ref:`RID<class_rid>` | :ref:`omni_light_create<class_VisualServer_omni_light_create>` **(** **)** |
  490. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  491. | :ref:`RID<class_rid>` | :ref:`particles_create<class_VisualServer_particles_create>` **(** **)** |
  492. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  493. | :ref:`AABB<class_aabb>` | :ref:`particles_get_current_aabb<class_VisualServer_particles_get_current_aabb>` **(** :ref:`RID<class_rid>` particles **)** |
  494. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  495. | :ref:`bool<class_bool>` | :ref:`particles_get_emitting<class_VisualServer_particles_get_emitting>` **(** :ref:`RID<class_rid>` particles **)** |
  496. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  497. | void | :ref:`particles_restart<class_VisualServer_particles_restart>` **(** :ref:`RID<class_rid>` particles **)** |
  498. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  499. | void | :ref:`particles_set_amount<class_VisualServer_particles_set_amount>` **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` amount **)** |
  500. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  501. | void | :ref:`particles_set_custom_aabb<class_VisualServer_particles_set_custom_aabb>` **(** :ref:`RID<class_rid>` particles, :ref:`AABB<class_aabb>` aabb **)** |
  502. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  503. | void | :ref:`particles_set_draw_order<class_VisualServer_particles_set_draw_order>` **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` order **)** |
  504. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  505. | void | :ref:`particles_set_draw_pass_mesh<class_VisualServer_particles_set_draw_pass_mesh>` **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` pass, :ref:`RID<class_rid>` mesh **)** |
  506. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  507. | void | :ref:`particles_set_draw_passes<class_VisualServer_particles_set_draw_passes>` **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` count **)** |
  508. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  509. | void | :ref:`particles_set_emission_transform<class_VisualServer_particles_set_emission_transform>` **(** :ref:`RID<class_rid>` particles, :ref:`Transform<class_transform>` transform **)** |
  510. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  511. | void | :ref:`particles_set_emitting<class_VisualServer_particles_set_emitting>` **(** :ref:`RID<class_rid>` particles, :ref:`bool<class_bool>` emitting **)** |
  512. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  513. | void | :ref:`particles_set_explosiveness_ratio<class_VisualServer_particles_set_explosiveness_ratio>` **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` ratio **)** |
  514. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  515. | void | :ref:`particles_set_fixed_fps<class_VisualServer_particles_set_fixed_fps>` **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` fps **)** |
  516. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  517. | void | :ref:`particles_set_fractional_delta<class_VisualServer_particles_set_fractional_delta>` **(** :ref:`RID<class_rid>` particles, :ref:`bool<class_bool>` enable **)** |
  518. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  519. | void | :ref:`particles_set_lifetime<class_VisualServer_particles_set_lifetime>` **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` lifetime **)** |
  520. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  521. | void | :ref:`particles_set_one_shot<class_VisualServer_particles_set_one_shot>` **(** :ref:`RID<class_rid>` particles, :ref:`bool<class_bool>` one_shot **)** |
  522. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  523. | void | :ref:`particles_set_pre_process_time<class_VisualServer_particles_set_pre_process_time>` **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` time **)** |
  524. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  525. | void | :ref:`particles_set_process_material<class_VisualServer_particles_set_process_material>` **(** :ref:`RID<class_rid>` particles, :ref:`RID<class_rid>` material **)** |
  526. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  527. | void | :ref:`particles_set_randomness_ratio<class_VisualServer_particles_set_randomness_ratio>` **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` ratio **)** |
  528. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  529. | void | :ref:`particles_set_speed_scale<class_VisualServer_particles_set_speed_scale>` **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` scale **)** |
  530. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  531. | void | :ref:`particles_set_use_local_coordinates<class_VisualServer_particles_set_use_local_coordinates>` **(** :ref:`RID<class_rid>` particles, :ref:`bool<class_bool>` enable **)** |
  532. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  533. | :ref:`RID<class_rid>` | :ref:`reflection_probe_create<class_VisualServer_reflection_probe_create>` **(** **)** |
  534. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  535. | void | :ref:`reflection_probe_set_as_interior<class_VisualServer_reflection_probe_set_as_interior>` **(** :ref:`RID<class_rid>` probe, :ref:`bool<class_bool>` enable **)** |
  536. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  537. | void | :ref:`reflection_probe_set_cull_mask<class_VisualServer_reflection_probe_set_cull_mask>` **(** :ref:`RID<class_rid>` probe, :ref:`int<class_int>` layers **)** |
  538. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  539. | void | :ref:`reflection_probe_set_enable_box_projection<class_VisualServer_reflection_probe_set_enable_box_projection>` **(** :ref:`RID<class_rid>` probe, :ref:`bool<class_bool>` enable **)** |
  540. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  541. | void | :ref:`reflection_probe_set_enable_shadows<class_VisualServer_reflection_probe_set_enable_shadows>` **(** :ref:`RID<class_rid>` probe, :ref:`bool<class_bool>` enable **)** |
  542. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  543. | void | :ref:`reflection_probe_set_extents<class_VisualServer_reflection_probe_set_extents>` **(** :ref:`RID<class_rid>` probe, :ref:`Vector3<class_vector3>` extents **)** |
  544. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  545. | void | :ref:`reflection_probe_set_intensity<class_VisualServer_reflection_probe_set_intensity>` **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` intensity **)** |
  546. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  547. | void | :ref:`reflection_probe_set_interior_ambient<class_VisualServer_reflection_probe_set_interior_ambient>` **(** :ref:`RID<class_rid>` probe, :ref:`Color<class_color>` color **)** |
  548. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  549. | void | :ref:`reflection_probe_set_interior_ambient_energy<class_VisualServer_reflection_probe_set_interior_ambient_energy>` **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` energy **)** |
  550. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  551. | void | :ref:`reflection_probe_set_interior_ambient_probe_contribution<class_VisualServer_reflection_probe_set_interior_ambient_probe_contribution>` **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` contrib **)** |
  552. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  553. | void | :ref:`reflection_probe_set_max_distance<class_VisualServer_reflection_probe_set_max_distance>` **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` distance **)** |
  554. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  555. | void | :ref:`reflection_probe_set_origin_offset<class_VisualServer_reflection_probe_set_origin_offset>` **(** :ref:`RID<class_rid>` probe, :ref:`Vector3<class_vector3>` offset **)** |
  556. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  557. | void | :ref:`reflection_probe_set_update_mode<class_VisualServer_reflection_probe_set_update_mode>` **(** :ref:`RID<class_rid>` probe, :ref:`int<class_int>` mode **)** |
  558. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  559. | void | :ref:`request_frame_drawn_callback<class_VisualServer_request_frame_drawn_callback>` **(** :ref:`Object<class_object>` where, :ref:`String<class_string>` method, :ref:`Variant<class_variant>` userdata **)** |
  560. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  561. | :ref:`RID<class_rid>` | :ref:`scenario_create<class_VisualServer_scenario_create>` **(** **)** |
  562. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  563. | void | :ref:`scenario_set_debug<class_VisualServer_scenario_set_debug>` **(** :ref:`RID<class_rid>` scenario, :ref:`int<class_int>` debug_mode **)** |
  564. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  565. | void | :ref:`scenario_set_environment<class_VisualServer_scenario_set_environment>` **(** :ref:`RID<class_rid>` scenario, :ref:`RID<class_rid>` environment **)** |
  566. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  567. | void | :ref:`scenario_set_fallback_environment<class_VisualServer_scenario_set_fallback_environment>` **(** :ref:`RID<class_rid>` scenario, :ref:`RID<class_rid>` environment **)** |
  568. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  569. | void | :ref:`scenario_set_reflection_atlas_size<class_VisualServer_scenario_set_reflection_atlas_size>` **(** :ref:`RID<class_rid>` scenario, :ref:`int<class_int>` p_size, :ref:`int<class_int>` subdiv **)** |
  570. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  571. | void | :ref:`set_boot_image<class_VisualServer_set_boot_image>` **(** :ref:`Image<class_image>` image, :ref:`Color<class_color>` color, :ref:`bool<class_bool>` scale **)** |
  572. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  573. | void | :ref:`set_debug_generate_wireframes<class_VisualServer_set_debug_generate_wireframes>` **(** :ref:`bool<class_bool>` generate **)** |
  574. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  575. | void | :ref:`set_default_clear_color<class_VisualServer_set_default_clear_color>` **(** :ref:`Color<class_color>` color **)** |
  576. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  577. | :ref:`RID<class_rid>` | :ref:`shader_create<class_VisualServer_shader_create>` **(** **)** |
  578. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  579. | :ref:`String<class_string>` | :ref:`shader_get_code<class_VisualServer_shader_get_code>` **(** :ref:`RID<class_rid>` shader **)** const |
  580. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  581. | :ref:`RID<class_rid>` | :ref:`shader_get_default_texture_param<class_VisualServer_shader_get_default_texture_param>` **(** :ref:`RID<class_rid>` shader, :ref:`String<class_string>` name **)** const |
  582. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  583. | :ref:`Array<class_array>` | :ref:`shader_get_param_list<class_VisualServer_shader_get_param_list>` **(** :ref:`RID<class_rid>` shader **)** const |
  584. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  585. | void | :ref:`shader_set_code<class_VisualServer_shader_set_code>` **(** :ref:`RID<class_rid>` shader, :ref:`String<class_string>` code **)** |
  586. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  587. | void | :ref:`shader_set_default_texture_param<class_VisualServer_shader_set_default_texture_param>` **(** :ref:`RID<class_rid>` shader, :ref:`String<class_string>` name, :ref:`RID<class_rid>` texture **)** |
  588. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  589. | void | :ref:`skeleton_allocate<class_VisualServer_skeleton_allocate>` **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bones, :ref:`bool<class_bool>` is_2d_skeleton=false **)** |
  590. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  591. | :ref:`Transform<class_transform>` | :ref:`skeleton_bone_get_transform<class_VisualServer_skeleton_bone_get_transform>` **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bone **)** const |
  592. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  593. | :ref:`Transform2D<class_transform2d>` | :ref:`skeleton_bone_get_transform_2d<class_VisualServer_skeleton_bone_get_transform_2d>` **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bone **)** const |
  594. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  595. | void | :ref:`skeleton_bone_set_transform<class_VisualServer_skeleton_bone_set_transform>` **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bone, :ref:`Transform<class_transform>` transform **)** |
  596. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  597. | void | :ref:`skeleton_bone_set_transform_2d<class_VisualServer_skeleton_bone_set_transform_2d>` **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bone, :ref:`Transform2D<class_transform2d>` transform **)** |
  598. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  599. | :ref:`RID<class_rid>` | :ref:`skeleton_create<class_VisualServer_skeleton_create>` **(** **)** |
  600. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  601. | :ref:`int<class_int>` | :ref:`skeleton_get_bone_count<class_VisualServer_skeleton_get_bone_count>` **(** :ref:`RID<class_rid>` skeleton **)** const |
  602. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  603. | :ref:`RID<class_rid>` | :ref:`sky_create<class_VisualServer_sky_create>` **(** **)** |
  604. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  605. | void | :ref:`sky_set_texture<class_VisualServer_sky_set_texture>` **(** :ref:`RID<class_rid>` sky, :ref:`RID<class_rid>` cube_map, :ref:`int<class_int>` radiance_size **)** |
  606. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  607. | :ref:`RID<class_rid>` | :ref:`spot_light_create<class_VisualServer_spot_light_create>` **(** **)** |
  608. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  609. | void | :ref:`sync<class_VisualServer_sync>` **(** **)** |
  610. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  611. | void | :ref:`texture_allocate<class_VisualServer_texture_allocate>` **(** :ref:`RID<class_rid>` texture, :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`int<class_int>` format, :ref:`int<class_int>` flags=7 **)** |
  612. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  613. | :ref:`RID<class_rid>` | :ref:`texture_create<class_VisualServer_texture_create>` **(** **)** |
  614. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  615. | :ref:`RID<class_rid>` | :ref:`texture_create_from_image<class_VisualServer_texture_create_from_image>` **(** :ref:`Image<class_image>` image, :ref:`int<class_int>` flags=7 **)** |
  616. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  617. | :ref:`Array<class_array>` | :ref:`texture_debug_usage<class_VisualServer_texture_debug_usage>` **(** **)** |
  618. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  619. | :ref:`Image<class_image>` | :ref:`texture_get_data<class_VisualServer_texture_get_data>` **(** :ref:`RID<class_rid>` texture, :ref:`int<class_int>` cube_side=0 **)** const |
  620. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  621. | :ref:`int<class_int>` | :ref:`texture_get_flags<class_VisualServer_texture_get_flags>` **(** :ref:`RID<class_rid>` texture **)** const |
  622. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  623. | :ref:`int<class_int>` | :ref:`texture_get_format<class_VisualServer_texture_get_format>` **(** :ref:`RID<class_rid>` texture **)** const |
  624. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  625. | :ref:`int<class_int>` | :ref:`texture_get_height<class_VisualServer_texture_get_height>` **(** :ref:`RID<class_rid>` texture **)** const |
  626. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  627. | :ref:`String<class_string>` | :ref:`texture_get_path<class_VisualServer_texture_get_path>` **(** :ref:`RID<class_rid>` texture **)** const |
  628. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  629. | :ref:`int<class_int>` | :ref:`texture_get_texid<class_VisualServer_texture_get_texid>` **(** :ref:`RID<class_rid>` texture **)** const |
  630. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  631. | :ref:`int<class_int>` | :ref:`texture_get_width<class_VisualServer_texture_get_width>` **(** :ref:`RID<class_rid>` texture **)** const |
  632. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  633. | void | :ref:`texture_set_data<class_VisualServer_texture_set_data>` **(** :ref:`RID<class_rid>` texture, :ref:`Image<class_image>` image, :ref:`int<class_int>` cube_side=0 **)** |
  634. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  635. | void | :ref:`texture_set_flags<class_VisualServer_texture_set_flags>` **(** :ref:`RID<class_rid>` texture, :ref:`int<class_int>` flags **)** |
  636. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  637. | void | :ref:`texture_set_path<class_VisualServer_texture_set_path>` **(** :ref:`RID<class_rid>` texture, :ref:`String<class_string>` path **)** |
  638. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  639. | void | :ref:`texture_set_shrink_all_x2_on_set_data<class_VisualServer_texture_set_shrink_all_x2_on_set_data>` **(** :ref:`bool<class_bool>` shrink **)** |
  640. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  641. | void | :ref:`texture_set_size_override<class_VisualServer_texture_set_size_override>` **(** :ref:`RID<class_rid>` texture, :ref:`int<class_int>` width, :ref:`int<class_int>` height **)** |
  642. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  643. | void | :ref:`textures_keep_original<class_VisualServer_textures_keep_original>` **(** :ref:`bool<class_bool>` enable **)** |
  644. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  645. | void | :ref:`viewport_attach_camera<class_VisualServer_viewport_attach_camera>` **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` camera **)** |
  646. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  647. | void | :ref:`viewport_attach_canvas<class_VisualServer_viewport_attach_canvas>` **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` canvas **)** |
  648. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  649. | void | :ref:`viewport_attach_to_screen<class_VisualServer_viewport_attach_to_screen>` **(** :ref:`RID<class_rid>` viewport, :ref:`Rect2<class_rect2>` rect=Rect2( 0, 0, 0, 0 ), :ref:`int<class_int>` screen=0 **)** |
  650. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  651. | :ref:`RID<class_rid>` | :ref:`viewport_create<class_VisualServer_viewport_create>` **(** **)** |
  652. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  653. | void | :ref:`viewport_detach<class_VisualServer_viewport_detach>` **(** :ref:`RID<class_rid>` viewport **)** |
  654. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  655. | :ref:`int<class_int>` | :ref:`viewport_get_render_info<class_VisualServer_viewport_get_render_info>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` info **)** |
  656. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  657. | :ref:`RID<class_rid>` | :ref:`viewport_get_texture<class_VisualServer_viewport_get_texture>` **(** :ref:`RID<class_rid>` viewport **)** const |
  658. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  659. | void | :ref:`viewport_remove_canvas<class_VisualServer_viewport_remove_canvas>` **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` canvas **)** |
  660. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  661. | void | :ref:`viewport_set_active<class_VisualServer_viewport_set_active>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` active **)** |
  662. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  663. | void | :ref:`viewport_set_canvas_layer<class_VisualServer_viewport_set_canvas_layer>` **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` canvas, :ref:`int<class_int>` layer **)** |
  664. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  665. | void | :ref:`viewport_set_canvas_transform<class_VisualServer_viewport_set_canvas_transform>` **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` canvas, :ref:`Transform2D<class_transform2d>` offset **)** |
  666. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  667. | void | :ref:`viewport_set_clear_mode<class_VisualServer_viewport_set_clear_mode>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` clear_mode **)** |
  668. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  669. | void | :ref:`viewport_set_debug_draw<class_VisualServer_viewport_set_debug_draw>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` draw **)** |
  670. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  671. | void | :ref:`viewport_set_disable_3d<class_VisualServer_viewport_set_disable_3d>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` disabled **)** |
  672. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  673. | void | :ref:`viewport_set_disable_environment<class_VisualServer_viewport_set_disable_environment>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` disabled **)** |
  674. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  675. | void | :ref:`viewport_set_global_canvas_transform<class_VisualServer_viewport_set_global_canvas_transform>` **(** :ref:`RID<class_rid>` viewport, :ref:`Transform2D<class_transform2d>` transform **)** |
  676. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  677. | void | :ref:`viewport_set_hdr<class_VisualServer_viewport_set_hdr>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` enabled **)** |
  678. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  679. | void | :ref:`viewport_set_hide_canvas<class_VisualServer_viewport_set_hide_canvas>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` hidden **)** |
  680. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  681. | void | :ref:`viewport_set_hide_scenario<class_VisualServer_viewport_set_hide_scenario>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` hidden **)** |
  682. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  683. | void | :ref:`viewport_set_msaa<class_VisualServer_viewport_set_msaa>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` msaa **)** |
  684. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  685. | void | :ref:`viewport_set_parent_viewport<class_VisualServer_viewport_set_parent_viewport>` **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` parent_viewport **)** |
  686. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  687. | void | :ref:`viewport_set_scenario<class_VisualServer_viewport_set_scenario>` **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` scenario **)** |
  688. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  689. | void | :ref:`viewport_set_shadow_atlas_quadrant_subdivision<class_VisualServer_viewport_set_shadow_atlas_quadrant_subdivision>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` quadrant, :ref:`int<class_int>` subdivision **)** |
  690. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  691. | void | :ref:`viewport_set_shadow_atlas_size<class_VisualServer_viewport_set_shadow_atlas_size>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` size **)** |
  692. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  693. | void | :ref:`viewport_set_size<class_VisualServer_viewport_set_size>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` width, :ref:`int<class_int>` height **)** |
  694. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  695. | void | :ref:`viewport_set_transparent_background<class_VisualServer_viewport_set_transparent_background>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` enabled **)** |
  696. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  697. | void | :ref:`viewport_set_update_mode<class_VisualServer_viewport_set_update_mode>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` update_mode **)** |
  698. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  699. | void | :ref:`viewport_set_usage<class_VisualServer_viewport_set_usage>` **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` usage **)** |
  700. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  701. | void | :ref:`viewport_set_use_arvr<class_VisualServer_viewport_set_use_arvr>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` use_arvr **)** |
  702. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  703. | void | :ref:`viewport_set_vflip<class_VisualServer_viewport_set_vflip>` **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` enabled **)** |
  704. +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  705. Signals
  706. -------
  707. .. _class_VisualServer_frame_drawn_in_thread:
  708. - **frame_drawn_in_thread** **(** **)**
  709. Numeric Constants
  710. -----------------
  711. - **NO_INDEX_ARRAY** = **-1** --- Marks an error that shows that the index array is empty.
  712. - **ARRAY_WEIGHTS_SIZE** = **4**
  713. - **CANVAS_ITEM_Z_MIN** = **-4096** --- The minimum Z-layer for canvas items.
  714. - **CANVAS_ITEM_Z_MAX** = **4096** --- The maximum Z-layer for canvas items.
  715. - **MAX_GLOW_LEVELS** = **7**
  716. - **MAX_CURSORS** = **8**
  717. - **MATERIAL_RENDER_PRIORITY_MIN** = **-128** --- The minimum renderpriority of all materials.
  718. - **MATERIAL_RENDER_PRIORITY_MAX** = **127** --- The maximum renderpriority of all materials.
  719. Enums
  720. -----
  721. .. _enum_VisualServer_ViewportRenderInfo:
  722. enum **ViewportRenderInfo**
  723. - **VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME** = **0**
  724. - **VIEWPORT_RENDER_INFO_VERTICES_IN_FRAME** = **1**
  725. - **VIEWPORT_RENDER_INFO_MATERIAL_CHANGES_IN_FRAME** = **2**
  726. - **VIEWPORT_RENDER_INFO_SHADER_CHANGES_IN_FRAME** = **3**
  727. - **VIEWPORT_RENDER_INFO_SURFACE_CHANGES_IN_FRAME** = **4**
  728. - **VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME** = **5**
  729. - **VIEWPORT_RENDER_INFO_MAX** = **6** --- Marks end of VIEWPORT_RENDER_INFO\* constants. Used internally.
  730. .. _enum_VisualServer_CubeMapSide:
  731. enum **CubeMapSide**
  732. - **CUBEMAP_LEFT** = **0** --- Marks the left side of a cubemap.
  733. - **CUBEMAP_RIGHT** = **1** --- Marks the right side of a cubemap.
  734. - **CUBEMAP_BOTTOM** = **2** --- Marks the bottom side of a cubemap.
  735. - **CUBEMAP_TOP** = **3** --- Marks the top side of a cubemap.
  736. - **CUBEMAP_FRONT** = **4** --- Marks the front side of a cubemap.
  737. - **CUBEMAP_BACK** = **5** --- Marks the back side of a cubemap.
  738. .. _enum_VisualServer_LightType:
  739. enum **LightType**
  740. - **LIGHT_DIRECTIONAL** = **0** --- Is a directional (sun) light.
  741. - **LIGHT_OMNI** = **1** --- is an omni light.
  742. - **LIGHT_SPOT** = **2** --- is an spot light.
  743. .. _enum_VisualServer_PrimitiveType:
  744. enum **PrimitiveType**
  745. - **PRIMITIVE_POINTS** = **0** --- Primitive to draw consists of points.
  746. - **PRIMITIVE_LINES** = **1** --- Primitive to draw consists of lines.
  747. - **PRIMITIVE_LINE_STRIP** = **2** --- Primitive to draw consists of a line strip from start to end.
  748. - **PRIMITIVE_LINE_LOOP** = **3** --- Primitive to draw consists of a line loop (a line strip with a line between the last and the first vertex).
  749. - **PRIMITIVE_TRIANGLES** = **4** --- Primitive to draw consists of triangles.
  750. - **PRIMITIVE_TRIANGLE_STRIP** = **5** --- Primitive to draw consists of a triangle strip (the last 3 vertices are always combined to make a triangle).
  751. - **PRIMITIVE_TRIANGLE_FAN** = **6** --- Primitive to draw consists of a triangle strip (the last 2 vertices are always combined with the first to make a triangle).
  752. - **PRIMITIVE_MAX** = **7** --- Marks the primitive types endpoint. used internally.
  753. .. _enum_VisualServer_BlendShapeMode:
  754. enum **BlendShapeMode**
  755. - **BLEND_SHAPE_MODE_NORMALIZED** = **0**
  756. - **BLEND_SHAPE_MODE_RELATIVE** = **1**
  757. .. _enum_VisualServer_ShadowCastingSetting:
  758. enum **ShadowCastingSetting**
  759. - **SHADOW_CASTING_SETTING_OFF** = **0**
  760. - **SHADOW_CASTING_SETTING_ON** = **1**
  761. - **SHADOW_CASTING_SETTING_DOUBLE_SIDED** = **2**
  762. - **SHADOW_CASTING_SETTING_SHADOWS_ONLY** = **3**
  763. .. _enum_VisualServer_CanvasOccluderPolygonCullMode:
  764. enum **CanvasOccluderPolygonCullMode**
  765. - **CANVAS_OCCLUDER_POLYGON_CULL_DISABLED** = **0** --- Culling of the canvas occluder is disabled.
  766. - **CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE** = **1** --- Culling of the canvas occluder is clockwise.
  767. - **CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE** = **2** --- Culling of the canvas occluder is counterclockwise.
  768. .. _enum_VisualServer_ParticlesDrawOrder:
  769. enum **ParticlesDrawOrder**
  770. - **PARTICLES_DRAW_ORDER_INDEX** = **0**
  771. - **PARTICLES_DRAW_ORDER_LIFETIME** = **1**
  772. - **PARTICLES_DRAW_ORDER_VIEW_DEPTH** = **2**
  773. .. _enum_VisualServer_ViewportMSAA:
  774. enum **ViewportMSAA**
  775. - **VIEWPORT_MSAA_DISABLED** = **0** --- Multisample antialiasing is disabled.
  776. - **VIEWPORT_MSAA_2X** = **1** --- Multisample antialiasing is set to 2X.
  777. - **VIEWPORT_MSAA_4X** = **2** --- Multisample antialiasing is set to 4X.
  778. - **VIEWPORT_MSAA_8X** = **3** --- Multisample antialiasing is set to 8X.
  779. - **VIEWPORT_MSAA_16X** = **4** --- Multisample antialiasing is set to 16X.
  780. .. _enum_VisualServer_ViewportUpdateMode:
  781. enum **ViewportUpdateMode**
  782. - **VIEWPORT_UPDATE_DISABLED** = **0**
  783. - **VIEWPORT_UPDATE_ONCE** = **1**
  784. - **VIEWPORT_UPDATE_WHEN_VISIBLE** = **2**
  785. - **VIEWPORT_UPDATE_ALWAYS** = **3**
  786. .. _enum_VisualServer_MultimeshColorFormat:
  787. enum **MultimeshColorFormat**
  788. - **MULTIMESH_COLOR_NONE** = **0**
  789. - **MULTIMESH_COLOR_8BIT** = **1**
  790. - **MULTIMESH_COLOR_FLOAT** = **2**
  791. .. _enum_VisualServer_LightDirectionalShadowMode:
  792. enum **LightDirectionalShadowMode**
  793. - **LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL** = **0**
  794. - **LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS** = **1**
  795. - **LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS** = **2**
  796. .. _enum_VisualServer_LightOmniShadowMode:
  797. enum **LightOmniShadowMode**
  798. - **LIGHT_OMNI_SHADOW_DUAL_PARABOLOID** = **0**
  799. - **LIGHT_OMNI_SHADOW_CUBE** = **1**
  800. .. _enum_VisualServer_EnvironmentSSAOQuality:
  801. enum **EnvironmentSSAOQuality**
  802. - **ENV_SSAO_QUALITY_LOW** = **0**
  803. - **ENV_SSAO_QUALITY_MEDIUM** = **1**
  804. - **ENV_SSAO_QUALITY_HIGH** = **2**
  805. .. _enum_VisualServer_LightParam:
  806. enum **LightParam**
  807. - **LIGHT_PARAM_ENERGY** = **0** --- The light's energy.
  808. - **LIGHT_PARAM_SPECULAR** = **2** --- The light's influence on specularity.
  809. - **LIGHT_PARAM_RANGE** = **3** --- The light's range.
  810. - **LIGHT_PARAM_ATTENUATION** = **4** --- The light's attenuation.
  811. - **LIGHT_PARAM_SPOT_ANGLE** = **5** --- The spotlight's angle.
  812. - **LIGHT_PARAM_SPOT_ATTENUATION** = **6** --- The spotlight's attenuation.
  813. - **LIGHT_PARAM_CONTACT_SHADOW_SIZE** = **7** --- Scales the shadow color.
  814. - **LIGHT_PARAM_SHADOW_MAX_DISTANCE** = **8**
  815. - **LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET** = **9**
  816. - **LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET** = **10**
  817. - **LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET** = **11**
  818. - **LIGHT_PARAM_SHADOW_NORMAL_BIAS** = **12**
  819. - **LIGHT_PARAM_SHADOW_BIAS** = **13**
  820. - **LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE** = **14**
  821. - **LIGHT_PARAM_MAX** = **15** --- The light parameters endpoint. Used internally.
  822. .. _enum_VisualServer_ScenarioDebugMode:
  823. enum **ScenarioDebugMode**
  824. - **SCENARIO_DEBUG_DISABLED** = **0**
  825. - **SCENARIO_DEBUG_WIREFRAME** = **1**
  826. - **SCENARIO_DEBUG_OVERDRAW** = **2**
  827. - **SCENARIO_DEBUG_SHADELESS** = **3**
  828. .. _enum_VisualServer_LightDirectionalShadowDepthRangeMode:
  829. enum **LightDirectionalShadowDepthRangeMode**
  830. - **LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_STABLE** = **0**
  831. - **LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_OPTIMIZED** = **1**
  832. .. _enum_VisualServer_EnvironmentGlowBlendMode:
  833. enum **EnvironmentGlowBlendMode**
  834. - **GLOW_BLEND_MODE_ADDITIVE** = **0**
  835. - **GLOW_BLEND_MODE_SCREEN** = **1**
  836. - **GLOW_BLEND_MODE_SOFTLIGHT** = **2**
  837. - **GLOW_BLEND_MODE_REPLACE** = **3**
  838. .. _enum_VisualServer_InstanceType:
  839. enum **InstanceType**
  840. - **INSTANCE_NONE** = **0** --- The instance does not have a type.
  841. - **INSTANCE_MESH** = **1** --- The instance is a mesh.
  842. - **INSTANCE_MULTIMESH** = **2** --- The instance is a multimesh.
  843. - **INSTANCE_IMMEDIATE** = **3** --- The instance is an immediate geometry.
  844. - **INSTANCE_PARTICLES** = **4** --- The instance is a particle emitter.
  845. - **INSTANCE_LIGHT** = **5** --- The instance is a light.
  846. - **INSTANCE_REFLECTION_PROBE** = **6**
  847. - **INSTANCE_GI_PROBE** = **7**
  848. - **INSTANCE_LIGHTMAP_CAPTURE** = **8**
  849. - **INSTANCE_MAX** = **9** --- The max value for INSTANCE\_\* constants, used internally.
  850. - **INSTANCE_GEOMETRY_MASK** = **30** --- A combination of the flags of geometry instances (mesh, multimesh, immediate and particles).
  851. .. _enum_VisualServer_ShaderMode:
  852. enum **ShaderMode**
  853. - **SHADER_SPATIAL** = **0** --- Shader is a 3D shader.
  854. - **SHADER_CANVAS_ITEM** = **1** --- Shader is a 2D shader.
  855. - **SHADER_PARTICLES** = **2** --- Shader is a particle shader.
  856. - **SHADER_MAX** = **3** --- Marks maximum of the shader types array. used internally.
  857. .. _enum_VisualServer_ViewportUsage:
  858. enum **ViewportUsage**
  859. - **VIEWPORT_USAGE_2D** = **0** --- The Viewport does not render 3D but samples.
  860. - **VIEWPORT_USAGE_2D_NO_SAMPLING** = **1** --- The Viewport does not render 3D and does not sample.
  861. - **VIEWPORT_USAGE_3D** = **2** --- The Viewport renders 3D with effects.
  862. - **VIEWPORT_USAGE_3D_NO_EFFECTS** = **3** --- The Viewport renders 3D but without effects.
  863. .. _enum_VisualServer_EnvironmentDOFBlurQuality:
  864. enum **EnvironmentDOFBlurQuality**
  865. - **ENV_DOF_BLUR_QUALITY_LOW** = **0**
  866. - **ENV_DOF_BLUR_QUALITY_MEDIUM** = **1**
  867. - **ENV_DOF_BLUR_QUALITY_HIGH** = **2**
  868. .. _enum_VisualServer_InstanceFlags:
  869. enum **InstanceFlags**
  870. - **INSTANCE_FLAG_USE_BAKED_LIGHT** = **0**
  871. - **INSTANCE_FLAG_MAX** = **1**
  872. .. _enum_VisualServer_ViewportClearMode:
  873. enum **ViewportClearMode**
  874. - **VIEWPORT_CLEAR_ALWAYS** = **0** --- The viewport is always cleared before drawing.
  875. - **VIEWPORT_CLEAR_NEVER** = **1** --- The viewport is never cleared before drawing.
  876. - **VIEWPORT_CLEAR_ONLY_NEXT_FRAME** = **2** --- The viewport is cleared once, then the clear mode is set to VIEWPORT_CLEAR_NEVER.
  877. .. _enum_VisualServer_LightOmniShadowDetail:
  878. enum **LightOmniShadowDetail**
  879. - **LIGHT_OMNI_SHADOW_DETAIL_VERTICAL** = **0**
  880. - **LIGHT_OMNI_SHADOW_DETAIL_HORIZONTAL** = **1**
  881. .. _enum_VisualServer_ArrayType:
  882. enum **ArrayType**
  883. - **ARRAY_VERTEX** = **0** --- Array is a vertex array.
  884. - **ARRAY_NORMAL** = **1** --- Array is a normal array.
  885. - **ARRAY_TANGENT** = **2** --- Array is a tangent array.
  886. - **ARRAY_COLOR** = **3** --- Array is a color array.
  887. - **ARRAY_TEX_UV** = **4** --- Array is a uv coordinates array.
  888. - **ARRAY_TEX_UV2** = **5** --- Array is a uv coordinates array for the second uv coordinates.
  889. - **ARRAY_BONES** = **6** --- Array contains bone information.
  890. - **ARRAY_WEIGHTS** = **7** --- Array is weight information.
  891. - **ARRAY_INDEX** = **8** --- Array is index array.
  892. - **ARRAY_MAX** = **9** --- Marks the maximum of the array types. Used internally.
  893. .. _enum_VisualServer_CanvasLightMode:
  894. enum **CanvasLightMode**
  895. - **CANVAS_LIGHT_MODE_ADD** = **0** --- Adds light color additive to the canvas.
  896. - **CANVAS_LIGHT_MODE_SUB** = **1** --- Adds light color subtractive to the canvas.
  897. - **CANVAS_LIGHT_MODE_MIX** = **2** --- The light adds color depending on transparency.
  898. - **CANVAS_LIGHT_MODE_MASK** = **3** --- The light adds color depending on mask.
  899. .. _enum_VisualServer_NinePatchAxisMode:
  900. enum **NinePatchAxisMode**
  901. - **NINE_PATCH_STRETCH** = **0** --- The nine patch gets stretched where needed.
  902. - **NINE_PATCH_TILE** = **1** --- The nine patch gets filled with tiles where needed.
  903. - **NINE_PATCH_TILE_FIT** = **2** --- The nine patch gets filled with tiles where needed and stretches them a bit if needed.
  904. .. _enum_VisualServer_ViewportDebugDraw:
  905. enum **ViewportDebugDraw**
  906. - **VIEWPORT_DEBUG_DRAW_DISABLED** = **0** --- Debug draw is disabled. Default setting.
  907. - **VIEWPORT_DEBUG_DRAW_UNSHADED** = **1** --- Debug draw sets objects to unshaded.
  908. - **VIEWPORT_DEBUG_DRAW_OVERDRAW** = **2** --- Overwrites clear color to ``(0,0,0,0)``.
  909. - **VIEWPORT_DEBUG_DRAW_WIREFRAME** = **3** --- Debug draw draws objects in wireframe.
  910. .. _enum_VisualServer_MultimeshTransformFormat:
  911. enum **MultimeshTransformFormat**
  912. - **MULTIMESH_TRANSFORM_2D** = **0**
  913. - **MULTIMESH_TRANSFORM_3D** = **1**
  914. .. _enum_VisualServer_ArrayFormat:
  915. enum **ArrayFormat**
  916. - **ARRAY_FORMAT_VERTEX** = **1** --- Flag used to mark a vertex array.
  917. - **ARRAY_FORMAT_NORMAL** = **2** --- Flag used to mark a normal array.
  918. - **ARRAY_FORMAT_TANGENT** = **4** --- Flag used to mark a tangent array.
  919. - **ARRAY_FORMAT_COLOR** = **8** --- Flag used to mark a color array.
  920. - **ARRAY_FORMAT_TEX_UV** = **16** --- Flag used to mark a uv coordinates array.
  921. - **ARRAY_FORMAT_TEX_UV2** = **32** --- Flag used to mark a uv coordinates array for the second uv coordinates.
  922. - **ARRAY_FORMAT_BONES** = **64** --- Flag used to mark a bone information array.
  923. - **ARRAY_FORMAT_WEIGHTS** = **128** --- Flag used to mark a weights array.
  924. - **ARRAY_FORMAT_INDEX** = **256** --- Flag used to mark a index array.
  925. - **ARRAY_COMPRESS_VERTEX** = **512** --- Flag used to mark a compressed (half float) vertex array.
  926. - **ARRAY_COMPRESS_NORMAL** = **1024** --- Flag used to mark a compressed (half float) normal array.
  927. - **ARRAY_COMPRESS_TANGENT** = **2048** --- Flag used to mark a compressed (half float) tangent array.
  928. - **ARRAY_COMPRESS_COLOR** = **4096** --- Flag used to mark a compressed (half float) color array.
  929. - **ARRAY_COMPRESS_TEX_UV** = **8192** --- Flag used to mark a compressed (half float) uv coordinates array.
  930. - **ARRAY_COMPRESS_TEX_UV2** = **16384** --- Flag used to mark a compressed (half float) uv coordinates array for the second uv coordinates.
  931. - **ARRAY_COMPRESS_BONES** = **32768**
  932. - **ARRAY_COMPRESS_WEIGHTS** = **65536** --- Flag used to mark a compressed (half float) weight array.
  933. - **ARRAY_COMPRESS_INDEX** = **131072**
  934. - **ARRAY_FLAG_USE_2D_VERTICES** = **262144** --- Flag used to mark that the array contains 2D vertices.
  935. - **ARRAY_FLAG_USE_16_BIT_BONES** = **524288** --- Flag used to mark that the array uses 16 bit bones instead of 8 bit.
  936. - **ARRAY_COMPRESS_DEFAULT** = **97792** --- Used to set flags ARRAY_COMPRESS_VERTEX, ARRAY_COMPRESS_NORMAL, ARRAY_COMPRESS_TANGENT, ARRAY_COMPRESS_COLOR, ARRAY_COMPRESS_TEX_UV, ARRAY_COMPRESS_TEX_UV2 and ARRAY_COMPRESS_WEIGHTS quickly.
  937. .. _enum_VisualServer_EnvironmentSSAOBlur:
  938. enum **EnvironmentSSAOBlur**
  939. - **ENV_SSAO_BLUR_DISABLED** = **0**
  940. - **ENV_SSAO_BLUR_1x1** = **1**
  941. - **ENV_SSAO_BLUR_2x2** = **2**
  942. - **ENV_SSAO_BLUR_3x3** = **3**
  943. .. _enum_VisualServer_RenderInfo:
  944. enum **RenderInfo**
  945. - **INFO_OBJECTS_IN_FRAME** = **0** --- The amount of objects in the frame.
  946. - **INFO_VERTICES_IN_FRAME** = **1** --- The amount of vertices in the frame.
  947. - **INFO_MATERIAL_CHANGES_IN_FRAME** = **2** --- The amount of modified materials in the frame.
  948. - **INFO_SHADER_CHANGES_IN_FRAME** = **3** --- The amount of shader rebinds in the frame.
  949. - **INFO_SURFACE_CHANGES_IN_FRAME** = **4** --- The amount of surface changes in the frame.
  950. - **INFO_DRAW_CALLS_IN_FRAME** = **5** --- The amount of draw calls in frame.
  951. - **INFO_USAGE_VIDEO_MEM_TOTAL** = **6**
  952. - **INFO_VIDEO_MEM_USED** = **7** --- The amount of vertex memory and texture memory used.
  953. - **INFO_TEXTURE_MEM_USED** = **8** --- The amount of texture memory used.
  954. - **INFO_VERTEX_MEM_USED** = **9** --- The amount of vertex memory used.
  955. .. _enum_VisualServer_ReflectionProbeUpdateMode:
  956. enum **ReflectionProbeUpdateMode**
  957. - **REFLECTION_PROBE_UPDATE_ONCE** = **0**
  958. - **REFLECTION_PROBE_UPDATE_ALWAYS** = **1**
  959. .. _enum_VisualServer_EnvironmentBG:
  960. enum **EnvironmentBG**
  961. - **ENV_BG_CLEAR_COLOR** = **0**
  962. - **ENV_BG_COLOR** = **1**
  963. - **ENV_BG_SKY** = **2**
  964. - **ENV_BG_COLOR_SKY** = **3**
  965. - **ENV_BG_CANVAS** = **4**
  966. - **ENV_BG_KEEP** = **5**
  967. - **ENV_BG_MAX** = **6**
  968. .. _enum_VisualServer_CanvasLightShadowFilter:
  969. enum **CanvasLightShadowFilter**
  970. - **CANVAS_LIGHT_FILTER_NONE** = **0**
  971. - **CANVAS_LIGHT_FILTER_PCF3** = **1**
  972. - **CANVAS_LIGHT_FILTER_PCF5** = **2**
  973. - **CANVAS_LIGHT_FILTER_PCF7** = **3**
  974. - **CANVAS_LIGHT_FILTER_PCF9** = **4**
  975. - **CANVAS_LIGHT_FILTER_PCF13** = **5**
  976. .. _enum_VisualServer_Features:
  977. enum **Features**
  978. - **FEATURE_SHADERS** = **0**
  979. - **FEATURE_MULTITHREADED** = **1**
  980. .. _enum_VisualServer_TextureFlags:
  981. enum **TextureFlags**
  982. - **TEXTURE_FLAG_MIPMAPS** = **1** --- Generate mipmaps, which are smaller versions of the same texture to use when zoomed out, keeping the aspect ratio.
  983. - **TEXTURE_FLAG_REPEAT** = **2** --- Repeat (instead of clamp to edge).
  984. - **TEXTURE_FLAG_FILTER** = **4** --- Turn on magnifying filter, to enable smooth zooming in of the texture.
  985. - **TEXTURE_FLAG_ANISOTROPIC_FILTER** = **8** --- Anisotropic mipmap filtering. Generates smaller versions of the same texture with different aspect ratios.
  986. More effective on planes often shown going to the horrizon as those textures (Walls or Ground for example) get squashed in the viewport to different aspect ratios and regular mipmaps keep the aspect ratio so they don't optimize storage that well in those cases.
  987. - **TEXTURE_FLAG_CONVERT_TO_LINEAR** = **16** --- Converts texture to SRGB color space.
  988. - **TEXTURE_FLAG_MIRRORED_REPEAT** = **32** --- Repeat texture with alternate sections mirrored.
  989. - **TEXTURE_FLAG_CUBEMAP** = **2048** --- Texture is a cubemap.
  990. - **TEXTURE_FLAG_USED_FOR_STREAMING** = **4096** --- Texture is a video surface.
  991. - **TEXTURE_FLAGS_DEFAULT** = **7** --- Default flags. Generate mipmaps, repeat, and filter are enabled.
  992. .. _enum_VisualServer_EnvironmentToneMapper:
  993. enum **EnvironmentToneMapper**
  994. - **ENV_TONE_MAPPER_LINEAR** = **0**
  995. - **ENV_TONE_MAPPER_REINHARDT** = **1**
  996. - **ENV_TONE_MAPPER_FILMIC** = **2**
  997. - **ENV_TONE_MAPPER_ACES** = **3**
  998. Description
  999. -----------
  1000. Server for anything visible. The visual server is the API backend for everything visible. The whole scene system mounts on it to display.
  1001. The visual server is completely opaque, the internals are entirely implementation specific and cannot be accessed.
  1002. Member Function Description
  1003. ---------------------------
  1004. .. _class_VisualServer_black_bars_set_images:
  1005. - void **black_bars_set_images** **(** :ref:`RID<class_rid>` left, :ref:`RID<class_rid>` top, :ref:`RID<class_rid>` right, :ref:`RID<class_rid>` bottom **)**
  1006. Sets images to be rendered in the window margin.
  1007. .. _class_VisualServer_black_bars_set_margins:
  1008. - void **black_bars_set_margins** **(** :ref:`int<class_int>` left, :ref:`int<class_int>` top, :ref:`int<class_int>` right, :ref:`int<class_int>` bottom **)**
  1009. Sets margin size, where black bars (or images, if :ref:`black_bars_set_images<class_VisualServer_black_bars_set_images>` was used) are rendered.
  1010. .. _class_VisualServer_camera_create:
  1011. - :ref:`RID<class_rid>` **camera_create** **(** **)**
  1012. .. _class_VisualServer_camera_set_cull_mask:
  1013. - void **camera_set_cull_mask** **(** :ref:`RID<class_rid>` camera, :ref:`int<class_int>` layers **)**
  1014. .. _class_VisualServer_camera_set_environment:
  1015. - void **camera_set_environment** **(** :ref:`RID<class_rid>` camera, :ref:`RID<class_rid>` env **)**
  1016. .. _class_VisualServer_camera_set_orthogonal:
  1017. - void **camera_set_orthogonal** **(** :ref:`RID<class_rid>` camera, :ref:`float<class_float>` size, :ref:`float<class_float>` z_near, :ref:`float<class_float>` z_far **)**
  1018. .. _class_VisualServer_camera_set_perspective:
  1019. - void **camera_set_perspective** **(** :ref:`RID<class_rid>` camera, :ref:`float<class_float>` fovy_degrees, :ref:`float<class_float>` z_near, :ref:`float<class_float>` z_far **)**
  1020. .. _class_VisualServer_camera_set_transform:
  1021. - void **camera_set_transform** **(** :ref:`RID<class_rid>` camera, :ref:`Transform<class_transform>` transform **)**
  1022. .. _class_VisualServer_camera_set_use_vertical_aspect:
  1023. - void **camera_set_use_vertical_aspect** **(** :ref:`RID<class_rid>` camera, :ref:`bool<class_bool>` enable **)**
  1024. .. _class_VisualServer_canvas_create:
  1025. - :ref:`RID<class_rid>` **canvas_create** **(** **)**
  1026. Creates a canvas and returns the assigned :ref:`RID<class_rid>`.
  1027. .. _class_VisualServer_canvas_item_add_circle:
  1028. - void **canvas_item_add_circle** **(** :ref:`RID<class_rid>` item, :ref:`Vector2<class_vector2>` pos, :ref:`float<class_float>` radius, :ref:`Color<class_color>` color **)**
  1029. Adds a circle command to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1030. .. _class_VisualServer_canvas_item_add_clip_ignore:
  1031. - void **canvas_item_add_clip_ignore** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` ignore **)**
  1032. If ignore is ``true``, the VisualServer does not perform clipping.
  1033. .. _class_VisualServer_canvas_item_add_line:
  1034. - void **canvas_item_add_line** **(** :ref:`RID<class_rid>` item, :ref:`Vector2<class_vector2>` from, :ref:`Vector2<class_vector2>` to, :ref:`Color<class_color>` color, :ref:`float<class_float>` width=1.0, :ref:`bool<class_bool>` antialiased=false **)**
  1035. Adds a line command to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1036. .. _class_VisualServer_canvas_item_add_mesh:
  1037. - void **canvas_item_add_mesh** **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` mesh, :ref:`RID<class_rid>` skeleton **)**
  1038. Adds a :ref:`Mesh<class_mesh>` to the :ref:`CanvasItem<class_canvasitem>`'s draw commands. Only affects its aabb at the moment.
  1039. .. _class_VisualServer_canvas_item_add_multimesh:
  1040. - void **canvas_item_add_multimesh** **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` mesh, :ref:`RID<class_rid>` skeleton **)**
  1041. Adds a :ref:`MultiMesh<class_multimesh>` to the :ref:`CanvasItem<class_canvasitem>`'s draw commands. Only affects its aabb at the moment.
  1042. .. _class_VisualServer_canvas_item_add_nine_patch:
  1043. - void **canvas_item_add_nine_patch** **(** :ref:`RID<class_rid>` item, :ref:`Rect2<class_rect2>` rect, :ref:`Rect2<class_rect2>` source, :ref:`RID<class_rid>` texture, :ref:`Vector2<class_vector2>` topleft, :ref:`Vector2<class_vector2>` bottomright, :ref:`int<class_int>` x_axis_mode=0, :ref:`int<class_int>` y_axis_mode=0, :ref:`bool<class_bool>` draw_center=true, :ref:`Color<class_color>` modulate=Color( 1, 1, 1, 1 ), :ref:`RID<class_rid>` normal_map **)**
  1044. Adds a nine patch image to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1045. See :ref:`NinePatchRect<class_ninepatchrect>` for more explanation.
  1046. .. _class_VisualServer_canvas_item_add_particles:
  1047. - void **canvas_item_add_particles** **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` particles, :ref:`RID<class_rid>` texture, :ref:`RID<class_rid>` normal_map, :ref:`int<class_int>` h_frames, :ref:`int<class_int>` v_frames **)**
  1048. Adds a particles system to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1049. .. _class_VisualServer_canvas_item_add_polygon:
  1050. - void **canvas_item_add_polygon** **(** :ref:`RID<class_rid>` item, :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolColorArray<class_poolcolorarray>` colors, :ref:`PoolVector2Array<class_poolvector2array>` uvs=PoolVector2Array( ), :ref:`RID<class_rid>` texture, :ref:`RID<class_rid>` normal_map, :ref:`bool<class_bool>` antialiased=false **)**
  1051. Adds a polygon to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1052. .. _class_VisualServer_canvas_item_add_polyline:
  1053. - void **canvas_item_add_polyline** **(** :ref:`RID<class_rid>` item, :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolColorArray<class_poolcolorarray>` colors, :ref:`float<class_float>` width=1.0, :ref:`bool<class_bool>` antialiased=false **)**
  1054. Adds a polyline, which is a line from multiple points with a width, to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1055. .. _class_VisualServer_canvas_item_add_primitive:
  1056. - void **canvas_item_add_primitive** **(** :ref:`RID<class_rid>` item, :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolColorArray<class_poolcolorarray>` colors, :ref:`PoolVector2Array<class_poolvector2array>` uvs, :ref:`RID<class_rid>` texture, :ref:`float<class_float>` width=1.0, :ref:`RID<class_rid>` normal_map **)**
  1057. Adds a primitive to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1058. .. _class_VisualServer_canvas_item_add_rect:
  1059. - void **canvas_item_add_rect** **(** :ref:`RID<class_rid>` item, :ref:`Rect2<class_rect2>` rect, :ref:`Color<class_color>` color **)**
  1060. Adds a rectangle to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1061. .. _class_VisualServer_canvas_item_add_set_transform:
  1062. - void **canvas_item_add_set_transform** **(** :ref:`RID<class_rid>` item, :ref:`Transform2D<class_transform2d>` transform **)**
  1063. Adds a :ref:`Transform2D<class_transform2d>` command to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1064. This sets the extra_matrix uniform when executed. This affects the later commands of the canvas item.
  1065. .. _class_VisualServer_canvas_item_add_texture_rect:
  1066. - void **canvas_item_add_texture_rect** **(** :ref:`RID<class_rid>` item, :ref:`Rect2<class_rect2>` rect, :ref:`RID<class_rid>` texture, :ref:`bool<class_bool>` tile=false, :ref:`Color<class_color>` modulate=Color( 1, 1, 1, 1 ), :ref:`bool<class_bool>` transpose=false, :ref:`RID<class_rid>` normal_map **)**
  1067. Adds a textured rect to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1068. .. _class_VisualServer_canvas_item_add_texture_rect_region:
  1069. - void **canvas_item_add_texture_rect_region** **(** :ref:`RID<class_rid>` item, :ref:`Rect2<class_rect2>` rect, :ref:`RID<class_rid>` texture, :ref:`Rect2<class_rect2>` src_rect, :ref:`Color<class_color>` modulate=Color( 1, 1, 1, 1 ), :ref:`bool<class_bool>` transpose=false, :ref:`RID<class_rid>` normal_map, :ref:`bool<class_bool>` clip_uv=true **)**
  1070. Adds a texture rect with region setting to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1071. .. _class_VisualServer_canvas_item_add_triangle_array:
  1072. - void **canvas_item_add_triangle_array** **(** :ref:`RID<class_rid>` item, :ref:`PoolIntArray<class_poolintarray>` indices, :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolColorArray<class_poolcolorarray>` colors, :ref:`PoolVector2Array<class_poolvector2array>` uvs=PoolVector2Array( ), :ref:`RID<class_rid>` texture, :ref:`int<class_int>` count=-1, :ref:`RID<class_rid>` normal_map **)**
  1073. Adds a triangle array to the :ref:`CanvasItem<class_canvasitem>`'s draw commands.
  1074. .. _class_VisualServer_canvas_item_clear:
  1075. - void **canvas_item_clear** **(** :ref:`RID<class_rid>` item **)**
  1076. Clears the :ref:`CanvasItem<class_canvasitem>` and removes all commands in it.
  1077. .. _class_VisualServer_canvas_item_create:
  1078. - :ref:`RID<class_rid>` **canvas_item_create** **(** **)**
  1079. Creates a new :ref:`CanvasItem<class_canvasitem>` and returns its :ref:`RID<class_rid>`.
  1080. .. _class_VisualServer_canvas_item_set_clip:
  1081. - void **canvas_item_set_clip** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` clip **)**
  1082. Sets clipping for the :ref:`CanvasItem<class_canvasitem>`.
  1083. .. _class_VisualServer_canvas_item_set_copy_to_backbuffer:
  1084. - void **canvas_item_set_copy_to_backbuffer** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled, :ref:`Rect2<class_rect2>` rect **)**
  1085. Sets the :ref:`CanvasItem<class_canvasitem>` to copy a rect to the backbuffer.
  1086. .. _class_VisualServer_canvas_item_set_custom_rect:
  1087. - void **canvas_item_set_custom_rect** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` use_custom_rect, :ref:`Rect2<class_rect2>` rect=Rect2( 0, 0, 0, 0 ) **)**
  1088. Defines a custom drawing rectangle for the :ref:`CanvasItem<class_canvasitem>`.
  1089. .. _class_VisualServer_canvas_item_set_distance_field_mode:
  1090. - void **canvas_item_set_distance_field_mode** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)**
  1091. .. _class_VisualServer_canvas_item_set_draw_behind_parent:
  1092. - void **canvas_item_set_draw_behind_parent** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)**
  1093. Sets :ref:`CanvasItem<class_canvasitem>` to be drawn behind its parent.
  1094. .. _class_VisualServer_canvas_item_set_draw_index:
  1095. - void **canvas_item_set_draw_index** **(** :ref:`RID<class_rid>` item, :ref:`int<class_int>` index **)**
  1096. Sets the index for the :ref:`CanvasItem<class_canvasitem>`.
  1097. .. _class_VisualServer_canvas_item_set_light_mask:
  1098. - void **canvas_item_set_light_mask** **(** :ref:`RID<class_rid>` item, :ref:`int<class_int>` mask **)**
  1099. The light mask. See :ref:`LightOccluder2D<class_lightoccluder2d>` for more information on light masks.
  1100. .. _class_VisualServer_canvas_item_set_material:
  1101. - void **canvas_item_set_material** **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` material **)**
  1102. Sets a new material to the :ref:`CanvasItem<class_canvasitem>`.
  1103. .. _class_VisualServer_canvas_item_set_modulate:
  1104. - void **canvas_item_set_modulate** **(** :ref:`RID<class_rid>` item, :ref:`Color<class_color>` color **)**
  1105. Sets the color that modulates the :ref:`CanvasItem<class_canvasitem>` and its children.
  1106. .. _class_VisualServer_canvas_item_set_parent:
  1107. - void **canvas_item_set_parent** **(** :ref:`RID<class_rid>` item, :ref:`RID<class_rid>` parent **)**
  1108. Sets the parent for the :ref:`CanvasItem<class_canvasitem>`.
  1109. .. _class_VisualServer_canvas_item_set_self_modulate:
  1110. - void **canvas_item_set_self_modulate** **(** :ref:`RID<class_rid>` item, :ref:`Color<class_color>` color **)**
  1111. Sets the color that modulates the :ref:`CanvasItem<class_canvasitem>` without children.
  1112. .. _class_VisualServer_canvas_item_set_sort_children_by_y:
  1113. - void **canvas_item_set_sort_children_by_y** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)**
  1114. Sets if :ref:`CanvasItem<class_canvasitem>`'s children should be sorted by y-position.
  1115. .. _class_VisualServer_canvas_item_set_transform:
  1116. - void **canvas_item_set_transform** **(** :ref:`RID<class_rid>` item, :ref:`Transform2D<class_transform2d>` transform **)**
  1117. Sets the :ref:`CanvasItem<class_canvasitem>`'s :ref:`Transform2D<class_transform2d>`.
  1118. .. _class_VisualServer_canvas_item_set_use_parent_material:
  1119. - void **canvas_item_set_use_parent_material** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)**
  1120. Sets if the :ref:`CanvasItem<class_canvasitem>` uses its parent's material.
  1121. .. _class_VisualServer_canvas_item_set_visible:
  1122. - void **canvas_item_set_visible** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` visible **)**
  1123. Sets if the canvas item (including its children) is visible.
  1124. .. _class_VisualServer_canvas_item_set_z_as_relative_to_parent:
  1125. - void **canvas_item_set_z_as_relative_to_parent** **(** :ref:`RID<class_rid>` item, :ref:`bool<class_bool>` enabled **)**
  1126. If this is enabled, the z-index of the parent will be added to the children's z-index.
  1127. .. _class_VisualServer_canvas_item_set_z_index:
  1128. - void **canvas_item_set_z_index** **(** :ref:`RID<class_rid>` item, :ref:`int<class_int>` z_index **)**
  1129. Sets the :ref:`CanvasItem<class_canvasitem>`'s z-index, i.e. its draw order (lower indexes are drawn first).
  1130. .. _class_VisualServer_canvas_light_attach_to_canvas:
  1131. - void **canvas_light_attach_to_canvas** **(** :ref:`RID<class_rid>` light, :ref:`RID<class_rid>` canvas **)**
  1132. Attaches the canvas light to the canvas. Removes it from its previous canvas.
  1133. .. _class_VisualServer_canvas_light_create:
  1134. - :ref:`RID<class_rid>` **canvas_light_create** **(** **)**
  1135. Creates a canvas light.
  1136. .. _class_VisualServer_canvas_light_occluder_attach_to_canvas:
  1137. - void **canvas_light_occluder_attach_to_canvas** **(** :ref:`RID<class_rid>` occluder, :ref:`RID<class_rid>` canvas **)**
  1138. Attaches a light occluder to the canvas. Removes it from its previous canvas.
  1139. .. _class_VisualServer_canvas_light_occluder_create:
  1140. - :ref:`RID<class_rid>` **canvas_light_occluder_create** **(** **)**
  1141. Creates a light occluder.
  1142. .. _class_VisualServer_canvas_light_occluder_set_enabled:
  1143. - void **canvas_light_occluder_set_enabled** **(** :ref:`RID<class_rid>` occluder, :ref:`bool<class_bool>` enabled **)**
  1144. Enables or disables light occluder.
  1145. .. _class_VisualServer_canvas_light_occluder_set_light_mask:
  1146. - void **canvas_light_occluder_set_light_mask** **(** :ref:`RID<class_rid>` occluder, :ref:`int<class_int>` mask **)**
  1147. The light mask. See :ref:`LightOccluder2D<class_lightoccluder2d>` for more information on light masks
  1148. .. _class_VisualServer_canvas_light_occluder_set_polygon:
  1149. - void **canvas_light_occluder_set_polygon** **(** :ref:`RID<class_rid>` occluder, :ref:`RID<class_rid>` polygon **)**
  1150. Sets a light occluder's polygon.
  1151. .. _class_VisualServer_canvas_light_occluder_set_transform:
  1152. - void **canvas_light_occluder_set_transform** **(** :ref:`RID<class_rid>` occluder, :ref:`Transform2D<class_transform2d>` transform **)**
  1153. Sets a light occluder's :ref:`Transform2D<class_transform2d>`.
  1154. .. _class_VisualServer_canvas_light_set_color:
  1155. - void **canvas_light_set_color** **(** :ref:`RID<class_rid>` light, :ref:`Color<class_color>` color **)**
  1156. Sets the color for a light.
  1157. .. _class_VisualServer_canvas_light_set_enabled:
  1158. - void **canvas_light_set_enabled** **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enabled **)**
  1159. Enables or disables a canvas light.
  1160. .. _class_VisualServer_canvas_light_set_energy:
  1161. - void **canvas_light_set_energy** **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` energy **)**
  1162. Sets a canvas light's energy.
  1163. .. _class_VisualServer_canvas_light_set_height:
  1164. - void **canvas_light_set_height** **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` height **)**
  1165. Sets a canvas light's height.
  1166. .. _class_VisualServer_canvas_light_set_item_cull_mask:
  1167. - void **canvas_light_set_item_cull_mask** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mask **)**
  1168. The light mask. See :ref:`LightOccluder2D<class_lightoccluder2d>` for more information on light masks
  1169. .. _class_VisualServer_canvas_light_set_item_shadow_cull_mask:
  1170. - void **canvas_light_set_item_shadow_cull_mask** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mask **)**
  1171. The shadow mask. binary about which layers this canvas light affects which canvas item's shadows. See :ref:`LightOccluder2D<class_lightoccluder2d>` for more information on light masks.
  1172. .. _class_VisualServer_canvas_light_set_layer_range:
  1173. - void **canvas_light_set_layer_range** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` min_layer, :ref:`int<class_int>` max_layer **)**
  1174. The layer range that gets rendered with this light.
  1175. .. _class_VisualServer_canvas_light_set_mode:
  1176. - void **canvas_light_set_mode** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mode **)**
  1177. The mode of the light, see CANVAS_LIGHT_MODE\_\* constants.
  1178. .. _class_VisualServer_canvas_light_set_scale:
  1179. - void **canvas_light_set_scale** **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` scale **)**
  1180. .. _class_VisualServer_canvas_light_set_shadow_buffer_size:
  1181. - void **canvas_light_set_shadow_buffer_size** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` size **)**
  1182. Sets the width of the shadow buffer, size gets scaled to the next power of two for this.
  1183. .. _class_VisualServer_canvas_light_set_shadow_color:
  1184. - void **canvas_light_set_shadow_color** **(** :ref:`RID<class_rid>` light, :ref:`Color<class_color>` color **)**
  1185. Sets the color of the canvas light's shadow.
  1186. .. _class_VisualServer_canvas_light_set_shadow_enabled:
  1187. - void **canvas_light_set_shadow_enabled** **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enabled **)**
  1188. Enables or disables the canvas light's shadow.
  1189. .. _class_VisualServer_canvas_light_set_shadow_filter:
  1190. - void **canvas_light_set_shadow_filter** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` filter **)**
  1191. Sets the canvas light's shadow's filter, see CANVAS_LIGHT_SHADOW_FILTER\_\* constants.
  1192. .. _class_VisualServer_canvas_light_set_shadow_gradient_length:
  1193. - void **canvas_light_set_shadow_gradient_length** **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` length **)**
  1194. Sets the length of the shadow's gradient.
  1195. .. _class_VisualServer_canvas_light_set_shadow_smooth:
  1196. - void **canvas_light_set_shadow_smooth** **(** :ref:`RID<class_rid>` light, :ref:`float<class_float>` smooth **)**
  1197. Smoothens the shadow. The lower, the more smooth.
  1198. .. _class_VisualServer_canvas_light_set_texture:
  1199. - void **canvas_light_set_texture** **(** :ref:`RID<class_rid>` light, :ref:`RID<class_rid>` texture **)**
  1200. .. _class_VisualServer_canvas_light_set_texture_offset:
  1201. - void **canvas_light_set_texture_offset** **(** :ref:`RID<class_rid>` light, :ref:`Vector2<class_vector2>` offset **)**
  1202. .. _class_VisualServer_canvas_light_set_transform:
  1203. - void **canvas_light_set_transform** **(** :ref:`RID<class_rid>` light, :ref:`Transform2D<class_transform2d>` transform **)**
  1204. Sets the canvas light's :ref:`Transform2D<class_transform2d>`.
  1205. .. _class_VisualServer_canvas_light_set_z_range:
  1206. - void **canvas_light_set_z_range** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` min_z, :ref:`int<class_int>` max_z **)**
  1207. .. _class_VisualServer_canvas_occluder_polygon_create:
  1208. - :ref:`RID<class_rid>` **canvas_occluder_polygon_create** **(** **)**
  1209. Creates a new light occluder polygon.
  1210. .. _class_VisualServer_canvas_occluder_polygon_set_cull_mode:
  1211. - void **canvas_occluder_polygon_set_cull_mode** **(** :ref:`RID<class_rid>` occluder_polygon, :ref:`int<class_int>` mode **)**
  1212. Sets an occluder polygons cull mode. See CANVAS_OCCLUDER_POLYGON_CULL_MODE\_\* constants.
  1213. .. _class_VisualServer_canvas_occluder_polygon_set_shape:
  1214. - void **canvas_occluder_polygon_set_shape** **(** :ref:`RID<class_rid>` occluder_polygon, :ref:`PoolVector2Array<class_poolvector2array>` shape, :ref:`bool<class_bool>` closed **)**
  1215. Sets the shape of the occluder polygon.
  1216. .. _class_VisualServer_canvas_occluder_polygon_set_shape_as_lines:
  1217. - void **canvas_occluder_polygon_set_shape_as_lines** **(** :ref:`RID<class_rid>` occluder_polygon, :ref:`PoolVector2Array<class_poolvector2array>` shape **)**
  1218. Sets the shape of the occluder polygon as lines.
  1219. .. _class_VisualServer_canvas_set_item_mirroring:
  1220. - void **canvas_set_item_mirroring** **(** :ref:`RID<class_rid>` canvas, :ref:`RID<class_rid>` item, :ref:`Vector2<class_vector2>` mirroring **)**
  1221. A copy of the canvas item will be drawn with a local offset of the mirroring :ref:`Vector2<class_vector2>`.
  1222. .. _class_VisualServer_canvas_set_modulate:
  1223. - void **canvas_set_modulate** **(** :ref:`RID<class_rid>` canvas, :ref:`Color<class_color>` color **)**
  1224. Modulates all colors in the given canvas.
  1225. .. _class_VisualServer_directional_light_create:
  1226. - :ref:`RID<class_rid>` **directional_light_create** **(** **)**
  1227. .. _class_VisualServer_draw:
  1228. - void **draw** **(** :ref:`bool<class_bool>` swap_buffers=true **)**
  1229. Draws a frame.
  1230. .. _class_VisualServer_environment_create:
  1231. - :ref:`RID<class_rid>` **environment_create** **(** **)**
  1232. .. _class_VisualServer_environment_set_adjustment:
  1233. - void **environment_set_adjustment** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` brightness, :ref:`float<class_float>` contrast, :ref:`float<class_float>` saturation, :ref:`RID<class_rid>` ramp **)**
  1234. .. _class_VisualServer_environment_set_ambient_light:
  1235. - void **environment_set_ambient_light** **(** :ref:`RID<class_rid>` env, :ref:`Color<class_color>` color, :ref:`float<class_float>` energy=1.0, :ref:`float<class_float>` sky_contibution=0.0 **)**
  1236. .. _class_VisualServer_environment_set_background:
  1237. - void **environment_set_background** **(** :ref:`RID<class_rid>` env, :ref:`int<class_int>` bg **)**
  1238. .. _class_VisualServer_environment_set_bg_color:
  1239. - void **environment_set_bg_color** **(** :ref:`RID<class_rid>` env, :ref:`Color<class_color>` color **)**
  1240. .. _class_VisualServer_environment_set_bg_energy:
  1241. - void **environment_set_bg_energy** **(** :ref:`RID<class_rid>` env, :ref:`float<class_float>` energy **)**
  1242. .. _class_VisualServer_environment_set_canvas_max_layer:
  1243. - void **environment_set_canvas_max_layer** **(** :ref:`RID<class_rid>` env, :ref:`int<class_int>` max_layer **)**
  1244. .. _class_VisualServer_environment_set_dof_blur_far:
  1245. - void **environment_set_dof_blur_far** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` distance, :ref:`float<class_float>` transition, :ref:`float<class_float>` far_amount, :ref:`int<class_int>` quality **)**
  1246. .. _class_VisualServer_environment_set_dof_blur_near:
  1247. - void **environment_set_dof_blur_near** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` distance, :ref:`float<class_float>` transition, :ref:`float<class_float>` far_amount, :ref:`int<class_int>` quality **)**
  1248. .. _class_VisualServer_environment_set_fog:
  1249. - void **environment_set_fog** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`Color<class_color>` color, :ref:`Color<class_color>` sun_color, :ref:`float<class_float>` sun_amount **)**
  1250. .. _class_VisualServer_environment_set_fog_depth:
  1251. - void **environment_set_fog_depth** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` depth_begin, :ref:`float<class_float>` depth_curve, :ref:`bool<class_bool>` transmit, :ref:`float<class_float>` transmit_curve **)**
  1252. .. _class_VisualServer_environment_set_fog_height:
  1253. - void **environment_set_fog_height** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` min_height, :ref:`float<class_float>` max_height, :ref:`float<class_float>` height_curve **)**
  1254. .. _class_VisualServer_environment_set_glow:
  1255. - void **environment_set_glow** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`int<class_int>` level_flags, :ref:`float<class_float>` intensity, :ref:`float<class_float>` strength, :ref:`float<class_float>` bloom_threshold, :ref:`int<class_int>` blend_mode, :ref:`float<class_float>` hdr_bleed_threshold, :ref:`float<class_float>` hdr_bleed_scale, :ref:`bool<class_bool>` bicubic_upscale **)**
  1256. .. _class_VisualServer_environment_set_sky:
  1257. - void **environment_set_sky** **(** :ref:`RID<class_rid>` env, :ref:`RID<class_rid>` sky **)**
  1258. .. _class_VisualServer_environment_set_sky_custom_fov:
  1259. - void **environment_set_sky_custom_fov** **(** :ref:`RID<class_rid>` env, :ref:`float<class_float>` scale **)**
  1260. .. _class_VisualServer_environment_set_ssao:
  1261. - void **environment_set_ssao** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`float<class_float>` radius, :ref:`float<class_float>` intensity, :ref:`float<class_float>` radius2, :ref:`float<class_float>` intensity2, :ref:`float<class_float>` bias, :ref:`float<class_float>` light_affect, :ref:`Color<class_color>` color, :ref:`int<class_int>` quality, :ref:`int<class_int>` blur, :ref:`float<class_float>` bilateral_sharpness **)**
  1262. .. _class_VisualServer_environment_set_ssr:
  1263. - void **environment_set_ssr** **(** :ref:`RID<class_rid>` env, :ref:`bool<class_bool>` enable, :ref:`int<class_int>` max_steps, :ref:`float<class_float>` fade_in, :ref:`float<class_float>` fade_out, :ref:`float<class_float>` depth_tolerance, :ref:`bool<class_bool>` roughness **)**
  1264. .. _class_VisualServer_environment_set_tonemap:
  1265. - void **environment_set_tonemap** **(** :ref:`RID<class_rid>` env, :ref:`int<class_int>` tone_mapper, :ref:`float<class_float>` exposure, :ref:`float<class_float>` white, :ref:`bool<class_bool>` auto_exposure, :ref:`float<class_float>` min_luminance, :ref:`float<class_float>` max_luminance, :ref:`float<class_float>` auto_exp_speed, :ref:`float<class_float>` auto_exp_grey **)**
  1266. .. _class_VisualServer_finish:
  1267. - void **finish** **(** **)**
  1268. Removes buffers and clears testcubes.
  1269. .. _class_VisualServer_force_draw:
  1270. - void **force_draw** **(** :ref:`bool<class_bool>` swap_buffers=true **)**
  1271. Draws a frame. Same as :ref:`draw<class_VisualServer_draw>`.
  1272. .. _class_VisualServer_force_sync:
  1273. - void **force_sync** **(** **)**
  1274. Syncronizes threads.
  1275. .. _class_VisualServer_free_rid:
  1276. - void **free_rid** **(** :ref:`RID<class_rid>` rid **)**
  1277. Tries to free an object in the VisualServer.
  1278. .. _class_VisualServer_get_render_info:
  1279. - :ref:`int<class_int>` **get_render_info** **(** :ref:`int<class_int>` info **)**
  1280. Returns a certain information, see RENDER_INFO\_\* for options.
  1281. .. _class_VisualServer_get_test_cube:
  1282. - :ref:`RID<class_rid>` **get_test_cube** **(** **)**
  1283. Returns the id of the test cube. Creates one if none exists.
  1284. .. _class_VisualServer_get_test_texture:
  1285. - :ref:`RID<class_rid>` **get_test_texture** **(** **)**
  1286. Returns the id of the test texture. Creates one if none exists.
  1287. .. _class_VisualServer_get_white_texture:
  1288. - :ref:`RID<class_rid>` **get_white_texture** **(** **)**
  1289. Returns the id of a white texture. Creates one if none exists.
  1290. .. _class_VisualServer_gi_probe_create:
  1291. - :ref:`RID<class_rid>` **gi_probe_create** **(** **)**
  1292. .. _class_VisualServer_gi_probe_get_bias:
  1293. - :ref:`float<class_float>` **gi_probe_get_bias** **(** :ref:`RID<class_rid>` arg0 **)** const
  1294. .. _class_VisualServer_gi_probe_get_bounds:
  1295. - :ref:`AABB<class_aabb>` **gi_probe_get_bounds** **(** :ref:`RID<class_rid>` probe **)** const
  1296. .. _class_VisualServer_gi_probe_get_cell_size:
  1297. - :ref:`float<class_float>` **gi_probe_get_cell_size** **(** :ref:`RID<class_rid>` probe **)** const
  1298. .. _class_VisualServer_gi_probe_get_dynamic_data:
  1299. - :ref:`PoolIntArray<class_poolintarray>` **gi_probe_get_dynamic_data** **(** :ref:`RID<class_rid>` arg0 **)** const
  1300. .. _class_VisualServer_gi_probe_get_dynamic_range:
  1301. - :ref:`int<class_int>` **gi_probe_get_dynamic_range** **(** :ref:`RID<class_rid>` arg0 **)** const
  1302. .. _class_VisualServer_gi_probe_get_energy:
  1303. - :ref:`float<class_float>` **gi_probe_get_energy** **(** :ref:`RID<class_rid>` arg0 **)** const
  1304. .. _class_VisualServer_gi_probe_get_normal_bias:
  1305. - :ref:`float<class_float>` **gi_probe_get_normal_bias** **(** :ref:`RID<class_rid>` arg0 **)** const
  1306. .. _class_VisualServer_gi_probe_get_propagation:
  1307. - :ref:`float<class_float>` **gi_probe_get_propagation** **(** :ref:`RID<class_rid>` arg0 **)** const
  1308. .. _class_VisualServer_gi_probe_get_to_cell_xform:
  1309. - :ref:`Transform<class_transform>` **gi_probe_get_to_cell_xform** **(** :ref:`RID<class_rid>` arg0 **)** const
  1310. .. _class_VisualServer_gi_probe_is_compressed:
  1311. - :ref:`bool<class_bool>` **gi_probe_is_compressed** **(** :ref:`RID<class_rid>` arg0 **)** const
  1312. .. _class_VisualServer_gi_probe_is_interior:
  1313. - :ref:`bool<class_bool>` **gi_probe_is_interior** **(** :ref:`RID<class_rid>` arg0 **)** const
  1314. .. _class_VisualServer_gi_probe_set_bias:
  1315. - void **gi_probe_set_bias** **(** :ref:`RID<class_rid>` bias, :ref:`float<class_float>` arg1 **)**
  1316. .. _class_VisualServer_gi_probe_set_bounds:
  1317. - void **gi_probe_set_bounds** **(** :ref:`RID<class_rid>` probe, :ref:`AABB<class_aabb>` bounds **)**
  1318. .. _class_VisualServer_gi_probe_set_cell_size:
  1319. - void **gi_probe_set_cell_size** **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` range **)**
  1320. .. _class_VisualServer_gi_probe_set_compress:
  1321. - void **gi_probe_set_compress** **(** :ref:`RID<class_rid>` enable, :ref:`bool<class_bool>` arg1 **)**
  1322. .. _class_VisualServer_gi_probe_set_dynamic_data:
  1323. - void **gi_probe_set_dynamic_data** **(** :ref:`RID<class_rid>` data, :ref:`PoolIntArray<class_poolintarray>` arg1 **)**
  1324. .. _class_VisualServer_gi_probe_set_dynamic_range:
  1325. - void **gi_probe_set_dynamic_range** **(** :ref:`RID<class_rid>` range, :ref:`int<class_int>` arg1 **)**
  1326. .. _class_VisualServer_gi_probe_set_energy:
  1327. - void **gi_probe_set_energy** **(** :ref:`RID<class_rid>` energy, :ref:`float<class_float>` arg1 **)**
  1328. .. _class_VisualServer_gi_probe_set_interior:
  1329. - void **gi_probe_set_interior** **(** :ref:`RID<class_rid>` enable, :ref:`bool<class_bool>` arg1 **)**
  1330. .. _class_VisualServer_gi_probe_set_normal_bias:
  1331. - void **gi_probe_set_normal_bias** **(** :ref:`RID<class_rid>` bias, :ref:`float<class_float>` arg1 **)**
  1332. .. _class_VisualServer_gi_probe_set_propagation:
  1333. - void **gi_probe_set_propagation** **(** :ref:`RID<class_rid>` propagation, :ref:`float<class_float>` arg1 **)**
  1334. .. _class_VisualServer_gi_probe_set_to_cell_xform:
  1335. - void **gi_probe_set_to_cell_xform** **(** :ref:`RID<class_rid>` xform, :ref:`Transform<class_transform>` arg1 **)**
  1336. .. _class_VisualServer_has_changed:
  1337. - :ref:`bool<class_bool>` **has_changed** **(** **)** const
  1338. Returns ``true`` if changes have been made to the VisualServer's data. :ref:`draw<class_VisualServer_draw>` is usually called if this happens.
  1339. .. _class_VisualServer_has_feature:
  1340. - :ref:`bool<class_bool>` **has_feature** **(** :ref:`int<class_int>` feature **)** const
  1341. .. _class_VisualServer_has_os_feature:
  1342. - :ref:`bool<class_bool>` **has_os_feature** **(** :ref:`String<class_string>` feature **)** const
  1343. Returns true, if the OS supports a certain feature. Features might be s3tc, etc, etc2 and pvrtc,
  1344. .. _class_VisualServer_immediate_begin:
  1345. - void **immediate_begin** **(** :ref:`RID<class_rid>` immediate, :ref:`int<class_int>` primitive, :ref:`RID<class_rid>` texture **)**
  1346. .. _class_VisualServer_immediate_clear:
  1347. - void **immediate_clear** **(** :ref:`RID<class_rid>` immediate **)**
  1348. .. _class_VisualServer_immediate_color:
  1349. - void **immediate_color** **(** :ref:`RID<class_rid>` immediate, :ref:`Color<class_color>` color **)**
  1350. .. _class_VisualServer_immediate_create:
  1351. - :ref:`RID<class_rid>` **immediate_create** **(** **)**
  1352. .. _class_VisualServer_immediate_end:
  1353. - void **immediate_end** **(** :ref:`RID<class_rid>` immediate **)**
  1354. .. _class_VisualServer_immediate_get_material:
  1355. - :ref:`RID<class_rid>` **immediate_get_material** **(** :ref:`RID<class_rid>` immediate **)** const
  1356. .. _class_VisualServer_immediate_normal:
  1357. - void **immediate_normal** **(** :ref:`RID<class_rid>` immediate, :ref:`Vector3<class_vector3>` normal **)**
  1358. .. _class_VisualServer_immediate_set_material:
  1359. - void **immediate_set_material** **(** :ref:`RID<class_rid>` immediate, :ref:`RID<class_rid>` material **)**
  1360. .. _class_VisualServer_immediate_tangent:
  1361. - void **immediate_tangent** **(** :ref:`RID<class_rid>` immediate, :ref:`Plane<class_plane>` tangent **)**
  1362. .. _class_VisualServer_immediate_uv:
  1363. - void **immediate_uv** **(** :ref:`RID<class_rid>` immediate, :ref:`Vector2<class_vector2>` tex_uv **)**
  1364. .. _class_VisualServer_immediate_uv2:
  1365. - void **immediate_uv2** **(** :ref:`RID<class_rid>` immediate, :ref:`Vector2<class_vector2>` tex_uv **)**
  1366. .. _class_VisualServer_immediate_vertex:
  1367. - void **immediate_vertex** **(** :ref:`RID<class_rid>` immediate, :ref:`Vector3<class_vector3>` vertex **)**
  1368. .. _class_VisualServer_immediate_vertex_2d:
  1369. - void **immediate_vertex_2d** **(** :ref:`RID<class_rid>` immediate, :ref:`Vector2<class_vector2>` vertex **)**
  1370. .. _class_VisualServer_init:
  1371. - void **init** **(** **)**
  1372. Initializes the visual server.
  1373. .. _class_VisualServer_instance_attach_object_instance_id:
  1374. - void **instance_attach_object_instance_id** **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` id **)**
  1375. .. _class_VisualServer_instance_attach_skeleton:
  1376. - void **instance_attach_skeleton** **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` skeleton **)**
  1377. .. _class_VisualServer_instance_create:
  1378. - :ref:`RID<class_rid>` **instance_create** **(** **)**
  1379. .. _class_VisualServer_instance_create2:
  1380. - :ref:`RID<class_rid>` **instance_create2** **(** :ref:`RID<class_rid>` base, :ref:`RID<class_rid>` scenario **)**
  1381. .. _class_VisualServer_instance_geometry_set_as_instance_lod:
  1382. - void **instance_geometry_set_as_instance_lod** **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` as_lod_of_instance **)**
  1383. .. _class_VisualServer_instance_geometry_set_cast_shadows_setting:
  1384. - void **instance_geometry_set_cast_shadows_setting** **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` shadow_casting_setting **)**
  1385. .. _class_VisualServer_instance_geometry_set_draw_range:
  1386. - void **instance_geometry_set_draw_range** **(** :ref:`RID<class_rid>` instance, :ref:`float<class_float>` min, :ref:`float<class_float>` max, :ref:`float<class_float>` min_margin, :ref:`float<class_float>` max_margin **)**
  1387. .. _class_VisualServer_instance_geometry_set_flag:
  1388. - void **instance_geometry_set_flag** **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enabled **)**
  1389. .. _class_VisualServer_instance_geometry_set_material_override:
  1390. - void **instance_geometry_set_material_override** **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` material **)**
  1391. .. _class_VisualServer_instance_set_base:
  1392. - void **instance_set_base** **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` base **)**
  1393. .. _class_VisualServer_instance_set_blend_shape_weight:
  1394. - void **instance_set_blend_shape_weight** **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` shape, :ref:`float<class_float>` weight **)**
  1395. .. _class_VisualServer_instance_set_custom_aabb:
  1396. - void **instance_set_custom_aabb** **(** :ref:`RID<class_rid>` instance, :ref:`AABB<class_aabb>` aabb **)**
  1397. .. _class_VisualServer_instance_set_exterior:
  1398. - void **instance_set_exterior** **(** :ref:`RID<class_rid>` instance, :ref:`bool<class_bool>` enabled **)**
  1399. .. _class_VisualServer_instance_set_extra_visibility_margin:
  1400. - void **instance_set_extra_visibility_margin** **(** :ref:`RID<class_rid>` instance, :ref:`float<class_float>` margin **)**
  1401. .. _class_VisualServer_instance_set_layer_mask:
  1402. - void **instance_set_layer_mask** **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` mask **)**
  1403. .. _class_VisualServer_instance_set_scenario:
  1404. - void **instance_set_scenario** **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` scenario **)**
  1405. .. _class_VisualServer_instance_set_surface_material:
  1406. - void **instance_set_surface_material** **(** :ref:`RID<class_rid>` instance, :ref:`int<class_int>` surface, :ref:`RID<class_rid>` material **)**
  1407. .. _class_VisualServer_instance_set_transform:
  1408. - void **instance_set_transform** **(** :ref:`RID<class_rid>` instance, :ref:`Transform<class_transform>` transform **)**
  1409. .. _class_VisualServer_instance_set_use_lightmap:
  1410. - void **instance_set_use_lightmap** **(** :ref:`RID<class_rid>` instance, :ref:`RID<class_rid>` lightmap_instance, :ref:`RID<class_rid>` lightmap **)**
  1411. .. _class_VisualServer_instance_set_visible:
  1412. - void **instance_set_visible** **(** :ref:`RID<class_rid>` instance, :ref:`bool<class_bool>` visible **)**
  1413. .. _class_VisualServer_instances_cull_aabb:
  1414. - :ref:`Array<class_array>` **instances_cull_aabb** **(** :ref:`AABB<class_aabb>` aabb, :ref:`RID<class_rid>` scenario **)** const
  1415. .. _class_VisualServer_instances_cull_convex:
  1416. - :ref:`Array<class_array>` **instances_cull_convex** **(** :ref:`Array<class_array>` convex, :ref:`RID<class_rid>` scenario **)** const
  1417. .. _class_VisualServer_instances_cull_ray:
  1418. - :ref:`Array<class_array>` **instances_cull_ray** **(** :ref:`Vector3<class_vector3>` from, :ref:`Vector3<class_vector3>` to, :ref:`RID<class_rid>` scenario **)** const
  1419. .. _class_VisualServer_light_directional_set_blend_splits:
  1420. - void **light_directional_set_blend_splits** **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enable **)**
  1421. .. _class_VisualServer_light_directional_set_shadow_depth_range_mode:
  1422. - void **light_directional_set_shadow_depth_range_mode** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` range_mode **)**
  1423. .. _class_VisualServer_light_directional_set_shadow_mode:
  1424. - void **light_directional_set_shadow_mode** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mode **)**
  1425. .. _class_VisualServer_light_omni_set_shadow_detail:
  1426. - void **light_omni_set_shadow_detail** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` detail **)**
  1427. .. _class_VisualServer_light_omni_set_shadow_mode:
  1428. - void **light_omni_set_shadow_mode** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mode **)**
  1429. .. _class_VisualServer_light_set_color:
  1430. - void **light_set_color** **(** :ref:`RID<class_rid>` light, :ref:`Color<class_color>` color **)**
  1431. .. _class_VisualServer_light_set_cull_mask:
  1432. - void **light_set_cull_mask** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` mask **)**
  1433. .. _class_VisualServer_light_set_negative:
  1434. - void **light_set_negative** **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enable **)**
  1435. .. _class_VisualServer_light_set_param:
  1436. - void **light_set_param** **(** :ref:`RID<class_rid>` light, :ref:`int<class_int>` param, :ref:`float<class_float>` value **)**
  1437. .. _class_VisualServer_light_set_projector:
  1438. - void **light_set_projector** **(** :ref:`RID<class_rid>` light, :ref:`RID<class_rid>` texture **)**
  1439. .. _class_VisualServer_light_set_reverse_cull_face_mode:
  1440. - void **light_set_reverse_cull_face_mode** **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enabled **)**
  1441. .. _class_VisualServer_light_set_shadow:
  1442. - void **light_set_shadow** **(** :ref:`RID<class_rid>` light, :ref:`bool<class_bool>` enabled **)**
  1443. .. _class_VisualServer_light_set_shadow_color:
  1444. - void **light_set_shadow_color** **(** :ref:`RID<class_rid>` light, :ref:`Color<class_color>` color **)**
  1445. .. _class_VisualServer_lightmap_capture_create:
  1446. - :ref:`RID<class_rid>` **lightmap_capture_create** **(** **)**
  1447. .. _class_VisualServer_lightmap_capture_get_bounds:
  1448. - :ref:`AABB<class_aabb>` **lightmap_capture_get_bounds** **(** :ref:`RID<class_rid>` capture **)** const
  1449. .. _class_VisualServer_lightmap_capture_get_energy:
  1450. - :ref:`float<class_float>` **lightmap_capture_get_energy** **(** :ref:`RID<class_rid>` capture **)** const
  1451. .. _class_VisualServer_lightmap_capture_get_octree:
  1452. - :ref:`PoolByteArray<class_poolbytearray>` **lightmap_capture_get_octree** **(** :ref:`RID<class_rid>` capture **)** const
  1453. .. _class_VisualServer_lightmap_capture_get_octree_cell_subdiv:
  1454. - :ref:`int<class_int>` **lightmap_capture_get_octree_cell_subdiv** **(** :ref:`RID<class_rid>` capture **)** const
  1455. .. _class_VisualServer_lightmap_capture_get_octree_cell_transform:
  1456. - :ref:`Transform<class_transform>` **lightmap_capture_get_octree_cell_transform** **(** :ref:`RID<class_rid>` capture **)** const
  1457. .. _class_VisualServer_lightmap_capture_set_bounds:
  1458. - void **lightmap_capture_set_bounds** **(** :ref:`RID<class_rid>` capture, :ref:`AABB<class_aabb>` bounds **)**
  1459. .. _class_VisualServer_lightmap_capture_set_energy:
  1460. - void **lightmap_capture_set_energy** **(** :ref:`RID<class_rid>` capture, :ref:`float<class_float>` energy **)**
  1461. .. _class_VisualServer_lightmap_capture_set_octree:
  1462. - void **lightmap_capture_set_octree** **(** :ref:`RID<class_rid>` capture, :ref:`PoolByteArray<class_poolbytearray>` octree **)**
  1463. .. _class_VisualServer_lightmap_capture_set_octree_cell_subdiv:
  1464. - void **lightmap_capture_set_octree_cell_subdiv** **(** :ref:`RID<class_rid>` capture, :ref:`int<class_int>` subdiv **)**
  1465. .. _class_VisualServer_lightmap_capture_set_octree_cell_transform:
  1466. - void **lightmap_capture_set_octree_cell_transform** **(** :ref:`RID<class_rid>` capture, :ref:`Transform<class_transform>` xform **)**
  1467. .. _class_VisualServer_make_sphere_mesh:
  1468. - :ref:`RID<class_rid>` **make_sphere_mesh** **(** :ref:`int<class_int>` latitudes, :ref:`int<class_int>` longitudes, :ref:`float<class_float>` radius **)**
  1469. Returns a mesh of a sphere with the given amount of horizontal and vertical subdivisions.
  1470. .. _class_VisualServer_material_create:
  1471. - :ref:`RID<class_rid>` **material_create** **(** **)**
  1472. Returns an empty material.
  1473. .. _class_VisualServer_material_get_param:
  1474. - :ref:`Variant<class_variant>` **material_get_param** **(** :ref:`RID<class_rid>` material, :ref:`String<class_string>` parameter **)** const
  1475. Returns the value of a certain material's parameter.
  1476. .. _class_VisualServer_material_get_shader:
  1477. - :ref:`RID<class_rid>` **material_get_shader** **(** :ref:`RID<class_rid>` shader_material **)** const
  1478. Returns the shader of a certain material's shader. Returns an empty RID if the material doesn't have a shader.
  1479. .. _class_VisualServer_material_set_line_width:
  1480. - void **material_set_line_width** **(** :ref:`RID<class_rid>` material, :ref:`float<class_float>` width **)**
  1481. Sets a materials line width.
  1482. .. _class_VisualServer_material_set_next_pass:
  1483. - void **material_set_next_pass** **(** :ref:`RID<class_rid>` material, :ref:`RID<class_rid>` next_material **)**
  1484. Sets an objects next material.
  1485. .. _class_VisualServer_material_set_param:
  1486. - void **material_set_param** **(** :ref:`RID<class_rid>` material, :ref:`String<class_string>` parameter, :ref:`Variant<class_variant>` value **)**
  1487. Sets a materials parameter.
  1488. .. _class_VisualServer_material_set_render_priority:
  1489. - void **material_set_render_priority** **(** :ref:`RID<class_rid>` material, :ref:`int<class_int>` priority **)**
  1490. Sets a material's render priority.
  1491. .. _class_VisualServer_material_set_shader:
  1492. - void **material_set_shader** **(** :ref:`RID<class_rid>` shader_material, :ref:`RID<class_rid>` shader **)**
  1493. Sets a shader material's shader.
  1494. .. _class_VisualServer_mesh_add_surface_from_arrays:
  1495. - void **mesh_add_surface_from_arrays** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` primtive, :ref:`Array<class_array>` arrays, :ref:`Array<class_array>` blend_shapes=[ ], :ref:`int<class_int>` compress_format=97792 **)**
  1496. Adds a surface generated from the Arrays to a mesh. See PRIMITIVE_TYPE\_\* constants for types.
  1497. .. _class_VisualServer_mesh_clear:
  1498. - void **mesh_clear** **(** :ref:`RID<class_rid>` mesh **)**
  1499. Removes all surfaces from a mesh.
  1500. .. _class_VisualServer_mesh_create:
  1501. - :ref:`RID<class_rid>` **mesh_create** **(** **)**
  1502. Creates a new mesh.
  1503. .. _class_VisualServer_mesh_get_blend_shape_count:
  1504. - :ref:`int<class_int>` **mesh_get_blend_shape_count** **(** :ref:`RID<class_rid>` mesh **)** const
  1505. Returns a mesh's blend shape count.
  1506. .. _class_VisualServer_mesh_get_blend_shape_mode:
  1507. - :ref:`int<class_int>` **mesh_get_blend_shape_mode** **(** :ref:`RID<class_rid>` mesh **)** const
  1508. Returns a mesh's blend shape mode.
  1509. .. _class_VisualServer_mesh_get_custom_aabb:
  1510. - :ref:`AABB<class_aabb>` **mesh_get_custom_aabb** **(** :ref:`RID<class_rid>` mesh **)** const
  1511. Returns a mesh's custom aabb.
  1512. .. _class_VisualServer_mesh_get_surface_count:
  1513. - :ref:`int<class_int>` **mesh_get_surface_count** **(** :ref:`RID<class_rid>` mesh **)** const
  1514. Returns a mesh's number of surfaces.
  1515. .. _class_VisualServer_mesh_remove_surface:
  1516. - void **mesh_remove_surface** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` index **)**
  1517. Removes a mesh's surface.
  1518. .. _class_VisualServer_mesh_set_blend_shape_count:
  1519. - void **mesh_set_blend_shape_count** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` amount **)**
  1520. Sets a mesh's blend shape count.
  1521. .. _class_VisualServer_mesh_set_blend_shape_mode:
  1522. - void **mesh_set_blend_shape_mode** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` mode **)**
  1523. Sets a mesh's blend shape mode.
  1524. .. _class_VisualServer_mesh_set_custom_aabb:
  1525. - void **mesh_set_custom_aabb** **(** :ref:`RID<class_rid>` mesh, :ref:`AABB<class_aabb>` aabb **)**
  1526. Sets a mesh's custom aabb.
  1527. .. _class_VisualServer_mesh_surface_get_aabb:
  1528. - :ref:`AABB<class_aabb>` **mesh_surface_get_aabb** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1529. Returns a mesh's surface's aabb.
  1530. .. _class_VisualServer_mesh_surface_get_array:
  1531. - :ref:`PoolByteArray<class_poolbytearray>` **mesh_surface_get_array** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1532. Returns a mesh's surface's vertex buffer.
  1533. .. _class_VisualServer_mesh_surface_get_array_index_len:
  1534. - :ref:`int<class_int>` **mesh_surface_get_array_index_len** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1535. Returns a mesh's surface's amount of indices.
  1536. .. _class_VisualServer_mesh_surface_get_array_len:
  1537. - :ref:`int<class_int>` **mesh_surface_get_array_len** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1538. Returns a mesh's surface's amount of vertices.
  1539. .. _class_VisualServer_mesh_surface_get_arrays:
  1540. - :ref:`Array<class_array>` **mesh_surface_get_arrays** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1541. Returns a mesh's surface's buffer arrays.
  1542. .. _class_VisualServer_mesh_surface_get_blend_shape_arrays:
  1543. - :ref:`Array<class_array>` **mesh_surface_get_blend_shape_arrays** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1544. Returns a mesh's surface's arrays for blend shapes
  1545. .. _class_VisualServer_mesh_surface_get_format:
  1546. - :ref:`int<class_int>` **mesh_surface_get_format** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1547. Returns the format of a mesh's surface.
  1548. .. _class_VisualServer_mesh_surface_get_index_array:
  1549. - :ref:`PoolByteArray<class_poolbytearray>` **mesh_surface_get_index_array** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1550. Returns a mesh's surface's index buffer.
  1551. .. _class_VisualServer_mesh_surface_get_material:
  1552. - :ref:`RID<class_rid>` **mesh_surface_get_material** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1553. Returns a mesh's surface's material.
  1554. .. _class_VisualServer_mesh_surface_get_primitive_type:
  1555. - :ref:`int<class_int>` **mesh_surface_get_primitive_type** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1556. Returns the primitive type of a mesh's surface.
  1557. .. _class_VisualServer_mesh_surface_get_skeleton_aabb:
  1558. - :ref:`Array<class_array>` **mesh_surface_get_skeleton_aabb** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface **)** const
  1559. Returns the aabb of a mesh's surface's skeleton.
  1560. .. _class_VisualServer_mesh_surface_set_material:
  1561. - void **mesh_surface_set_material** **(** :ref:`RID<class_rid>` mesh, :ref:`int<class_int>` surface, :ref:`RID<class_rid>` material **)**
  1562. Sets a mesh's surface's material.
  1563. .. _class_VisualServer_multimesh_allocate:
  1564. - void **multimesh_allocate** **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` instances, :ref:`int<class_int>` transform_format, :ref:`int<class_int>` color_format **)**
  1565. .. _class_VisualServer_multimesh_get_aabb:
  1566. - :ref:`AABB<class_aabb>` **multimesh_get_aabb** **(** :ref:`RID<class_rid>` multimesh **)** const
  1567. .. _class_VisualServer_multimesh_get_instance_count:
  1568. - :ref:`int<class_int>` **multimesh_get_instance_count** **(** :ref:`RID<class_rid>` multimesh **)** const
  1569. .. _class_VisualServer_multimesh_get_mesh:
  1570. - :ref:`RID<class_rid>` **multimesh_get_mesh** **(** :ref:`RID<class_rid>` multimesh **)** const
  1571. .. _class_VisualServer_multimesh_get_visible_instances:
  1572. - :ref:`int<class_int>` **multimesh_get_visible_instances** **(** :ref:`RID<class_rid>` multimesh **)** const
  1573. .. _class_VisualServer_multimesh_instance_get_color:
  1574. - :ref:`Color<class_color>` **multimesh_instance_get_color** **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index **)** const
  1575. .. _class_VisualServer_multimesh_instance_get_transform:
  1576. - :ref:`Transform<class_transform>` **multimesh_instance_get_transform** **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index **)** const
  1577. .. _class_VisualServer_multimesh_instance_get_transform_2d:
  1578. - :ref:`Transform2D<class_transform2d>` **multimesh_instance_get_transform_2d** **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index **)** const
  1579. .. _class_VisualServer_multimesh_instance_set_color:
  1580. - void **multimesh_instance_set_color** **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index, :ref:`Color<class_color>` color **)**
  1581. .. _class_VisualServer_multimesh_instance_set_transform:
  1582. - void **multimesh_instance_set_transform** **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index, :ref:`Transform<class_transform>` transform **)**
  1583. .. _class_VisualServer_multimesh_instance_set_transform_2d:
  1584. - void **multimesh_instance_set_transform_2d** **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` index, :ref:`Transform2D<class_transform2d>` transform **)**
  1585. .. _class_VisualServer_multimesh_set_mesh:
  1586. - void **multimesh_set_mesh** **(** :ref:`RID<class_rid>` multimesh, :ref:`RID<class_rid>` mesh **)**
  1587. .. _class_VisualServer_multimesh_set_visible_instances:
  1588. - void **multimesh_set_visible_instances** **(** :ref:`RID<class_rid>` multimesh, :ref:`int<class_int>` visible **)**
  1589. .. _class_VisualServer_omni_light_create:
  1590. - :ref:`RID<class_rid>` **omni_light_create** **(** **)**
  1591. .. _class_VisualServer_particles_create:
  1592. - :ref:`RID<class_rid>` **particles_create** **(** **)**
  1593. .. _class_VisualServer_particles_get_current_aabb:
  1594. - :ref:`AABB<class_aabb>` **particles_get_current_aabb** **(** :ref:`RID<class_rid>` particles **)**
  1595. .. _class_VisualServer_particles_get_emitting:
  1596. - :ref:`bool<class_bool>` **particles_get_emitting** **(** :ref:`RID<class_rid>` particles **)**
  1597. .. _class_VisualServer_particles_restart:
  1598. - void **particles_restart** **(** :ref:`RID<class_rid>` particles **)**
  1599. .. _class_VisualServer_particles_set_amount:
  1600. - void **particles_set_amount** **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` amount **)**
  1601. .. _class_VisualServer_particles_set_custom_aabb:
  1602. - void **particles_set_custom_aabb** **(** :ref:`RID<class_rid>` particles, :ref:`AABB<class_aabb>` aabb **)**
  1603. .. _class_VisualServer_particles_set_draw_order:
  1604. - void **particles_set_draw_order** **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` order **)**
  1605. .. _class_VisualServer_particles_set_draw_pass_mesh:
  1606. - void **particles_set_draw_pass_mesh** **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` pass, :ref:`RID<class_rid>` mesh **)**
  1607. .. _class_VisualServer_particles_set_draw_passes:
  1608. - void **particles_set_draw_passes** **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` count **)**
  1609. .. _class_VisualServer_particles_set_emission_transform:
  1610. - void **particles_set_emission_transform** **(** :ref:`RID<class_rid>` particles, :ref:`Transform<class_transform>` transform **)**
  1611. .. _class_VisualServer_particles_set_emitting:
  1612. - void **particles_set_emitting** **(** :ref:`RID<class_rid>` particles, :ref:`bool<class_bool>` emitting **)**
  1613. .. _class_VisualServer_particles_set_explosiveness_ratio:
  1614. - void **particles_set_explosiveness_ratio** **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` ratio **)**
  1615. .. _class_VisualServer_particles_set_fixed_fps:
  1616. - void **particles_set_fixed_fps** **(** :ref:`RID<class_rid>` particles, :ref:`int<class_int>` fps **)**
  1617. .. _class_VisualServer_particles_set_fractional_delta:
  1618. - void **particles_set_fractional_delta** **(** :ref:`RID<class_rid>` particles, :ref:`bool<class_bool>` enable **)**
  1619. .. _class_VisualServer_particles_set_lifetime:
  1620. - void **particles_set_lifetime** **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` lifetime **)**
  1621. .. _class_VisualServer_particles_set_one_shot:
  1622. - void **particles_set_one_shot** **(** :ref:`RID<class_rid>` particles, :ref:`bool<class_bool>` one_shot **)**
  1623. .. _class_VisualServer_particles_set_pre_process_time:
  1624. - void **particles_set_pre_process_time** **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` time **)**
  1625. .. _class_VisualServer_particles_set_process_material:
  1626. - void **particles_set_process_material** **(** :ref:`RID<class_rid>` particles, :ref:`RID<class_rid>` material **)**
  1627. .. _class_VisualServer_particles_set_randomness_ratio:
  1628. - void **particles_set_randomness_ratio** **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` ratio **)**
  1629. .. _class_VisualServer_particles_set_speed_scale:
  1630. - void **particles_set_speed_scale** **(** :ref:`RID<class_rid>` particles, :ref:`float<class_float>` scale **)**
  1631. .. _class_VisualServer_particles_set_use_local_coordinates:
  1632. - void **particles_set_use_local_coordinates** **(** :ref:`RID<class_rid>` particles, :ref:`bool<class_bool>` enable **)**
  1633. .. _class_VisualServer_reflection_probe_create:
  1634. - :ref:`RID<class_rid>` **reflection_probe_create** **(** **)**
  1635. .. _class_VisualServer_reflection_probe_set_as_interior:
  1636. - void **reflection_probe_set_as_interior** **(** :ref:`RID<class_rid>` probe, :ref:`bool<class_bool>` enable **)**
  1637. .. _class_VisualServer_reflection_probe_set_cull_mask:
  1638. - void **reflection_probe_set_cull_mask** **(** :ref:`RID<class_rid>` probe, :ref:`int<class_int>` layers **)**
  1639. .. _class_VisualServer_reflection_probe_set_enable_box_projection:
  1640. - void **reflection_probe_set_enable_box_projection** **(** :ref:`RID<class_rid>` probe, :ref:`bool<class_bool>` enable **)**
  1641. .. _class_VisualServer_reflection_probe_set_enable_shadows:
  1642. - void **reflection_probe_set_enable_shadows** **(** :ref:`RID<class_rid>` probe, :ref:`bool<class_bool>` enable **)**
  1643. .. _class_VisualServer_reflection_probe_set_extents:
  1644. - void **reflection_probe_set_extents** **(** :ref:`RID<class_rid>` probe, :ref:`Vector3<class_vector3>` extents **)**
  1645. .. _class_VisualServer_reflection_probe_set_intensity:
  1646. - void **reflection_probe_set_intensity** **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` intensity **)**
  1647. .. _class_VisualServer_reflection_probe_set_interior_ambient:
  1648. - void **reflection_probe_set_interior_ambient** **(** :ref:`RID<class_rid>` probe, :ref:`Color<class_color>` color **)**
  1649. .. _class_VisualServer_reflection_probe_set_interior_ambient_energy:
  1650. - void **reflection_probe_set_interior_ambient_energy** **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` energy **)**
  1651. .. _class_VisualServer_reflection_probe_set_interior_ambient_probe_contribution:
  1652. - void **reflection_probe_set_interior_ambient_probe_contribution** **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` contrib **)**
  1653. .. _class_VisualServer_reflection_probe_set_max_distance:
  1654. - void **reflection_probe_set_max_distance** **(** :ref:`RID<class_rid>` probe, :ref:`float<class_float>` distance **)**
  1655. .. _class_VisualServer_reflection_probe_set_origin_offset:
  1656. - void **reflection_probe_set_origin_offset** **(** :ref:`RID<class_rid>` probe, :ref:`Vector3<class_vector3>` offset **)**
  1657. .. _class_VisualServer_reflection_probe_set_update_mode:
  1658. - void **reflection_probe_set_update_mode** **(** :ref:`RID<class_rid>` probe, :ref:`int<class_int>` mode **)**
  1659. .. _class_VisualServer_request_frame_drawn_callback:
  1660. - void **request_frame_drawn_callback** **(** :ref:`Object<class_object>` where, :ref:`String<class_string>` method, :ref:`Variant<class_variant>` userdata **)**
  1661. Schedules a callback to the corresponding named 'method' on 'where' after a frame has been drawn.
  1662. The callback method must use only 1 argument which will be called with 'userdata'.
  1663. .. _class_VisualServer_scenario_create:
  1664. - :ref:`RID<class_rid>` **scenario_create** **(** **)**
  1665. .. _class_VisualServer_scenario_set_debug:
  1666. - void **scenario_set_debug** **(** :ref:`RID<class_rid>` scenario, :ref:`int<class_int>` debug_mode **)**
  1667. .. _class_VisualServer_scenario_set_environment:
  1668. - void **scenario_set_environment** **(** :ref:`RID<class_rid>` scenario, :ref:`RID<class_rid>` environment **)**
  1669. .. _class_VisualServer_scenario_set_fallback_environment:
  1670. - void **scenario_set_fallback_environment** **(** :ref:`RID<class_rid>` scenario, :ref:`RID<class_rid>` environment **)**
  1671. .. _class_VisualServer_scenario_set_reflection_atlas_size:
  1672. - void **scenario_set_reflection_atlas_size** **(** :ref:`RID<class_rid>` scenario, :ref:`int<class_int>` p_size, :ref:`int<class_int>` subdiv **)**
  1673. .. _class_VisualServer_set_boot_image:
  1674. - void **set_boot_image** **(** :ref:`Image<class_image>` image, :ref:`Color<class_color>` color, :ref:`bool<class_bool>` scale **)**
  1675. Sets a boot image. The color defines the background color and if scale is ``true``, the image will be scaled to fit the screen size.
  1676. .. _class_VisualServer_set_debug_generate_wireframes:
  1677. - void **set_debug_generate_wireframes** **(** :ref:`bool<class_bool>` generate **)**
  1678. .. _class_VisualServer_set_default_clear_color:
  1679. - void **set_default_clear_color** **(** :ref:`Color<class_color>` color **)**
  1680. .. _class_VisualServer_shader_create:
  1681. - :ref:`RID<class_rid>` **shader_create** **(** **)**
  1682. Creates an empty shader.
  1683. .. _class_VisualServer_shader_get_code:
  1684. - :ref:`String<class_string>` **shader_get_code** **(** :ref:`RID<class_rid>` shader **)** const
  1685. Returns a shader's code.
  1686. .. _class_VisualServer_shader_get_default_texture_param:
  1687. - :ref:`RID<class_rid>` **shader_get_default_texture_param** **(** :ref:`RID<class_rid>` shader, :ref:`String<class_string>` name **)** const
  1688. Returns a default texture from a shader searched by name.
  1689. .. _class_VisualServer_shader_get_param_list:
  1690. - :ref:`Array<class_array>` **shader_get_param_list** **(** :ref:`RID<class_rid>` shader **)** const
  1691. Returns the parameters of a shader.
  1692. .. _class_VisualServer_shader_set_code:
  1693. - void **shader_set_code** **(** :ref:`RID<class_rid>` shader, :ref:`String<class_string>` code **)**
  1694. Sets a shader's code.
  1695. .. _class_VisualServer_shader_set_default_texture_param:
  1696. - void **shader_set_default_texture_param** **(** :ref:`RID<class_rid>` shader, :ref:`String<class_string>` name, :ref:`RID<class_rid>` texture **)**
  1697. Sets a shader's default texture. Overwrites the texture given by name.
  1698. .. _class_VisualServer_skeleton_allocate:
  1699. - void **skeleton_allocate** **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bones, :ref:`bool<class_bool>` is_2d_skeleton=false **)**
  1700. .. _class_VisualServer_skeleton_bone_get_transform:
  1701. - :ref:`Transform<class_transform>` **skeleton_bone_get_transform** **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bone **)** const
  1702. .. _class_VisualServer_skeleton_bone_get_transform_2d:
  1703. - :ref:`Transform2D<class_transform2d>` **skeleton_bone_get_transform_2d** **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bone **)** const
  1704. .. _class_VisualServer_skeleton_bone_set_transform:
  1705. - void **skeleton_bone_set_transform** **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bone, :ref:`Transform<class_transform>` transform **)**
  1706. .. _class_VisualServer_skeleton_bone_set_transform_2d:
  1707. - void **skeleton_bone_set_transform_2d** **(** :ref:`RID<class_rid>` skeleton, :ref:`int<class_int>` bone, :ref:`Transform2D<class_transform2d>` transform **)**
  1708. .. _class_VisualServer_skeleton_create:
  1709. - :ref:`RID<class_rid>` **skeleton_create** **(** **)**
  1710. .. _class_VisualServer_skeleton_get_bone_count:
  1711. - :ref:`int<class_int>` **skeleton_get_bone_count** **(** :ref:`RID<class_rid>` skeleton **)** const
  1712. .. _class_VisualServer_sky_create:
  1713. - :ref:`RID<class_rid>` **sky_create** **(** **)**
  1714. Creates an empty sky.
  1715. .. _class_VisualServer_sky_set_texture:
  1716. - void **sky_set_texture** **(** :ref:`RID<class_rid>` sky, :ref:`RID<class_rid>` cube_map, :ref:`int<class_int>` radiance_size **)**
  1717. Sets a sky's texture.
  1718. .. _class_VisualServer_spot_light_create:
  1719. - :ref:`RID<class_rid>` **spot_light_create** **(** **)**
  1720. .. _class_VisualServer_sync:
  1721. - void **sync** **(** **)**
  1722. .. _class_VisualServer_texture_allocate:
  1723. - void **texture_allocate** **(** :ref:`RID<class_rid>` texture, :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`int<class_int>` format, :ref:`int<class_int>` flags=7 **)**
  1724. Allocates space for a texture's image or video.
  1725. .. _class_VisualServer_texture_create:
  1726. - :ref:`RID<class_rid>` **texture_create** **(** **)**
  1727. Creates an empty texture.
  1728. .. _class_VisualServer_texture_create_from_image:
  1729. - :ref:`RID<class_rid>` **texture_create_from_image** **(** :ref:`Image<class_image>` image, :ref:`int<class_int>` flags=7 **)**
  1730. Creates a texture, allocates the space for an image, and fills in the image.
  1731. .. _class_VisualServer_texture_debug_usage:
  1732. - :ref:`Array<class_array>` **texture_debug_usage** **(** **)**
  1733. Returns a list of all the textures and their information.
  1734. .. _class_VisualServer_texture_get_data:
  1735. - :ref:`Image<class_image>` **texture_get_data** **(** :ref:`RID<class_rid>` texture, :ref:`int<class_int>` cube_side=0 **)** const
  1736. Returns a copy of a texture's image unless it's a CubeMap, in which case it returns the :ref:`RID<class_rid>` of the image at one of the cubes sides.
  1737. .. _class_VisualServer_texture_get_flags:
  1738. - :ref:`int<class_int>` **texture_get_flags** **(** :ref:`RID<class_rid>` texture **)** const
  1739. Returns the flags of a texture.
  1740. .. _class_VisualServer_texture_get_format:
  1741. - :ref:`int<class_int>` **texture_get_format** **(** :ref:`RID<class_rid>` texture **)** const
  1742. Returns the format of the texture's image.
  1743. .. _class_VisualServer_texture_get_height:
  1744. - :ref:`int<class_int>` **texture_get_height** **(** :ref:`RID<class_rid>` texture **)** const
  1745. Returns the texture's height.
  1746. .. _class_VisualServer_texture_get_path:
  1747. - :ref:`String<class_string>` **texture_get_path** **(** :ref:`RID<class_rid>` texture **)** const
  1748. Returns the texture's path.
  1749. .. _class_VisualServer_texture_get_texid:
  1750. - :ref:`int<class_int>` **texture_get_texid** **(** :ref:`RID<class_rid>` texture **)** const
  1751. Returns the opengl id of the texture's image.
  1752. .. _class_VisualServer_texture_get_width:
  1753. - :ref:`int<class_int>` **texture_get_width** **(** :ref:`RID<class_rid>` texture **)** const
  1754. Returns the texture's width.
  1755. .. _class_VisualServer_texture_set_data:
  1756. - void **texture_set_data** **(** :ref:`RID<class_rid>` texture, :ref:`Image<class_image>` image, :ref:`int<class_int>` cube_side=0 **)**
  1757. Sets the texture's image data. If it's a CubeMap, it sets the image data at a cube side.
  1758. .. _class_VisualServer_texture_set_flags:
  1759. - void **texture_set_flags** **(** :ref:`RID<class_rid>` texture, :ref:`int<class_int>` flags **)**
  1760. Sets the texture's flags. See enum TextureFlags for options
  1761. .. _class_VisualServer_texture_set_path:
  1762. - void **texture_set_path** **(** :ref:`RID<class_rid>` texture, :ref:`String<class_string>` path **)**
  1763. Sets the texture's path.
  1764. .. _class_VisualServer_texture_set_shrink_all_x2_on_set_data:
  1765. - void **texture_set_shrink_all_x2_on_set_data** **(** :ref:`bool<class_bool>` shrink **)**
  1766. If ``true``, sets internal processes to shrink all image data to half the size.
  1767. .. _class_VisualServer_texture_set_size_override:
  1768. - void **texture_set_size_override** **(** :ref:`RID<class_rid>` texture, :ref:`int<class_int>` width, :ref:`int<class_int>` height **)**
  1769. Overwrites the texture's width and height.
  1770. .. _class_VisualServer_textures_keep_original:
  1771. - void **textures_keep_original** **(** :ref:`bool<class_bool>` enable **)**
  1772. If ``true``, the image will be stored in the texture's images array if overwritten.
  1773. .. _class_VisualServer_viewport_attach_camera:
  1774. - void **viewport_attach_camera** **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` camera **)**
  1775. Sets a viewport's camera.
  1776. .. _class_VisualServer_viewport_attach_canvas:
  1777. - void **viewport_attach_canvas** **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` canvas **)**
  1778. Sets a viewport's canvas.
  1779. .. _class_VisualServer_viewport_attach_to_screen:
  1780. - void **viewport_attach_to_screen** **(** :ref:`RID<class_rid>` viewport, :ref:`Rect2<class_rect2>` rect=Rect2( 0, 0, 0, 0 ), :ref:`int<class_int>` screen=0 **)**
  1781. Attaches a viewport to a screen.
  1782. .. _class_VisualServer_viewport_create:
  1783. - :ref:`RID<class_rid>` **viewport_create** **(** **)**
  1784. Creates an empty viewport.
  1785. .. _class_VisualServer_viewport_detach:
  1786. - void **viewport_detach** **(** :ref:`RID<class_rid>` viewport **)**
  1787. Detaches the viewport from the screen.
  1788. .. _class_VisualServer_viewport_get_render_info:
  1789. - :ref:`int<class_int>` **viewport_get_render_info** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` info **)**
  1790. Returns a viewport's render info. for options see VIEWPORT_RENDER_INFO\* constants.
  1791. .. _class_VisualServer_viewport_get_texture:
  1792. - :ref:`RID<class_rid>` **viewport_get_texture** **(** :ref:`RID<class_rid>` viewport **)** const
  1793. Returns the viewport's last rendered frame.
  1794. .. _class_VisualServer_viewport_remove_canvas:
  1795. - void **viewport_remove_canvas** **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` canvas **)**
  1796. Detaches a viewport from a canvas and vice versa.
  1797. .. _class_VisualServer_viewport_set_active:
  1798. - void **viewport_set_active** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` active **)**
  1799. If ``true``, sets the viewport active, else sets it inactive.
  1800. .. _class_VisualServer_viewport_set_canvas_layer:
  1801. - void **viewport_set_canvas_layer** **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` canvas, :ref:`int<class_int>` layer **)**
  1802. Sets the renderlayer for a viewport's canvas.
  1803. .. _class_VisualServer_viewport_set_canvas_transform:
  1804. - void **viewport_set_canvas_transform** **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` canvas, :ref:`Transform2D<class_transform2d>` offset **)**
  1805. Sets the transformation of a viewport's canvas.
  1806. .. _class_VisualServer_viewport_set_clear_mode:
  1807. - void **viewport_set_clear_mode** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` clear_mode **)**
  1808. Sets the clear mode of a viewport. See VIEWPORT_CLEAR_MODE\_\* constants for options.
  1809. .. _class_VisualServer_viewport_set_debug_draw:
  1810. - void **viewport_set_debug_draw** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` draw **)**
  1811. Sets the debug draw mode of a viewport. See VIEWPORT_DEBUG_DRAW\_\* constants for options.
  1812. .. _class_VisualServer_viewport_set_disable_3d:
  1813. - void **viewport_set_disable_3d** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` disabled **)**
  1814. If ``true`` a viewport's 3D rendering should be disabled.
  1815. .. _class_VisualServer_viewport_set_disable_environment:
  1816. - void **viewport_set_disable_environment** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` disabled **)**
  1817. If ``true`` rendering of a viewport's environment should be disabled.
  1818. .. _class_VisualServer_viewport_set_global_canvas_transform:
  1819. - void **viewport_set_global_canvas_transform** **(** :ref:`RID<class_rid>` viewport, :ref:`Transform2D<class_transform2d>` transform **)**
  1820. Sets the viewport's global transformation matrix.
  1821. .. _class_VisualServer_viewport_set_hdr:
  1822. - void **viewport_set_hdr** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` enabled **)**
  1823. If ``true`` the viewport should render to hdr.
  1824. .. _class_VisualServer_viewport_set_hide_canvas:
  1825. - void **viewport_set_hide_canvas** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` hidden **)**
  1826. If ``true`` the viewport's canvas should not be rendered.
  1827. .. _class_VisualServer_viewport_set_hide_scenario:
  1828. - void **viewport_set_hide_scenario** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` hidden **)**
  1829. .. _class_VisualServer_viewport_set_msaa:
  1830. - void **viewport_set_msaa** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` msaa **)**
  1831. Sets the anti-aliasing mode. see enum ViewportMSAA for options.
  1832. .. _class_VisualServer_viewport_set_parent_viewport:
  1833. - void **viewport_set_parent_viewport** **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` parent_viewport **)**
  1834. Sets the viewport's parent to another viewport.
  1835. .. _class_VisualServer_viewport_set_scenario:
  1836. - void **viewport_set_scenario** **(** :ref:`RID<class_rid>` viewport, :ref:`RID<class_rid>` scenario **)**
  1837. Sets a viewport's scenario.
  1838. The scenario contains information about the enum ScenarioDebugMode, environment information, reflection atlas etc.
  1839. .. _class_VisualServer_viewport_set_shadow_atlas_quadrant_subdivision:
  1840. - void **viewport_set_shadow_atlas_quadrant_subdivision** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` quadrant, :ref:`int<class_int>` subdivision **)**
  1841. Sets the shadow atlas quadrant's subdivision.
  1842. .. _class_VisualServer_viewport_set_shadow_atlas_size:
  1843. - void **viewport_set_shadow_atlas_size** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` size **)**
  1844. Sets the size of the shadow atlas's images.
  1845. .. _class_VisualServer_viewport_set_size:
  1846. - void **viewport_set_size** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` width, :ref:`int<class_int>` height **)**
  1847. Sets the viewport's width and height.
  1848. .. _class_VisualServer_viewport_set_transparent_background:
  1849. - void **viewport_set_transparent_background** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` enabled **)**
  1850. If ``true`` the viewport should render its background as transparent.
  1851. .. _class_VisualServer_viewport_set_update_mode:
  1852. - void **viewport_set_update_mode** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` update_mode **)**
  1853. Sets when the viewport should be updated. See VIEWPORT_UPDATE_MODE\_\* constants for options.
  1854. .. _class_VisualServer_viewport_set_usage:
  1855. - void **viewport_set_usage** **(** :ref:`RID<class_rid>` viewport, :ref:`int<class_int>` usage **)**
  1856. Sets what should be rendered in the viewport. See VIEWPORT_USAGE\_\* constants for options.
  1857. .. _class_VisualServer_viewport_set_use_arvr:
  1858. - void **viewport_set_use_arvr** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` use_arvr **)**
  1859. If ``true`` the viewport should use augmented or virtual reality technologies. See :ref:`ARVRInterface<class_arvrinterface>`.
  1860. .. _class_VisualServer_viewport_set_vflip:
  1861. - void **viewport_set_vflip** **(** :ref:`RID<class_rid>` viewport, :ref:`bool<class_bool>` enabled **)**
  1862. If ``true`` the viewport's rendering should be flipped vertically.