You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Add option to enable HDR rendering in 2D
This is needed to allow 2D to fully make use of 3D effects (e.g. glow), and can be used to substantially improve quality of 2D rendering at the cost of performance Additionally, the 2D rendering pipeline is done in linear space (we skip linear_to_srgb conversion in 3D tonemapping) so the entire Viewport can be kept linear. This is necessary for proper HDR screen support in the future.
This commit is contained in:
@@ -863,6 +863,7 @@ public:
|
||||
virtual void viewport_remove_canvas(RID p_viewport, RID p_canvas) = 0;
|
||||
virtual void viewport_set_canvas_transform(RID p_viewport, RID p_canvas, const Transform2D &p_offset) = 0;
|
||||
virtual void viewport_set_transparent_background(RID p_viewport, bool p_enabled) = 0;
|
||||
virtual void viewport_set_use_hdr_2d(RID p_viewport, bool p_use_hdr) = 0;
|
||||
virtual void viewport_set_snap_2d_transforms_to_pixel(RID p_viewport, bool p_enabled) = 0;
|
||||
virtual void viewport_set_snap_2d_vertices_to_pixel(RID p_viewport, bool p_enabled) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user