VisualShaderNodeCubemap
继承: VisualShaderNode < Resource < RefCounted < Object
在可视化着色器图中使用的一种 Cubemap 采样节点。
描述
在着色器语言中被转换成 texture(cubemap, vec3)。返回一个颜色向量和 Alpha 通道的标量。
属性
|
||
|
枚举
enum Source: 🔗
Source SOURCE_TEXTURE = 0
使用 cube_map 设置的 Cubemap。如果设置为 source,则会忽略 samplerCube 端口。
Source SOURCE_PORT = 1
使用通过 samplerCube 端口传递的 Cubemap 采样器引用。如果设置为 source,则会忽略 cube_map 纹理。
Source SOURCE_MAX = 2
代表 Source 枚举的大小。
enum TextureType: 🔗
TextureType TYPE_DATA = 0
在uniform声明中未添加提示。
TextureType TYPE_COLOR = 1
Adds source_color as hint to the uniform declaration for proper conversion from nonlinear sRGB encoding to linear encoding.
TextureType TYPE_NORMAL_MAP = 2
将 hint_normal 作为提示添加到 uniform 声明中,该声明在内部将纹理转换为法线贴图。
TextureType TYPE_MAX = 3
代表 TextureType 枚举的大小。
属性说明
TextureLayered cube_map 🔗
void set_cube_map(value: TextureLayered)
TextureLayered get_cube_map()
当使用 SOURCE_TEXTURE 作为 source 时,要采样的 Cubemap 纹理。
定义采样应该使用哪个源。
TextureType texture_type = 0 🔗
void set_texture_type(value: TextureType)
TextureType get_texture_type()
定义源纹理提供的数据类型。