diff options
author | grm <grm@eyesin.space> | 2024-12-16 12:09:19 +0200 |
---|---|---|
committer | grm <grm@eyesin.space> | 2024-12-16 12:09:19 +0200 |
commit | f58834cfa1186373781761cd74e044fc9359c051 (patch) | |
tree | c9ea2e7feba8fc93fc11c5c093dc6c1931395de3 /src/shader.frag | |
parent | af57524fb3d6914ab413023af4b197d2eb8e6894 (diff) | |
download | cgame-f58834cfa1186373781761cd74e044fc9359c051.tar.gz cgame-f58834cfa1186373781761cd74e044fc9359c051.tar.bz2 cgame-f58834cfa1186373781761cd74e044fc9359c051.zip |
even smoler
Diffstat (limited to 'src/shader.frag')
-rw-r--r-- | src/shader.frag | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader.frag b/src/shader.frag index 88015c4..fc16ceb 100644 --- a/src/shader.frag +++ b/src/shader.frag @@ -17,9 +17,9 @@ layout(binding = 0) uniform UniformBufferObject { } ubo; void main() { - // float pulse = sin(ubo.time * .2) * .5 + .5; - // outColor = vec4(fragColor * texture(texSampler, fragTexCoord).rgb * pulse, 1.0); - outColor = texture(texSampler, fragTexCoord); + float pulse = sin(ubo.time * 20) * .5 + .5; + outColor = vec4(fragColor * texture(texSampler, fragTexCoord).rgb * pulse, 1.0); + // outColor = texture(texSampler, fragTexCoord); //outColor = vec4(fragColor, 1); // float repeat = 10; // float f = zmod(ubo.time, repeat); |