aboutsummaryrefslogtreecommitdiff
path: root/doc/classes/Viewport.xml
diff options
context:
space:
mode:
authorBastiaan Olij2018-04-30 22:30:11 +1000
committerBastiaan Olij2018-05-06 19:28:09 +1000
commit6f7fefa489bb303301850befc9ea8eb573d33774 (patch)
tree29324e63ecae168d168b86f2b375c2fa29e98477 /doc/classes/Viewport.xml
parent2bf71d0eeadbd2e497b1555bf1f04993f7f3d63a (diff)
downloadgodot-6f7fefa489bb303301850befc9ea8eb573d33774.tar.gz
godot-6f7fefa489bb303301850befc9ea8eb573d33774.tar.zst
godot-6f7fefa489bb303301850befc9ea8eb573d33774.zip
Added option to viewport to keep linear color
Diffstat (limited to 'doc/classes/Viewport.xml')
-rw-r--r--doc/classes/Viewport.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml
index a48520573..4878f7d93 100644
--- a/doc/classes/Viewport.xml
+++ b/doc/classes/Viewport.xml
@@ -212,6 +212,9 @@
<member name="hdr" type="bool" setter="set_hdr" getter="get_hdr">
If [code]true[/code] the viewport rendering will receive benefits from High Dynamic Range algorithm. Default value: [code]true[/code].
</member>
+ <member name="keep_3d_linear" type="bool" setter="set_keep_3d_linear" getter="get_keep_3d_linear">
+ If [code]true[/code] the result after 3D rendering will not have a linear to sRGB color conversion applied. This is important when the viewport is used as a render target where the result is used as a texture on a 3D object rendered in another viewport. It is also important if the viewport is used to create data that is not color based (noise, heightmaps, pickmaps, etc.). Do not enable this when the viewport is used as a texture on a 2D object or if the viewport is your final output.
+ </member>
<member name="msaa" type="int" setter="set_msaa" getter="get_msaa" enum="Viewport.MSAA">
The multisample anti-aliasing mode. Default value: [code]MSAA_DISABLED[/code].
</member>