2
0

VisualShaderNodeTextureUniform.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeTextureUniform" inherits="VisualShaderNodeUniform" version="4.0">
  3. <brief_description>
  4. Performs a uniform texture lookup within the visual shader graph.
  5. </brief_description>
  6. <description>
  7. Performs a lookup operation on the texture provided as a uniform for the shader.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <members>
  12. <member name="color_default" type="int" setter="set_color_default" getter="get_color_default" enum="VisualShaderNodeTextureUniform.ColorDefault" default="0">
  13. Sets the default color if no texture is assigned to the uniform.
  14. </member>
  15. <member name="texture_type" type="int" setter="set_texture_type" getter="get_texture_type" enum="VisualShaderNodeTextureUniform.TextureType" default="0">
  16. Defines the type of data provided by the source texture. See [enum TextureType] for options.
  17. </member>
  18. </members>
  19. <constants>
  20. <constant name="TYPE_DATA" value="0" enum="TextureType">
  21. No hints are added to the uniform declaration.
  22. </constant>
  23. <constant name="TYPE_COLOR" value="1" enum="TextureType">
  24. Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper sRGB to linear conversion.
  25. </constant>
  26. <constant name="TYPE_NORMAL_MAP" value="2" enum="TextureType">
  27. Adds [code]hint_normal[/code] as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
  28. </constant>
  29. <constant name="TYPE_ANISO" value="3" enum="TextureType">
  30. Adds [code]hint_aniso[/code] as hint to the uniform declaration to use for a flowmap.
  31. </constant>
  32. <constant name="TYPE_MAX" value="4" enum="TextureType">
  33. Represents the size of the [enum TextureType] enum.
  34. </constant>
  35. <constant name="COLOR_DEFAULT_WHITE" value="0" enum="ColorDefault">
  36. Defaults to white color.
  37. </constant>
  38. <constant name="COLOR_DEFAULT_BLACK" value="1" enum="ColorDefault">
  39. Defaults to black color.
  40. </constant>
  41. <constant name="COLOR_DEFAULT_MAX" value="2" enum="ColorDefault">
  42. Represents the size of the [enum ColorDefault] enum.
  43. </constant>
  44. </constants>
  45. </class>