summaryrefslogtreecommitdiff
path: root/resources/shaders/foam.frag
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-05-10 14:31:04 -0400
committersotech117 <michael_foiani@brown.edu>2024-05-10 14:31:04 -0400
commit2820f2a620340feff973dfea26c1eb1172140ada (patch)
treea3b84e7c69954b7cd6ef28a68a3ae815e69c3127 /resources/shaders/foam.frag
parent1b98aed8908e04b750012323a8bf0f182fb305a6 (diff)
demo daygit add .
Diffstat (limited to 'resources/shaders/foam.frag')
-rw-r--r--resources/shaders/foam.frag4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/shaders/foam.frag b/resources/shaders/foam.frag
index d534ccd..d6d1cab 100644
--- a/resources/shaders/foam.frag
+++ b/resources/shaders/foam.frag
@@ -33,7 +33,7 @@ float getSaturation(vec2 k, vec2 xzPos, float adjWaveLength, float phaseC){
void main() {
float height = pos.y;
float saturation = constants[0];//getSaturation(dir, vec2(pos.x, pos.z), 200.f, constants[0]);
- vec4 m_uv = texture(halftone_texture, tex*1);
+ vec4 m_uv = texture(halftone_texture, tex*.6);
float m_threshold = (m_uv.r + m_uv.g + m_uv.b) / 3;
// final rgba color at x,z pos
@@ -46,7 +46,7 @@ void main() {
// apply foam texture
vec4 foam = texture(foam_texture, tex + time*.0003);
vec4 j = vec4(0,0,0,0);
- if (saturation > m_threshold) j = g*foam*1.8;
+ if (saturation > m_threshold) j = g*foam;
fragColor = j;