VisualShaderNodeTexture.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeTexture" inherits="VisualShaderNode" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Performs a texture lookup within the visual shader graph.
  5. </brief_description>
  6. <description>
  7. Performs a lookup operation on the provided texture, with support for multiple texture sources to choose from.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="source" type="int" setter="set_source" getter="get_source" enum="VisualShaderNodeTexture.Source" default="0">
  15. Determines the source for the lookup. See [enum Source] for options.
  16. </member>
  17. <member name="texture" type="Texture" setter="set_texture" getter="get_texture">
  18. The source texture, if needed for the selected [member source].
  19. </member>
  20. <member name="texture_type" type="int" setter="set_texture_type" getter="get_texture_type" enum="VisualShaderNodeTexture.TextureType" default="0">
  21. Specifies the type of the texture if [member source] is set to [constant SOURCE_TEXTURE]. See [enum TextureType] for options.
  22. </member>
  23. </members>
  24. <constants>
  25. <constant name="SOURCE_TEXTURE" value="0" enum="Source">
  26. Use the texture given as an argument for this function.
  27. </constant>
  28. <constant name="SOURCE_SCREEN" value="1" enum="Source">
  29. Use the current viewport's texture as the source.
  30. </constant>
  31. <constant name="SOURCE_2D_TEXTURE" value="2" enum="Source">
  32. Use the texture from this shader's texture built-in (e.g. a texture of a [Sprite]).
  33. </constant>
  34. <constant name="SOURCE_2D_NORMAL" value="3" enum="Source">
  35. Use the texture from this shader's normal map built-in.
  36. </constant>
  37. <constant name="SOURCE_DEPTH" value="4" enum="Source">
  38. Use the depth texture available for this shader.
  39. </constant>
  40. <constant name="SOURCE_PORT" value="5" enum="Source">
  41. Use the texture provided in the input port for this function.
  42. </constant>
  43. <constant name="TYPE_DATA" value="0" enum="TextureType">
  44. No hints are added to the uniform declaration.
  45. </constant>
  46. <constant name="TYPE_COLOR" value="1" enum="TextureType">
  47. Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper sRGB to linear conversion.
  48. </constant>
  49. <constant name="TYPE_NORMALMAP" value="2" enum="TextureType">
  50. Adds [code]hint_normal[/code] as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
  51. </constant>
  52. </constants>
  53. </class>