added oil drum
This commit is contained in:
@@ -17,7 +17,7 @@ uniform vec2 frequency = vec2(3.0, 2.5);
|
||||
uniform vec2 time_factor = vec2(5.0,4.0);
|
||||
|
||||
float height(vec2 pos, float time){
|
||||
return (strength.y * sin(pos.y * frequency.y + time * time_factor.y)) + (strength.x * sin(pos.x * frequency.x + time * time_factor.x));
|
||||
return (strength.y * sin(pos.y * frequency.y + time * time_factor.y)) + (strength.x * sin(pos.x * frequency.x + time * time_factor.x));
|
||||
}
|
||||
|
||||
void vertex(){
|
||||
@@ -25,18 +25,18 @@ void vertex(){
|
||||
}
|
||||
|
||||
void fragment(){
|
||||
|
||||
|
||||
vec2 displ = texture(water_tex, UV - TIME * speed / 8.0).xy;
|
||||
displ = (displ * 2.0 - 1.0) * displ_amount;
|
||||
|
||||
|
||||
float noise = texture(noise_tex, vec2(UV.x, UV.y / 4.0 - TIME * speed / 4.0) + displ).x;
|
||||
noise = floor(noise * 4.0) / 4.0;
|
||||
|
||||
|
||||
vec4 col = mix(dark_color, light_color, noise);
|
||||
|
||||
|
||||
vec2 uv_movement = UV;
|
||||
uv_movement -= vec2(0.0, 1.0) * TIME * speed;
|
||||
|
||||
|
||||
ALBEDO = col.rgb;
|
||||
NORMAL = texture(normal_tex, uv_movement).rgb;
|
||||
ROUGHNESS = 0.11;
|
||||
|
||||
Reference in New Issue
Block a user