mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2026-10-10 04:43:04 +08:00
707 B
707 B
Contrast node
Adjusts the contrast of input in by the amount of input contrast. A contrast value of 1 will return the input unaltered. A contrast value of 0 will return the midpoint of the input.
Inputs
| Name | Type | Binding | Description |
|---|---|---|---|
| in | vec3 | none | Input value |
| contrast | float | none | Contrast value |
Outputs
| Name | Type | Binding | Description |
|---|---|---|---|
| out | vec3 | None | Output value |
ShaderInc location
res://addons/ShaderLib/Artistic/Artistic.gdshaderinc
Method signature
vec3 contrast(input, contrast)
Parameters
| Name | Type | Description |
|---|---|---|
| input | vec3 | Input color |
| contrast | float | contrast value |