mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-06 10:28:41 +01:00
Take the ambient occlusion into the lighting and add a probe of the cab
This commit is contained in:
19
shaders/vk14/cabprobe.frag
Normal file
19
shaders/vk14/cabprobe.frag
Normal file
@@ -0,0 +1,19 @@
|
||||
#version 460 core
|
||||
#define STAGE_FRAGMENT 1
|
||||
#include "common.glsl"
|
||||
// the probe of the occupied cab (gfx::cab_probe), the materials without the alpha test (cabprobe.glsl)
|
||||
layout(location = 0) in vec3 f_normal;
|
||||
layout(location = 2) in vec2 f_coord;
|
||||
layout(location = 3) in vec4 f_pos;
|
||||
|
||||
#pragma texture(diffuse, 0, sRGB_A)
|
||||
layout(set = MATERIAL_SET, binding = MATERIAL_TEXTURE_FIRST + 0) uniform sampler2D diffuse;
|
||||
// the cube shadow map of the cab lamp
|
||||
layout(set = PASS_SET, binding = LOCAL_SHADOW_TEX) uniform samplerCubeArrayShadow probe_shadowmap;
|
||||
|
||||
#include "cabprobe.glsl"
|
||||
|
||||
void main()
|
||||
{
|
||||
probe_shade(texture(diffuse, f_coord));
|
||||
}
|
||||
Reference in New Issue
Block a user