2018-07-26 11:56:21 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2021-04-26 13:14:51 +02:00
<class name= "VisualShaderNodeCubeMap" inherits= "VisualShaderNode" version= "3.4" >
2018-07-26 11:56:21 +02:00
<brief_description >
2020-01-27 16:14:10 +01:00
A [CubeMap] sampling node to be used within the visual shader graph.
2018-07-26 11:56:21 +02:00
</brief_description>
<description >
2020-01-27 16:14:10 +01:00
Translated to [code]texture(cubemap, vec3)[/code] in the shader language. Returns a color vector and alpha channel as scalar.
2018-07-26 11:56:21 +02:00
</description>
<tutorials >
</tutorials>
<methods >
</methods>
<members >
2019-07-15 20:42:47 +02:00
<member name= "cube_map" type= "CubeMap" setter= "set_cube_map" getter= "get_cube_map" >
2020-01-27 16:14:10 +01:00
The [CubeMap] texture to sample when using [constant SOURCE_TEXTURE] as [member source].
2018-07-26 11:56:21 +02:00
</member>
2019-10-26 16:40:31 +02:00
<member name= "source" type= "int" setter= "set_source" getter= "get_source" enum= "VisualShaderNodeCubeMap.Source" default= "0" >
2020-01-27 16:14:10 +01:00
Defines which source should be used for the sampling. See [enum Source] for options.
2019-10-26 16:40:31 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "texture_type" type= "int" setter= "set_texture_type" getter= "get_texture_type" enum= "VisualShaderNodeCubeMap.TextureType" default= "0" >
2020-01-27 16:14:10 +01:00
Defines the type of data provided by the source texture. See [enum TextureType] for options.
2018-07-26 11:56:21 +02:00
</member>
</members>
<constants >
2019-10-26 16:40:31 +02:00
<constant name= "SOURCE_TEXTURE" value= "0" enum= "Source" >
2020-01-27 16:14:10 +01:00
Use the [CubeMap] set via [member cube_map]. If this is set to [member source], the [code]samplerCube[/code] port is ignored.
2019-10-26 16:40:31 +02:00
</constant>
<constant name= "SOURCE_PORT" value= "1" enum= "Source" >
2020-01-27 16:14:10 +01:00
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.
2019-10-26 16:40:31 +02:00
</constant>
2018-07-26 11:56:21 +02:00
<constant name= "TYPE_DATA" value= "0" enum= "TextureType" >
2020-01-27 16:14:10 +01:00
No hints are added to the uniform declaration.
2018-07-26 11:56:21 +02:00
</constant>
<constant name= "TYPE_COLOR" value= "1" enum= "TextureType" >
2020-01-27 16:14:10 +01:00
Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper sRGB to linear conversion.
2018-07-26 11:56:21 +02:00
</constant>
<constant name= "TYPE_NORMALMAP" value= "2" enum= "TextureType" >
2020-01-27 16:14:10 +01:00
Adds [code]hint_normal[/code] as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
2018-07-26 11:56:21 +02:00
</constant>
</constants>
</class>