diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-21 21:45:38 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-21 21:45:38 -0400 |
| commit | 8bbef6b1f8fe61ae8b0f24693af28b7fa6e68237 (patch) | |
| tree | eaddcd8a1f6f735dc6ea2fe3380e5fe1c90754e6 /assets/shaders/3d.frag | |
| parent | 77d547596c23d5878fee417d3aa0a3bf38037e65 (diff) | |
pke: embed shaders in executable
Diffstat (limited to 'assets/shaders/3d.frag')
| -rw-r--r-- | assets/shaders/3d.frag | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/assets/shaders/3d.frag b/assets/shaders/3d.frag new file mode 100644 index 0000000..9859bb6 --- /dev/null +++ b/assets/shaders/3d.frag @@ -0,0 +1,20 @@ +# version 450 + +layout(location = 0) in vec4 fragColor; +layout(location = 1) in vec3 fragTexCoord; + +layout(location = 0) out vec4 outColor; + +layout(binding = 1) uniform sampler2D texSampler; + +void main() { + vec4 color = texture(texSampler, fragTexCoord.xy); +/* + if (color.w == 0) { + discard; + } +*/ + outColor = color; + // outColor = vec4(0.0, 0.8, 0.0, 1.0); + // outColor = vec4(fragTexCoord.xyz, 1.0); +} |
