Fixed water filter's glsl 100 shader
This commit is contained in:
parent
20ea38e97e
commit
f73c2b379d
@ -413,10 +413,6 @@ void main(){
|
|||||||
// to calculate the derivatives for all these pixels by using step()!
|
// to calculate the derivatives for all these pixels by using step()!
|
||||||
// That way we won't get pixels around the edges of the terrain,
|
// That way we won't get pixels around the edges of the terrain,
|
||||||
// Where the derivatives are undefined
|
// Where the derivatives are undefined
|
||||||
if(position.y > level){
|
gl_FragColor = vec4(mix(color, color2, step(level, position.y)), 1.0);
|
||||||
color = color2;
|
|
||||||
}
|
|
||||||
|
|
||||||
gl_FragColor = vec4(color,1.0);
|
|
||||||
|
|
||||||
}
|
}
|
@ -77,6 +77,7 @@ MaterialDef Advanced Water {
|
|||||||
FragmentShader GLSL120 : Common/MatDefs/Water/Water.frag
|
FragmentShader GLSL120 : Common/MatDefs/Water/Water.frag
|
||||||
|
|
||||||
WorldParameters {
|
WorldParameters {
|
||||||
|
ViewProjectionMatrixInverse
|
||||||
}
|
}
|
||||||
Defines {
|
Defines {
|
||||||
ENABLE_RIPPLES : UseRipples
|
ENABLE_RIPPLES : UseRipples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user