xash3d-fwgs/ref_vk/shaders/ray_kusochki.glsl
Ivan 'provod' Avdeev c90187f57f rtx: use a common definition for Kusok; pass color
Also pass alpha (not used yet)
2021-09-04 13:50:05 -07:00

22 lines
553 B
GLSL

#extension GL_EXT_shader_16bit_storage : require
//#extension GL_EXT_shader_8bit_storage : require
#define GLSL
#include "ray_interop.h"
#undef GLSL
struct Vertex {
vec3 pos;
vec3 normal;
vec2 gl_tc;
vec2 _unused_lm_tc;
//float padding;
//uint8_t color[4];
uint _unused_color_u8_4;
};
layout(std430, binding = 3, set = 0) readonly buffer Kusochki { Kusok kusochki[]; };
layout(std430, binding = 4, set = 0) readonly buffer Indices { uint16_t indices[]; };
layout(std430, binding = 5, set = 0) readonly buffer Vertices { Vertex vertices[]; };