Skip to content

Commit

Permalink
add some examples and references
Browse files Browse the repository at this point in the history
  • Loading branch information
coalaura committed Oct 10, 2023
1 parent 6d4e326 commit 6a4d349
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions CAM/SetCamDofStrength.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ ns: CAM
void SET_CAM_DOF_STRENGTH(Cam cam, float dofStrength);
```
Specifies how much the DoF effect should be applied (Set using [`SET_CAM_NEAR_DOF`](#_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#_0xEDD91296CD01AEE0), etc.).
Specifies how much the DoF effect should be applied (Set using [`SET_CAM_NEAR_DOF`](#_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#_0xEDD91296CD01AEE0), etc.). Example: https://forum.cfx.re/t/camera-depth-of-field-settings/2433316/3)
## Parameters
* **cam**:
* **dofStrength**: Between 0.0 and 1.0
* **cam**: The camera
* **dofStrength**: Depth of Field strength (between 0.0 and 1.0)
4 changes: 2 additions & 2 deletions CAM/SetCamFarDof.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ ns: CAM
void SET_CAM_FAR_DOF(Cam cam, float farDOF);
```
Specifies when the camera should stop being in focus.
Specifies when the camera should stop being in focus. Can be used together with [`SET_USE_HI_DOF`](#_0xA13B0222F3D94A94), [`SET_CAM_NEAR_DOF`](#_0x3FA4BF0A7AB7DE2C), [`SET_CAM_USE_SHALLOW_DOF_MODE`](#_0x16A96863A17552BB), [`SET_CAM_DOF_STRENGTH`](#_0x5EE29B4D7D5DF897) and other DoF related natives. (Example: https://forum.cfx.re/t/camera-depth-of-field-settings/2433316/3)
## Parameters
* **cam**:
* **cam**: The camera
* **farDOF**: Distance in in standard units
4 changes: 2 additions & 2 deletions CAM/SetCamNearDof.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ns: CAM
void SET_CAM_NEAR_DOF(Cam cam, float nearDOF);
```
Specifies when the camera should start being in focus.
Specifies when the camera should start being in focus. Can be used together with [`SET_USE_HI_DOF`](#_0xA13B0222F3D94A94), [`SET_CAM_FAR_DOF`](#_0xEDD91296CD01AEE0), [`SET_CAM_USE_SHALLOW_DOF_MODE`](#_0x16A96863A17552BB), [`SET_CAM_DOF_STRENGTH`](#_0x5EE29B4D7D5DF897) and other DoF related natives. (Example: https://forum.cfx.re/t/camera-depth-of-field-settings/2433316/3)
## Parameters
* **cam**:
* **cam**: The camera
* **nearDOF**: Distance in in standard units
6 changes: 3 additions & 3 deletions CAM/SetCamUseShallowDofMode.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ ns: CAM
void SET_CAM_USE_SHALLOW_DOF_MODE(Cam cam, BOOL toggle);
```
Enables or disables the usage of a shallow DOF. Needs to be set to true to use [`SET_CAM_NEAR_DOF`](#_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#_0xEDD91296CD01AEE0), etc. Doesn't need to be called every tick.
Enables or disables the usage of a shallow DOF. Needs to be set to true to use [`SET_CAM_NEAR_DOF`](#_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#_0xEDD91296CD01AEE0), etc. Doesn't need to be called every tick. (Example: https://forum.cfx.re/t/camera-depth-of-field-settings/2433316/3)
## Parameters
* **cam**:
* **toggle**:
* **cam**: The camera
* **toggle**: Boolean if the camera should use a shallow depth of field or not

0 comments on commit 6a4d349

Please sign in to comment.