File: VisualShaderNodeTexture.xml

package info (click to toggle)
godot 3.2.3-stable-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 121,308 kB
  • sloc: cpp: 804,285; ansic: 597,434; xml: 77,823; asm: 17,127; cs: 13,535; lisp: 12,017; python: 9,376; java: 7,474; sh: 973; javascript: 659; perl: 264; pascal: 203; objc: 116; makefile: 105
file content (53 lines) | stat: -rw-r--r-- 2,471 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VisualShaderNodeTexture" inherits="VisualShaderNode" version="3.2">
	<brief_description>
		Performs a texture lookup within the visual shader graph.
	</brief_description>
	<description>
		Performs a lookup operation on the provided texture, with support for multiple texture sources to choose from.
	</description>
	<tutorials>
	</tutorials>
	<methods>
	</methods>
	<members>
		<member name="source" type="int" setter="set_source" getter="get_source" enum="VisualShaderNodeTexture.Source" default="0">
			Determines the source for the lookup. See [enum Source] for options.
		</member>
		<member name="texture" type="Texture" setter="set_texture" getter="get_texture">
			The source texture, if needed for the selected [member source].
		</member>
		<member name="texture_type" type="int" setter="set_texture_type" getter="get_texture_type" enum="VisualShaderNodeTexture.TextureType" default="0">
			Specifies the type of the texture if [member source] is set to [constant SOURCE_TEXTURE]. See [enum TextureType] for options.
		</member>
	</members>
	<constants>
		<constant name="SOURCE_TEXTURE" value="0" enum="Source">
			Use the texture given as an argument for this function.
		</constant>
		<constant name="SOURCE_SCREEN" value="1" enum="Source">
			Use the current viewport's texture as the source.
		</constant>
		<constant name="SOURCE_2D_TEXTURE" value="2" enum="Source">
			Use the texture from this shader's texture built-in (e.g. a texture of a [Sprite]).
		</constant>
		<constant name="SOURCE_2D_NORMAL" value="3" enum="Source">
			Use the texture from this shader's normal map built-in.
		</constant>
		<constant name="SOURCE_DEPTH" value="4" enum="Source">
			Use the depth texture available for this shader.
		</constant>
		<constant name="SOURCE_PORT" value="5" enum="Source">
			Use the texture provided in the input port for this function.
		</constant>
		<constant name="TYPE_DATA" value="0" enum="TextureType">
			No hints are added to the uniform declaration.
		</constant>
		<constant name="TYPE_COLOR" value="1" enum="TextureType">
			Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper sRGB to linear conversion.
		</constant>
		<constant name="TYPE_NORMALMAP" value="2" enum="TextureType">
			Adds [code]hint_normal[/code] as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
		</constant>
	</constants>
</class>