Skip to content
0.2.0-dev Download ZIP
45 lines ·2.4 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="VisualShaderNodeCubemap" inherits="VisualShaderNode" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 A [Cubemap] sampling node to be used within the visual shader graph.
5 </brief_description>
6 <description>
7 Translated to [code]texture(cubemap, vec3)[/code] in the shader language. Returns a color vector and alpha channel as scalar.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="cube_map" type="TextureLayered" setter="set_cube_map" getter="get_cube_map">
13 The [Cubemap] texture to sample when using [constant SOURCE_TEXTURE] as [member source].
14 </member>
15 <member name="source" type="int" setter="set_source" getter="get_source" enum="VisualShaderNodeCubemap.Source" default="0">
16 Defines which source should be used for the sampling.
17 </member>
18 <member name="texture_type" type="int" setter="set_texture_type" getter="get_texture_type" enum="VisualShaderNodeCubemap.TextureType" default="0">
19 Defines the type of data provided by the source texture.
20 </member>
21 </members>
22 <constants>
23 <constant name="SOURCE_TEXTURE" value="0" enum="Source">
24 Use the [Cubemap] set via [member cube_map]. If this is set to [member source], the [code]samplerCube[/code] port is ignored.
25 </constant>
26 <constant name="SOURCE_PORT" value="1" enum="Source">
27 Use the [Cubemap] sampler reference passed via the [code]samplerCube[/code] port. If this is set to [member source], the [member cube_map] texture is ignored.
28 </constant>
29 <constant name="SOURCE_MAX" value="2" enum="Source">
30 Represents the size of the [enum Source] enum.
31 </constant>
32 <constant name="TYPE_DATA" value="0" enum="TextureType">
33 No hints are added to the uniform declaration.
34 </constant>
35 <constant name="TYPE_COLOR" value="1" enum="TextureType">
36 Adds [code]source_color[/code] as hint to the uniform declaration for proper conversion from nonlinear sRGB encoding to linear encoding.
37 </constant>
38 <constant name="TYPE_NORMAL_MAP" value="2" enum="TextureType">
39 Adds [code]hint_normal[/code] as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
40 </constant>
41 <constant name="TYPE_MAX" value="3" enum="TextureType">
42 Represents the size of the [enum TextureType] enum.
43 </constant>
44 </constants>
45</class>