DX12: skybox.

This commit is contained in:
Artem Kharytoniuk
2017-12-16 21:06:25 +01:00
parent 062ad9974d
commit 12da3b4d44
2 changed files with 23 additions and 3 deletions

View File

@@ -372,6 +372,18 @@ void dx_initialize() {
// Standard pipelines.
//
// skybox
{
Vk_Pipeline_Def def;
def.shader_type = Vk_Shader_Type::single_texture;
def.state_bits = 0;
def.face_culling = CT_FRONT_SIDED;
def.polygon_offset = false;
def.clipping_plane = false;
def.mirror = false;
dx.skybox_pipeline_state = create_pipeline(def);
}
// Q3 stencil shadows
{
{
@@ -448,6 +460,7 @@ void dx_initialize() {
}
void dx_shutdown() {
dx.skybox_pipeline_state->Release();
dx.shadow_finish_pipeline_state->Release();
for (int i = 0; i < 2; i++) {