Skip to content

Commit

Permalink
Docs: update 14-Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 18, 2024
1 parent a8d26d6 commit 793ca10
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Docs/14-Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ This simplifies many advanced algorithms, such as deferred shading, where you wa

The second argument of `RenderQueueListener::renderQueueStarted` now contains the current camera name and hence is always non-empty.

## Rectangular Area Lights (since 14.1)
### Rectangular Area Lights (since 14.1)

A new spot light type `LT_RECTLIGHT` has been introduced along with the `setSourceSize` method, enabling the rendering of rectangular area lights. In order to process this light type in your shader, verify that the `spotlight_params.w` autoparam is equal to 2. Then, `spotlight_params.xyz` contains the light width in the view space, and `light_attenuation.xyz` contains the light height.

Expand All @@ -93,6 +93,13 @@ Since 14.1, `Checkbox` and multidimensional input (e.g. `ColorEdit3` `InputFloat
Since 14.1, primitive types like `Ogre.Vector3`, `Ogre.ColourValue` etc. behave like Python sequences and can be used with `len()` and expanded `myfun(*Ogre.Quaternion())`.
Additionally, `Ogre.Degree` can be transparently used where `Ogre.Radian` is required.

## Bites

Since 14.2 `ApplicationContextBase::runRenderingSettingsDialog()` is available, that displays an ImGui based dialog to change the rendering settings.
This replaces the platform specific `getNativeConfigDialog()` based dialogs which will be removed in a future release.

Additionally, there is `DrawRenderingSettings` in the overlay component, that allows you to integrate the dialog logic into your application. See the SampleBrowser for an example.

## RTShader System

The PSSM3, TriplanarTexturing and GBuffer sub-renderstates are now only configurable through the generic `setParameter()` method.
Expand Down

0 comments on commit 793ca10

Please sign in to comment.