mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 23:09:40 +01:00
c90187f57f
Also pass alpha (not used yet)
22 lines
553 B
GLSL
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[]; };
|