1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-20 04:15:58 +08:00
Files
Godot-Shader-Lib/documentation/Nodes/Artistic/Adjustment/ContrastNode.md

27 lines
707 B
Markdown
Raw Normal View History

2024-03-12 12:30:05 +05:30
# Contrast node
Adjusts the contrast of input <b><i>in</i></b> by the amount of input <b><i>contrast</i></b>. A contrast value of 1 will return the input unaltered. A contrast value of 0 will return the midpoint of the input.
<hr>
**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|
2024-04-10 18:13:18 +05:30
**ShaderInc location**
<br>`res://addons/ShaderLib/Artistic/Artistic.gdshaderinc`
2024-04-10 18:13:18 +05:30
**Method signature**
2024-04-10 18:14:52 +05:30
<br>`vec3 contrast(input, contrast)`
2024-04-10 18:13:18 +05:30
**Parameters**
|Name|Type|Description|
|---|---|---|
|input|vec3|Input color|
|contrast|float|contrast value|
2024-03-12 12:30:05 +05:30
___