Class reference

VisualShaderNodeCubemap

Inherits VisualShaderNode

A Cubemap sampling node to be used within the visual shader graph.

Description

Translated to texture(cubemap, vec3) in the shader language. Returns a color vector and alpha channel as scalar.

Properties

int source = 0

Defines which source should be used for the sampling.

int texture_type = 0

Defines the type of data provided by the source texture.

Constants

SOURCE_TEXTURE = 0

Enum: Source

Use the Cubemap set via cube_map. If this is set to source, the samplerCube port is ignored.

SOURCE_PORT = 1

Enum: Source

Use the Cubemap sampler reference passed via the samplerCube port. If this is set to source, the cube_map texture is ignored.

SOURCE_MAX = 2

Enum: Source

Represents the size of the Source enum.

TYPE_DATA = 0

Enum: TextureType

No hints are added to the uniform declaration.

TYPE_COLOR = 1

Enum: TextureType

Adds source_color as hint to the uniform declaration for proper sRGB to linear conversion.

TYPE_NORMAL_MAP = 2

Enum: TextureType

Adds hint_normal as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.

TYPE_MAX = 3

Enum: TextureType

Represents the size of the TextureType enum.

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.