Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added descriptions for a few camera DoF natives #866

Merged
merged 34 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
69cd333
Update SetCamNearDof.md
coalaura Mar 4, 2023
d0b13c5
Update SetCamUseShallowDofMode.md
coalaura Mar 4, 2023
26f28c7
Update SetCamDofStrength.md
coalaura Mar 4, 2023
c6667de
Update SetUseHiDof.md
coalaura Mar 4, 2023
d0b1c16
Update SetUseHiDof.md
coalaura Mar 4, 2023
dfa265e
Update SetCamDofStrength.md
coalaura Mar 4, 2023
ff7f0d4
Update SetCamFarDof.md
coalaura Mar 4, 2023
272c118
Update SetCamNearDof.md
coalaura Mar 4, 2023
b706ebf
Update SetCamUseShallowDofMode.md
coalaura Mar 4, 2023
5fc1d6c
Update SetUseHiDof.md
coalaura Mar 4, 2023
dd3360c
Update SetCamDofStrength.md
coalaura Apr 1, 2023
effcda7
Update SetCamFarDof.md
coalaura Apr 1, 2023
051af12
Update SetCamNearDof.md
coalaura Apr 1, 2023
5fae930
Update SetCamUseShallowDofMode.md
coalaura Apr 1, 2023
cfd279a
Update SetCamFarDof.md
coalaura Apr 1, 2023
8357cbc
Update SetCamNearDof.md
coalaura Apr 1, 2023
76d8f3c
Update SetCamDofStrength.md
coalaura Apr 1, 2023
6f6eea8
Update SetCamFarDof.md
coalaura Apr 1, 2023
c5eaf6e
Update SetCamNearDof.md
coalaura Apr 1, 2023
440ddbe
Update SetCamUseShallowDofMode.md
coalaura Apr 1, 2023
4d62fef
Update SetCamDofStrength.md
coalaura Apr 1, 2023
0412e8c
Update SetUseHiDof.md
coalaura Apr 1, 2023
109e324
Update SetUseHiDof.md
coalaura Apr 1, 2023
626f981
Update SetUseHiDof.md
coalaura Apr 1, 2023
21288b6
Merge branch 'citizenfx:master' into master
coalaura Apr 1, 2023
87e212e
Fix more formatting issues
coalaura Oct 5, 2023
6d4e326
fix
coalaura Oct 5, 2023
6a4d349
add some examples and references
coalaura Oct 10, 2023
ca3f0fc
include example
coalaura Oct 10, 2023
c5e1d65
Update SetCamDofStrength.md
4mmonium Nov 16, 2023
c76d82e
Update SetCamFarDof.md
4mmonium Nov 16, 2023
2f450e2
Update SetCamNearDof.md
4mmonium Nov 16, 2023
a5d9a6f
Update SetCamUseShallowDofMode.md
4mmonium Nov 16, 2023
75af2a2
Update SetUseHiDof.md
4mmonium Nov 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CAM/SetCamDofStrength.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +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.).

## Parameters
* **cam**:
* **dofStrength**:
* **dofStrength**: Between 0.0 and 1.0

3 changes: 2 additions & 1 deletion CAM/SetCamFarDof.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ ns: CAM
void SET_CAM_FAR_DOF(Cam cam, float farDOF);
```

Specifies when the camera should stop being in focus.

## Parameters
* **cam**:
* **farDOF**:
* **farDOF**: Distance in in standard units
coalaura marked this conversation as resolved.
Show resolved Hide resolved

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.

## Parameters
* **cam**:
* **nearDOF**:

* **nearDOF**: Distance in in standard units
1 change: 1 addition & 0 deletions CAM/SetCamUseShallowDofMode.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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.

## Parameters
* **cam**:
Expand Down
3 changes: 2 additions & 1 deletion CAM/SetUseHiDof.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ ns: CAM
void SET_USE_HI_DOF();
```


Needs to be called every tick to make the active camera use a high depth of field.
The DoF can be customized using [`SET_CAM_NEAR_DOF`](#_0x3FA4BF0A7AB7DE2C), [`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)
coalaura marked this conversation as resolved.
Show resolved Hide resolved
Loading