Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VisualShaderNodeUVFunc

Hérite de : VisualShaderNode < Resource < RefCounted < Object

Contains functions to modify texture coordinates (uv) to be used within the visual shader graph.

Description

UV functions are similar to Vector2 functions, but the input port of this node uses the shader's UV value by default.

Propriétés

Function

function

0


Énumérations

enum Function: 🔗

Function FUNC_PANNING = 0

Translates uv by using scale and offset values using the following formula: uv = uv + offset * scale. uv port is connected to UV built-in by default.

Function FUNC_SCALING = 1

Scales uv by using scale and pivot values using the following formula: uv = (uv - pivot) * scale + pivot. uv port is connected to UV built-in by default.

Function FUNC_MAX = 2

Représente la taille de l'énumération Function.


Descriptions des propriétés

Function function = 0 🔗

A function to be applied to the texture coordinates.