16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 19:49:19 +02:00

add depth prepass in preparation for moving from deferred back to forward renderer

This commit is contained in:
Wls50
2025-11-23 09:19:44 +01:00
committed by Hirek
parent 915e4c769e
commit 593a8a288f
10 changed files with 201 additions and 53 deletions

View File

@@ -3,8 +3,13 @@
sampler diffuse_sampler : register(s0);
Texture2D diffuse : register(t0);
#ifdef PREPASS
#include "manul/draw_constants.hlsli"
#else
#include "manul/draw_constants_shadow.hlsli"
#endif
#define SHADOW
#include "manul/alpha_mask.hlsli"
struct VertexOutput {