2024-02-26 22:13:45 +05:30
|
|
|
# Checker Board node
|
|
|
|
Generates a checkerboard of alternating colors between inputs <b><i>color A</i></b> and <b><i>color B</i></b> based on input UV.
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
**Inputs**
|
|
|
|
|Name|Type|Binding|Description|
|
|
|
|
|---|---|---|---|
|
|
|
|
|uv|vec2|UV|Input UV value|
|
|
|
|
|color a|vec3|none|First checker color|
|
|
|
|
|color b|vec3|none|Second checker color|
|
|
|
|
|frequency|vec2|none|Scale of checkerboard per axis|
|
|
|
|
|
|
|
|
**Outputs**
|
|
|
|
|Name|Type|Binding|Description|
|
|
|
|
|---|---|---|---|
|
|
|
|
|output|vec3|None|Output checkerboard value|
|
2024-04-15 22:50:04 +05:30
|
|
|
|
|
|
|
**ShaderInc location**
|
2024-07-21 16:39:45 +05:30
|
|
|
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
|
2024-04-15 22:50:04 +05:30
|
|
|
|
|
|
|
**Method signature**
|
|
|
|
<br>`vec3 checker_board(vec2 uv, vec3 color_a, vec3 color_b, vec2 frequency)`
|
|
|
|
|
|
|
|
**Parameters**
|
|
|
|
|Name|Type|Description|
|
|
|
|
|---|---|---|
|
|
|
|
|uv|vec2|Input UV value|
|
|
|
|
|color a|vec3|First checker color|
|
|
|
|
|color b|vec3|Second checker color|
|
|
|
|
|frequency|vec2|Scale of checkerboard per axis|
|
2024-02-26 22:13:45 +05:30
|
|
|
___
|