Skip to content

Commit

Permalink
Update BulbDrawLitApplicationSurface.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Sep 6, 2024
1 parent fd4b498 commit 143d1d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/22.0/BulbDrawLitApplicationSurface.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
|`[textureFiltering]`|boolean |Whether to use texture filtering when drawing the application surface. If not specified, the texture filter setting will not be changed|
|`[alphaBlend]` |boolean |Whether to use texture filtering when drawing the application surface. If not specified, alpha blending will be disabled |

Bulb uses gamma correct lighting and, as such, works in a slightly different way to most other GameMaker lighting systems. Instead of multiplying the light on top of a source surface (typically the application surface), Bulb instead combines the source surface with the lighting in a special shader called a "tonemapping" shader. This process is complex, especially for HDR lighting and bloom, so it is wrapped up inside this helper function.

This function should typically be called in the Post Draw event as a replacement for native automatic drawing or other manual drawing (`draw_surface_stretched(application_surface, ...)` etc.) of the application surface.

?> You'll probably want to call `application_surface_draw_enable(false)` at the start of your game if you're using this function.
Expand Down

0 comments on commit 143d1d6

Please sign in to comment.