Allow any floating-point value as a 3D rendering scale option
This allows for finer control over 3D rendering resolution. Supersampling can also be performed by setting a 3D rendering resolution above 1.0, which is useful for offline rendering or for very high-end GPUs.
This commit is contained in:
parent
a5a52233bc
commit
73c6e19acc
10 changed files with 43 additions and 103 deletions
|
|
@ -49,7 +49,7 @@ public:
|
|||
|
||||
bool use_xr; /* use xr interface to override camera positioning and projection matrices and control output */
|
||||
|
||||
RS::ViewportScale3D scale_3d = RenderingServer::VIEWPORT_SCALE_3D_DISABLED;
|
||||
float scale_3d = 1.0;
|
||||
|
||||
Size2i size;
|
||||
RID camera;
|
||||
|
|
@ -207,7 +207,7 @@ public:
|
|||
void viewport_initialize(RID p_rid);
|
||||
|
||||
void viewport_set_use_xr(RID p_viewport, bool p_use_xr);
|
||||
void viewport_set_scale_3d(RID p_viewport, RenderingServer::ViewportScale3D p_scale_3d);
|
||||
void viewport_set_scale_3d(RID p_viewport, float p_scale_3d);
|
||||
|
||||
void viewport_set_size(RID p_viewport, int p_width, int p_height);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue