VisualShaderNodeTextureUniform.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeTextureUniform" inherits="VisualShaderNodeUniform" version="3.2">
  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. <methods>
  12. </methods>
  13. <members>
  14. <member name="color_default" type="int" setter="set_color_default" getter="get_color_default" enum="VisualShaderNodeTextureUniform.ColorDefault" default="0">
  15. Sets the default color if no texture is assigned to the uniform.
  16. </member>
  17. <member name="texture_type" type="int" setter="set_texture_type" getter="get_texture_type" enum="VisualShaderNodeTextureUniform.TextureType" default="0">
  18. Defines the type of data provided by the source texture. See [enum TextureType] for options.
  19. </member>
  20. </members>
  21. <constants>
  22. <constant name="TYPE_DATA" value="0" enum="TextureType">
  23. No hints are added to the uniform declaration.
  24. </constant>
  25. <constant name="TYPE_COLOR" value="1" enum="TextureType">
  26. Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper sRGB to linear conversion.
  27. </constant>
  28. <constant name="TYPE_NORMALMAP" value="2" enum="TextureType">
  29. Adds [code]hint_normal[/code] as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
  30. </constant>
  31. <constant name="TYPE_ANISO" value="3" enum="TextureType">
  32. Adds [code]hint_aniso[/code] as hint to the uniform declaration to use for a flowmap.
  33. </constant>
  34. <constant name="COLOR_DEFAULT_WHITE" value="0" enum="ColorDefault">
  35. Defaults to white color.
  36. </constant>
  37. <constant name="COLOR_DEFAULT_BLACK" value="1" enum="ColorDefault">
  38. Defaults to black color.
  39. </constant>
  40. </constants>
  41. </class>