1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-20 12:25:59 +08:00

ShaderInc files refactored for the ease of future improvements

This commit is contained in:
Digvijaysinh Gohil
2024-07-21 16:39:45 +05:30
parent 0a8948118f
commit e33f70baa9
125 changed files with 706 additions and 733 deletions

View File

@ -14,7 +14,7 @@ Generates a gradient, or Perlin noise based on input UV. The resulting <b><i>out
|output|float|None|Output noise value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Noise/GradientNoise.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float gradient_noise(vec2 uv, float scale)`

View File

@ -17,7 +17,7 @@ Generates a gyroid noise based on input UV. The resulting <b><i>output</i></b> v
|output|float|None|Output noise value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Noise/GyroidNoise.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float gyroid_noise(vec2 uv, float scale, vec2 ratio, float height, float thickness)`

View File

@ -11,4 +11,16 @@ Generates a pseudo random noise based on input seed. The resulting <b><i>output<
|Name|Type|Binding|Description|
|---|---|---|---|
|output|float|None|Output noise value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float pseudo_random_noise(vec2 uv, float seed)`
**Parameters**
|Name|Type|Description|
|---|---|---|
|uv|vec2|Input UV value|
|seed|float|Noise seed|
___

View File

@ -15,7 +15,7 @@ Generates a simplex, or value noise based on input UV. The resulting <b><i>outpu
|output|float|None|Output noise value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Noise/SimpleNoise.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float simple_noise(vec2 uv, float scale, int octaves)`

View File

@ -22,7 +22,7 @@ Generates a Voronoi or Worley noise based on input UV. Voronoi noise is generate
|cells|float|None|Raw cell data|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Noise/Voronoi.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`void voronoi_noise(vec2 uv, float cell_density, float angle_offset, int distance_index, float chebyshev_power, out float output, out float cells)`