Skip to content

Commit 49e98af

Browse files
authored
fix flipping - happens after program not before
1 parent b2d136a commit 49e98af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/content/docs/current/Reference/Shaders.Properties

src/content/docs/current/Reference/Shaders.Properties/rendering.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ flip.<program>.<bufferName>=<true|false>
7171
```
7272
For each color attachment sampler, there is actually two buffers, the "main" and "alt" buffers. [`gbuffers`](/current/reference/programs/gbuffers/) and [`shadow`](/current/reference/programs/shadow/) programs read from the "main" buffer and write to the "main" buffer, which means that reading to and writing from the same buffer will cause artifacting. [`begin`](/current/reference/programs/begin/), [`shadowcomp`](/current/reference/programs/shadow_comp/), [`prepare`](/current/reference/programs/prepare/), [`deferred`](/current/reference/programs/deferred/), and [`composite`](/current/reference/programs/composite/) passes however read from the "main" buffer and write to the "alt" buffer, allowing them to read and write to the same buffer, and after that program the "main" and "alt" buffers are swapped so data written by the current program is read by the next program.
7373

74-
This behavior can be controlled with the `flip.<program>.<bufferName>` directive. Replace `<program>` with the program name (i.e. `composite2`), `<bufferName>` with the sampler name (i.e. `colortex5`), setting the value to `false` will disable the buffer flip that would happen before the start of that program. The default behavior is for buffer flipping to be enabled for all programs.
74+
This behavior can be controlled with the `flip.<program>.<bufferName>` directive. Replace `<program>` with the program name (i.e. `composite2`), `<bufferName>` with the sampler name (i.e. `colortex5`), setting the value to `false` will disable the buffer flip that would happen after the end of that program. The default behavior is for buffer flipping to be enabled for all programs.
7575

7676
----------------
7777

0 commit comments

Comments
 (0)