class_spatialmaterial.rst 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the SpatialMaterial.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_SpatialMaterial:
  5. SpatialMaterial
  6. ===============
  7. **Inherits:** :ref:`Material<class_material>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Member Variables
  12. ----------------
  13. .. _class_SpatialMaterial_albedo_color:
  14. - :ref:`Color<class_color>` **albedo_color**
  15. .. _class_SpatialMaterial_albedo_texture:
  16. - :ref:`Texture<class_texture>` **albedo_texture**
  17. .. _class_SpatialMaterial_anisotropy:
  18. - :ref:`float<class_float>` **anisotropy**
  19. .. _class_SpatialMaterial_anisotropy_enabled:
  20. - :ref:`bool<class_bool>` **anisotropy_enabled**
  21. .. _class_SpatialMaterial_anisotropy_flowmap:
  22. - :ref:`Texture<class_texture>` **anisotropy_flowmap**
  23. .. _class_SpatialMaterial_ao_enabled:
  24. - :ref:`bool<class_bool>` **ao_enabled**
  25. .. _class_SpatialMaterial_ao_light_affect:
  26. - :ref:`float<class_float>` **ao_light_affect**
  27. .. _class_SpatialMaterial_ao_on_uv2:
  28. - :ref:`bool<class_bool>` **ao_on_uv2**
  29. .. _class_SpatialMaterial_ao_texture:
  30. - :ref:`Texture<class_texture>` **ao_texture**
  31. .. _class_SpatialMaterial_ao_texture_channel:
  32. - :ref:`TextureChannel<enum_spatialmaterial_texturechannel>` **ao_texture_channel**
  33. .. _class_SpatialMaterial_clearcoat:
  34. - :ref:`float<class_float>` **clearcoat**
  35. .. _class_SpatialMaterial_clearcoat_enabled:
  36. - :ref:`bool<class_bool>` **clearcoat_enabled**
  37. .. _class_SpatialMaterial_clearcoat_gloss:
  38. - :ref:`float<class_float>` **clearcoat_gloss**
  39. .. _class_SpatialMaterial_clearcoat_texture:
  40. - :ref:`Texture<class_texture>` **clearcoat_texture**
  41. .. _class_SpatialMaterial_depth_deep_parallax:
  42. - :ref:`bool<class_bool>` **depth_deep_parallax**
  43. .. _class_SpatialMaterial_depth_enabled:
  44. - :ref:`bool<class_bool>` **depth_enabled**
  45. .. _class_SpatialMaterial_depth_max_layers:
  46. - :ref:`int<class_int>` **depth_max_layers**
  47. .. _class_SpatialMaterial_depth_min_layers:
  48. - :ref:`int<class_int>` **depth_min_layers**
  49. .. _class_SpatialMaterial_depth_scale:
  50. - :ref:`float<class_float>` **depth_scale**
  51. .. _class_SpatialMaterial_depth_texture:
  52. - :ref:`Texture<class_texture>` **depth_texture**
  53. .. _class_SpatialMaterial_detail_albedo:
  54. - :ref:`Texture<class_texture>` **detail_albedo**
  55. .. _class_SpatialMaterial_detail_blend_mode:
  56. - :ref:`BlendMode<enum_spatialmaterial_blendmode>` **detail_blend_mode**
  57. .. _class_SpatialMaterial_detail_enabled:
  58. - :ref:`bool<class_bool>` **detail_enabled**
  59. .. _class_SpatialMaterial_detail_mask:
  60. - :ref:`Texture<class_texture>` **detail_mask**
  61. .. _class_SpatialMaterial_detail_normal:
  62. - :ref:`Texture<class_texture>` **detail_normal**
  63. .. _class_SpatialMaterial_detail_uv_layer:
  64. - :ref:`DetailUV<enum_spatialmaterial_detailuv>` **detail_uv_layer**
  65. .. _class_SpatialMaterial_distance_fade_enable:
  66. - :ref:`bool<class_bool>` **distance_fade_enable**
  67. .. _class_SpatialMaterial_distance_fade_max_distance:
  68. - :ref:`float<class_float>` **distance_fade_max_distance**
  69. .. _class_SpatialMaterial_distance_fade_min_distance:
  70. - :ref:`float<class_float>` **distance_fade_min_distance**
  71. .. _class_SpatialMaterial_emission:
  72. - :ref:`Color<class_color>` **emission**
  73. .. _class_SpatialMaterial_emission_enabled:
  74. - :ref:`bool<class_bool>` **emission_enabled**
  75. .. _class_SpatialMaterial_emission_energy:
  76. - :ref:`float<class_float>` **emission_energy**
  77. .. _class_SpatialMaterial_emission_on_uv2:
  78. - :ref:`bool<class_bool>` **emission_on_uv2**
  79. .. _class_SpatialMaterial_emission_operator:
  80. - :ref:`EmissionOperator<enum_spatialmaterial_emissionoperator>` **emission_operator**
  81. .. _class_SpatialMaterial_emission_texture:
  82. - :ref:`Texture<class_texture>` **emission_texture**
  83. .. _class_SpatialMaterial_flags_albedo_tex_force_srgb:
  84. - :ref:`bool<class_bool>` **flags_albedo_tex_force_srgb**
  85. .. _class_SpatialMaterial_flags_fixed_size:
  86. - :ref:`bool<class_bool>` **flags_fixed_size**
  87. .. _class_SpatialMaterial_flags_no_depth_test:
  88. - :ref:`bool<class_bool>` **flags_no_depth_test**
  89. .. _class_SpatialMaterial_flags_transparent:
  90. - :ref:`bool<class_bool>` **flags_transparent**
  91. .. _class_SpatialMaterial_flags_unshaded:
  92. - :ref:`bool<class_bool>` **flags_unshaded**
  93. .. _class_SpatialMaterial_flags_use_point_size:
  94. - :ref:`bool<class_bool>` **flags_use_point_size**
  95. .. _class_SpatialMaterial_flags_vertex_lighting:
  96. - :ref:`bool<class_bool>` **flags_vertex_lighting**
  97. .. _class_SpatialMaterial_flags_world_triplanar:
  98. - :ref:`bool<class_bool>` **flags_world_triplanar**
  99. .. _class_SpatialMaterial_metallic:
  100. - :ref:`float<class_float>` **metallic**
  101. .. _class_SpatialMaterial_metallic_specular:
  102. - :ref:`float<class_float>` **metallic_specular**
  103. .. _class_SpatialMaterial_metallic_texture:
  104. - :ref:`Texture<class_texture>` **metallic_texture**
  105. .. _class_SpatialMaterial_metallic_texture_channel:
  106. - :ref:`TextureChannel<enum_spatialmaterial_texturechannel>` **metallic_texture_channel**
  107. .. _class_SpatialMaterial_normal_enabled:
  108. - :ref:`bool<class_bool>` **normal_enabled**
  109. .. _class_SpatialMaterial_normal_scale:
  110. - :ref:`float<class_float>` **normal_scale**
  111. .. _class_SpatialMaterial_normal_texture:
  112. - :ref:`Texture<class_texture>` **normal_texture**
  113. .. _class_SpatialMaterial_params_alpha_scissor_threshold:
  114. - :ref:`float<class_float>` **params_alpha_scissor_threshold**
  115. .. _class_SpatialMaterial_params_billboard_mode:
  116. - :ref:`BillboardMode<enum_spatialmaterial_billboardmode>` **params_billboard_mode**
  117. .. _class_SpatialMaterial_params_blend_mode:
  118. - :ref:`BlendMode<enum_spatialmaterial_blendmode>` **params_blend_mode**
  119. .. _class_SpatialMaterial_params_cull_mode:
  120. - :ref:`CullMode<enum_spatialmaterial_cullmode>` **params_cull_mode**
  121. .. _class_SpatialMaterial_params_depth_draw_mode:
  122. - :ref:`DepthDrawMode<enum_spatialmaterial_depthdrawmode>` **params_depth_draw_mode**
  123. .. _class_SpatialMaterial_params_diffuse_mode:
  124. - :ref:`DiffuseMode<enum_spatialmaterial_diffusemode>` **params_diffuse_mode**
  125. .. _class_SpatialMaterial_params_grow:
  126. - :ref:`bool<class_bool>` **params_grow**
  127. .. _class_SpatialMaterial_params_grow_amount:
  128. - :ref:`float<class_float>` **params_grow_amount**
  129. .. _class_SpatialMaterial_params_line_width:
  130. - :ref:`float<class_float>` **params_line_width**
  131. .. _class_SpatialMaterial_params_point_size:
  132. - :ref:`float<class_float>` **params_point_size**
  133. .. _class_SpatialMaterial_params_specular_mode:
  134. - :ref:`SpecularMode<enum_spatialmaterial_specularmode>` **params_specular_mode**
  135. .. _class_SpatialMaterial_params_use_alpha_scissor:
  136. - :ref:`bool<class_bool>` **params_use_alpha_scissor**
  137. .. _class_SpatialMaterial_particles_anim_h_frames:
  138. - :ref:`int<class_int>` **particles_anim_h_frames**
  139. .. _class_SpatialMaterial_particles_anim_loop:
  140. - :ref:`int<class_int>` **particles_anim_loop**
  141. .. _class_SpatialMaterial_particles_anim_v_frames:
  142. - :ref:`int<class_int>` **particles_anim_v_frames**
  143. .. _class_SpatialMaterial_proximity_fade_distance:
  144. - :ref:`float<class_float>` **proximity_fade_distance**
  145. .. _class_SpatialMaterial_proximity_fade_enable:
  146. - :ref:`bool<class_bool>` **proximity_fade_enable**
  147. .. _class_SpatialMaterial_refraction_enabled:
  148. - :ref:`bool<class_bool>` **refraction_enabled**
  149. .. _class_SpatialMaterial_refraction_scale:
  150. - :ref:`float<class_float>` **refraction_scale**
  151. .. _class_SpatialMaterial_refraction_texture:
  152. - :ref:`Texture<class_texture>` **refraction_texture**
  153. .. _class_SpatialMaterial_refraction_texture_channel:
  154. - :ref:`TextureChannel<enum_spatialmaterial_texturechannel>` **refraction_texture_channel**
  155. .. _class_SpatialMaterial_rim:
  156. - :ref:`float<class_float>` **rim**
  157. .. _class_SpatialMaterial_rim_enabled:
  158. - :ref:`bool<class_bool>` **rim_enabled**
  159. .. _class_SpatialMaterial_rim_texture:
  160. - :ref:`Texture<class_texture>` **rim_texture**
  161. .. _class_SpatialMaterial_rim_tint:
  162. - :ref:`float<class_float>` **rim_tint**
  163. .. _class_SpatialMaterial_roughness:
  164. - :ref:`float<class_float>` **roughness**
  165. .. _class_SpatialMaterial_roughness_texture:
  166. - :ref:`Texture<class_texture>` **roughness_texture**
  167. .. _class_SpatialMaterial_roughness_texture_channel:
  168. - :ref:`TextureChannel<enum_spatialmaterial_texturechannel>` **roughness_texture_channel**
  169. .. _class_SpatialMaterial_subsurf_scatter_enabled:
  170. - :ref:`bool<class_bool>` **subsurf_scatter_enabled**
  171. .. _class_SpatialMaterial_subsurf_scatter_strength:
  172. - :ref:`float<class_float>` **subsurf_scatter_strength**
  173. .. _class_SpatialMaterial_subsurf_scatter_texture:
  174. - :ref:`Texture<class_texture>` **subsurf_scatter_texture**
  175. .. _class_SpatialMaterial_transmission:
  176. - :ref:`Color<class_color>` **transmission**
  177. .. _class_SpatialMaterial_transmission_enabled:
  178. - :ref:`bool<class_bool>` **transmission_enabled**
  179. .. _class_SpatialMaterial_transmission_texture:
  180. - :ref:`Texture<class_texture>` **transmission_texture**
  181. .. _class_SpatialMaterial_uv1_offset:
  182. - :ref:`Vector3<class_vector3>` **uv1_offset**
  183. .. _class_SpatialMaterial_uv1_scale:
  184. - :ref:`Vector3<class_vector3>` **uv1_scale**
  185. .. _class_SpatialMaterial_uv1_triplanar:
  186. - :ref:`bool<class_bool>` **uv1_triplanar**
  187. .. _class_SpatialMaterial_uv1_triplanar_sharpness:
  188. - :ref:`float<class_float>` **uv1_triplanar_sharpness**
  189. .. _class_SpatialMaterial_uv2_offset:
  190. - :ref:`Vector3<class_vector3>` **uv2_offset**
  191. .. _class_SpatialMaterial_uv2_scale:
  192. - :ref:`Vector3<class_vector3>` **uv2_scale**
  193. .. _class_SpatialMaterial_uv2_triplanar:
  194. - :ref:`bool<class_bool>` **uv2_triplanar**
  195. .. _class_SpatialMaterial_uv2_triplanar_sharpness:
  196. - :ref:`float<class_float>` **uv2_triplanar_sharpness**
  197. .. _class_SpatialMaterial_vertex_color_is_srgb:
  198. - :ref:`bool<class_bool>` **vertex_color_is_srgb**
  199. .. _class_SpatialMaterial_vertex_color_use_as_albedo:
  200. - :ref:`bool<class_bool>` **vertex_color_use_as_albedo**
  201. Enums
  202. -----
  203. .. _enum_SpatialMaterial_DetailUV:
  204. enum **DetailUV**
  205. - **DETAIL_UV_1** = **0**
  206. - **DETAIL_UV_2** = **1**
  207. .. _enum_SpatialMaterial_TextureParam:
  208. enum **TextureParam**
  209. - **TEXTURE_ALBEDO** = **0**
  210. - **TEXTURE_METALLIC** = **1**
  211. - **TEXTURE_ROUGHNESS** = **2**
  212. - **TEXTURE_EMISSION** = **3**
  213. - **TEXTURE_NORMAL** = **4**
  214. - **TEXTURE_RIM** = **5**
  215. - **TEXTURE_CLEARCOAT** = **6**
  216. - **TEXTURE_FLOWMAP** = **7**
  217. - **TEXTURE_AMBIENT_OCCLUSION** = **8**
  218. - **TEXTURE_DEPTH** = **9**
  219. - **TEXTURE_SUBSURFACE_SCATTERING** = **10**
  220. - **TEXTURE_TRANSMISSION** = **11**
  221. - **TEXTURE_REFRACTION** = **12**
  222. - **TEXTURE_DETAIL_MASK** = **13**
  223. - **TEXTURE_DETAIL_ALBEDO** = **14**
  224. - **TEXTURE_DETAIL_NORMAL** = **15**
  225. - **TEXTURE_MAX** = **16**
  226. .. _enum_SpatialMaterial_DepthDrawMode:
  227. enum **DepthDrawMode**
  228. - **DEPTH_DRAW_OPAQUE_ONLY** = **0**
  229. - **DEPTH_DRAW_ALWAYS** = **1**
  230. - **DEPTH_DRAW_DISABLED** = **2**
  231. - **DEPTH_DRAW_ALPHA_OPAQUE_PREPASS** = **3**
  232. .. _enum_SpatialMaterial_DiffuseMode:
  233. enum **DiffuseMode**
  234. - **DIFFUSE_BURLEY** = **0**
  235. - **DIFFUSE_LAMBERT** = **1**
  236. - **DIFFUSE_LAMBERT_WRAP** = **2**
  237. - **DIFFUSE_OREN_NAYAR** = **3**
  238. - **DIFFUSE_TOON** = **4**
  239. .. _enum_SpatialMaterial_CullMode:
  240. enum **CullMode**
  241. - **CULL_BACK** = **0**
  242. - **CULL_FRONT** = **1**
  243. - **CULL_DISABLED** = **2**
  244. .. _enum_SpatialMaterial_Feature:
  245. enum **Feature**
  246. - **FEATURE_TRANSPARENT** = **0**
  247. - **FEATURE_EMISSION** = **1**
  248. - **FEATURE_NORMAL_MAPPING** = **2**
  249. - **FEATURE_RIM** = **3**
  250. - **FEATURE_CLEARCOAT** = **4**
  251. - **FEATURE_ANISOTROPY** = **5**
  252. - **FEATURE_AMBIENT_OCCLUSION** = **6**
  253. - **FEATURE_DEPTH_MAPPING** = **7**
  254. - **FEATURE_SUBSURACE_SCATTERING** = **8**
  255. - **FEATURE_TRANSMISSION** = **9**
  256. - **FEATURE_REFRACTION** = **10**
  257. - **FEATURE_DETAIL** = **11**
  258. - **FEATURE_MAX** = **12**
  259. .. _enum_SpatialMaterial_Flags:
  260. enum **Flags**
  261. - **FLAG_UNSHADED** = **0**
  262. - **FLAG_USE_VERTEX_LIGHTING** = **1**
  263. - **FLAG_DISABLE_DEPTH_TEST** = **2**
  264. - **FLAG_ALBEDO_FROM_VERTEX_COLOR** = **3**
  265. - **FLAG_SRGB_VERTEX_COLOR** = **4**
  266. - **FLAG_USE_POINT_SIZE** = **5**
  267. - **FLAG_FIXED_SIZE** = **6**
  268. - **FLAG_UV1_USE_TRIPLANAR** = **7**
  269. - **FLAG_UV2_USE_TRIPLANAR** = **8**
  270. - **FLAG_AO_ON_UV2** = **10**
  271. - **FLAG_EMISSION_ON_UV2** = **11**
  272. - **FLAG_USE_ALPHA_SCISSOR** = **12**
  273. - **FLAG_TRIPLANAR_USE_WORLD** = **9**
  274. - **FLAG_ALBEDO_TEXTURE_FORCE_SRGB** = **13**
  275. - **FLAG_MAX** = **14**
  276. .. _enum_SpatialMaterial_BlendMode:
  277. enum **BlendMode**
  278. - **BLEND_MODE_MIX** = **0**
  279. - **BLEND_MODE_ADD** = **1**
  280. - **BLEND_MODE_SUB** = **2**
  281. - **BLEND_MODE_MUL** = **3**
  282. .. _enum_SpatialMaterial_SpecularMode:
  283. enum **SpecularMode**
  284. - **SPECULAR_SCHLICK_GGX** = **0**
  285. - **SPECULAR_BLINN** = **1**
  286. - **SPECULAR_PHONG** = **2**
  287. - **SPECULAR_TOON** = **3**
  288. - **SPECULAR_DISABLED** = **4**
  289. .. _enum_SpatialMaterial_TextureChannel:
  290. enum **TextureChannel**
  291. - **TEXTURE_CHANNEL_RED** = **0**
  292. - **TEXTURE_CHANNEL_GREEN** = **1**
  293. - **TEXTURE_CHANNEL_BLUE** = **2**
  294. - **TEXTURE_CHANNEL_ALPHA** = **3**
  295. - **TEXTURE_CHANNEL_GRAYSCALE** = **4**
  296. .. _enum_SpatialMaterial_BillboardMode:
  297. enum **BillboardMode**
  298. - **BILLBOARD_DISABLED** = **0**
  299. - **BILLBOARD_ENABLED** = **1**
  300. - **BILLBOARD_FIXED_Y** = **2**
  301. - **BILLBOARD_PARTICLES** = **3**
  302. .. _enum_SpatialMaterial_EmissionOperator:
  303. enum **EmissionOperator**
  304. - **EMISSION_OP_ADD** = **0**
  305. - **EMISSION_OP_MULTIPLY** = **1**