A game about forced loneliness, made by TACStudios
1# Exponential Node 2 3## Description 4 5Returns the exponential value of input **In**. The exponential base can be switched between base-e and base 2 from the **Base** dropdown on the node. 6 7* **Base E** : Returns e to the power of input **In** 8* **Base 2** : Returns 2 to the power of input **In** 9 10## Ports 11 12| Name | Direction | Type | Description | 13|:------------ |:-------------|:-----|:---| 14| In | Input | Dynamic Vector | Input value | 15| Out | Output | Dynamic Vector | Output value | 16 17## Controls 18 19| Name | Type | Options | Description | 20|:------------ |:-------------|:-----|:---| 21| Base | Dropdown | BaseE, Base2 | Selects the exponential base | 22 23## Generated Code Example 24 25The following example code represents one possible outcome of this node per **Base** mode. 26 27**Base E** 28 29``` 30void Unity_Exponential_float4(float4 In, out float4 Out) 31{ 32 Out = exp(In); 33} 34``` 35 36**Base 2** 37 38``` 39void Unity_Exponential2_float4(float4 In, out float4 Out) 40{ 41 Out = exp2(In); 42} 43```