Files
NubNix/home-manager/20_cava/03_shaders_pass-through.nix
2025-11-13 14:15:48 +00:00

15 lines
474 B
Nix

{ config, pkgs, ... }:
{
home.file.".config/cava/shaders/pass_through.vert".text = ''
#version 330
// Input vertex data, different for all executions of this shader.
layout(location = 0) in vec3 vertexPosition_modelspace;
// Output data ; will be interpolated for each fragment.
out vec2 fragCoord;
void main() {
gl_Position = vec4(vertexPosition_modelspace,1);
fragCoord = (vertexPosition_modelspace.xy+vec2(1,1))/2.0;
}
'';
}