Fixes and tweaks for rendering
This commit is contained in:
@@ -553,7 +553,7 @@ public:
|
||||
/// <summary>
|
||||
/// Sets the rendering viewport and scissor rectangle.
|
||||
/// </summary>
|
||||
/// <param name="viewport">The viewport.</param>
|
||||
/// <param name="viewport">The viewport (in pixels).</param>
|
||||
API_FUNCTION() FORCE_INLINE void SetViewportAndScissors(const Viewport& viewport)
|
||||
{
|
||||
SetViewport(viewport);
|
||||
@@ -575,13 +575,13 @@ public:
|
||||
/// <summary>
|
||||
/// Sets the rendering viewport.
|
||||
/// </summary>
|
||||
/// <param name="viewport">The viewport.</param>
|
||||
/// <param name="viewport">The viewport (in pixels).</param>
|
||||
API_FUNCTION() virtual void SetViewport(API_PARAM(Ref) const Viewport& viewport) = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Sets the scissor rectangle.
|
||||
/// </summary>
|
||||
/// <param name="scissorRect">The scissor rectangle.</param>
|
||||
/// <param name="scissorRect">The scissor rectangle (in pixels).</param>
|
||||
API_FUNCTION() virtual void SetScissor(API_PARAM(Ref) const Rectangle& scissorRect) = 0;
|
||||
|
||||
public:
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
#define GBUFFER2_FORMAT PixelFormat::R8G8B8A8_UNorm
|
||||
#define GBUFFER3_FORMAT PixelFormat::R8G8B8A8_UNorm
|
||||
|
||||
// Light accumulation buffer format (direct+indirect light, materials emissive)
|
||||
#define LIGHT_BUFFER_FORMAT PixelFormat::R11G11B10_Float
|
||||
|
||||
/// <summary>
|
||||
/// The scene rendering buffers container.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user