mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-01-05 00:53:36 +08:00
UV nodes documentation updated
This commit is contained in:
parent
0b22ea2ce1
commit
9f8087e91d
@ -15,4 +15,18 @@ This node can be used to create a texture animation functionality, commonly used
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|uv|vec2|None|Output UV value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/UV/FlipbookUV.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec2 flipbook_uv(vec2 uv, int rows, int columns, float anim_speed)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input UV value|
|
||||
|rows|int|Amount of horizontal tiles in texture sheet|
|
||||
|columns|int|Amount of vertical tiles in texture sheet|
|
||||
|anim speed|float|Animation speed|
|
||||
___
|
@ -12,4 +12,21 @@ The Parallax Mapping node lets you create a parallax effect that displaces a Mat
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|uv|vec2|None|Output UV value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/UV/ParallaxMappingUV.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec2 parallax_mapping_uv(sampler2D height, float amplitude, vec2 uv, vec3 tangent, vec3 normal, vec3 binormal, vec3 view)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|height|sampler2D|Height map texture|
|
||||
|amplitude|float|amplitude or depth of the effect|
|
||||
|uv|vec2|Input uv|
|
||||
|tangent|vec3|Tangent vector|
|
||||
|normal|vec3|Normal vector|
|
||||
|binormal|vec3|Binormal vector|
|
||||
|view|vec3|View vector|
|
||||
___
|
@ -14,4 +14,18 @@ Applies a radial shear warping effect similar to a wave to the value of input UV
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|uv|vec2|None|Output UV value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/UV/RadialShearUV.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec2 radial_shear_uv(vec2 uv, vec2 center, float strength, vec2 offset)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input uv|
|
||||
|center|vec2|Center reference point|
|
||||
|strength|float|Strength of the effect|
|
||||
|offset|vec2|Individual channel offsets|
|
||||
___
|
@ -7,7 +7,7 @@ Rotates value of input UV around a reference point defined by input <b><i>center
|
||||
|---|---|---|---|
|
||||
|uv|vec2|UV|Input UV value|
|
||||
|center|vec2|none|Center reference point|
|
||||
|rotation|float|none|Rotation amount in radians|
|
||||
|rotation|float|none|Rotation amount|
|
||||
|
||||
**Controls**
|
||||
|Name|Options|Description|
|
||||
@ -18,4 +18,18 @@ Rotates value of input UV around a reference point defined by input <b><i>center
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|uv|vec2|None|Output UV value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/UV/RotateUV.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec2 rotate_uv(vec2 uv, vec2 center, float rotation, bool use_degrees)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input uv|
|
||||
|center|vec2|Center reference point|
|
||||
|rotation|float|Rotation amount|
|
||||
|use_degrees|bool|Specifies the unit for rotation, true = Degrees, false = Radians|
|
||||
___
|
@ -14,4 +14,18 @@ Applies a spherical warping effect similar to a fisheye camera lens to the value
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|uv|vec2|None|Output UV value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/UV/SpherizeUV.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec2 spherize_uv(vec2 uv, vec2 center, float strength, vec2 offset)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input uv|
|
||||
|center|vec2|Center reference point|
|
||||
|strength|float|Strength of the effect|
|
||||
|offset|vec2|Individual channel offsets|
|
||||
___
|
@ -14,4 +14,18 @@ Applies a swirl warping effect similar to a black hole to the value of input UV.
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|uv|vec2|None|Output UV value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/UV/SwirlUV.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec2 swirl_uv(vec2 uv, vec2 center, float strength, vec2 offset)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input uv|
|
||||
|center|vec2|Center reference point|
|
||||
|strength|float|Strength of the effect|
|
||||
|offset|vec2|Individual channel offsets|
|
||||
___
|
@ -14,4 +14,18 @@ Applies a twirl warping effect similar to a black hole to the value of input UV.
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|uv|vec2|None|Output UV value|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/UV/TwirlUV.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec2 twirl_uv(vec2 uv, vec2 center, float strength, vec2 offset)`
|
||||
|
||||
**Parameters**
|
||||
|Name|Type|Description|
|
||||
|---|---|---|
|
||||
|uv|vec2|Input uv|
|
||||
|center|vec2|Center reference point|
|
||||
|strength|float|Strength of the effect|
|
||||
|offset|vec2|Individual channel offsets|
|
||||
___
|
Loading…
x
Reference in New Issue
Block a user