1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-20 20:35:57 +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

@ -16,7 +16,7 @@ Generates a checkerboard of alternating colors between inputs <b><i>color A</i><
|output|vec3|None|Output checkerboard value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/CheckerBoard.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`vec3 checker_board(vec2 uv, vec3 color_a, vec3 color_b, vec2 frequency)`

View File

@ -18,7 +18,7 @@ Generates an koch curve similar to ice fractal shape based on input UV at the si
|uv|vec2|None|Output UV value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Fractals/KochFractal.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float koch_fractal(vec2 uv, float outline, int iteration, float shape_width, float shape_height, out vec2 koch_uv)`

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)`

View File

@ -15,7 +15,7 @@ Generates an ellipse shape based on input UV at the size specified by inputs <b>
|output|float|None|Output ellipse value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Shapes/Ellipse.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float ellipse_shape(vec2 uv, float width, float height)`

View File

@ -16,7 +16,7 @@ Generates a regular polygon shape based on input UV at the size specified by inp
|output|float|None|Output polygon value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Shapes/Polygon.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float polygon_shape(vec2 uv, int sides, float width, float height)`

View File

@ -15,7 +15,7 @@ Generates a rectangle shape based on input UV at the size specified by inputs <b
|output|float|None|Output rectangle value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Shapes/Rectangle.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float rectangle_shape(vec2 uv, float width, float height)`

View File

@ -17,7 +17,7 @@ Generates a rounded polygon shape based on input UV at the size specified by inp
|output|float|None|Output rounded polygon value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Shapes/RoundedPolygon.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float rounded_polygon_shape(vec2 uv, float width, float height, float sides, float roundness)`

View File

@ -16,7 +16,7 @@ Generates a rounded rectangle shape based on input UV at the size specified by i
|output|float|None|Output rounded rectangle value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Shapes/RoundedRectangle.gdshaderinc`
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`float rounded_rectangle_shape(vec2 uv, float width, float height, float radius)`