Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/shaders/omnishadow.frag.glsl

15 lines
359 B
Text
Raw Normal View History

2020-09-23 09:53:45 -04:00
layout (constant_id = 0) const int max_lights = 25;
layout (location = 0) in vec3 inPos;
layout (location = 1) flat in int index;
2020-08-11 12:07:21 -04:00
layout (location = 0) out float outFragColor;
2020-09-23 09:53:45 -04:00
layout(std430, binding = 2) buffer readonly LightInformation {
vec3 light_locations[max_lights];
2020-08-11 12:07:21 -04:00
};
void main() {
2020-09-23 09:53:45 -04:00
outFragColor = length(inPos - light_locations[index]);
2020-08-11 12:07:21 -04:00
}