Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <forward_renderer.h>
Public Member Functions | |
ForwardRenderer () | |
~ForwardRenderer () | |
void | Startup () |
void | Render () |
Private Attributes | |
Shader | vertex_shader_ |
Shader | pixel_shader_ |
RootSignature | main_root_signature_ |
GraphicsPSO | main_pso_ |
DepthBuffer | depth_buffer_ |
Implements a forward rendering technique.
The ForwardRenderer renders the entire scene in a forward style, often it is called the "painters" algorithm, because everything is kept on being overlaid on top of each other.
blowbox::ForwardRenderer::ForwardRenderer | ( | ) |
Constructs the ForwardRenderer.
blowbox::ForwardRenderer::~ForwardRenderer | ( | ) |
Destructs the ForwardRenderer.
void blowbox::ForwardRenderer::Render | ( | ) |
Renders the entire scene into the current backbuffer in the SwapChain.
void blowbox::ForwardRenderer::Startup | ( | ) |
Starts up the ForwardRenderer.
|
private |
The depth buffer that is used to render the scene.
|
private |
The main PSO that is used for all forward rendering.
|
private |
The main root signature for all forward rendering.
|
private |
Pixel shader for the forward rendering.