Welcome to the Godot Reference Fork and the Godot Proposals Fork alternatives. Why?

VisualShaderNodeCubeMap

0 0 vote
Article Rating

Inherits: VisualShaderNode < Resource < Reference < Object

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.

Enumerations

enum Source:

  • SOURCE_TEXTURE = 0 — Use the CubeMap set via cube_map. If this is set to source, the samplerCube port is ignored.
  • SOURCE_PORT = 1 — Use the CubeMap sampler reference passed via the samplerCube port. If this is set to source, the cube_map texture is ignored.

enum TextureType:

  • TYPE_DATA = 0 — No hints are added to the uniform declaration.
  • TYPE_COLOR = 1 — Adds hint_albedo as hint to the uniform declaration for proper sRGB to linear conversion.
  • TYPE_NORMALMAP = 2 — Adds hint_normal as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.

Property Descriptions

Setterset_cube_map(value)
Getterget_cube_map()

The CubeMap texture to sample when using SOURCE_TEXTURE as source.


Default0
Setterset_source(value)
Getterget_source()

Defines which source should be used for the sampling. See Source for options.


Default0
Setterset_texture_type(value)
Getterget_texture_type()

Defines the type of data provided by the source texture. See TextureType for options.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x