VisualShaderNodeCubeMap
Inherits: VisualShaderNode < Resource < Reference < Object
CubeMap采样节点,在可视化着色器图形中使用。
描述
在着色器语言中被转换成texture(cubemap, vec3)
。返回一个颜色向量和alpha通道的标量。
属性
| ||
|
枚举
enum Source:
SOURCE_TEXTURE = 0 —- 使用通过cube_map设置的CubeMap。如果这被设置为source,
samplerCube
端口就会被忽略。SOURCE_PORT = 1 —- 使用通过
samplerCube
端口传递的CubeMap采样器引用。如果这被设置为source,cube_map纹理就会被忽略。
enum TextureType:
TYPE_DATA = 0 —- 在uniform声明中未添加提示。
TYPE_COLOR = 1 —- 将
hint_albedo
作为提示添加到uniform声明中,以便将sRGB转换为线性。TYPE_NORMALMAP = 2 —- 将
hint_normal
作为提示添加到uniform声明中,该声明在内部将纹理转换为法线贴图。
属性说明
- CubeMap cube_map
Setter | set_cube_map(value) |
Getter | get_cube_map() |
当使用SOURCE_TEXTURE作为 source 时,要采样的CubeMap纹理。
- Source source
Default |
|
Setter | set_source(value) |
Getter | get_source() |
定义采样应该使用哪个源。参阅Source的选项。
- TextureType texture_type
Default |
|
Setter | set_texture_type(value) |
Getter | get_texture_type() |
定义源纹理提供的数据类型。选项参阅TextureType。