mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-22 17:47:34 +08:00
back normal fix
This commit is contained in:
parent
fe5bbb0e02
commit
91cf2b42c8
@ -518,6 +518,8 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
|
||||
WavePixelData wave = physics_wavePixel(physics_localPosition.xz, waviness, physics_iterationsNormal, physics_gameTime);
|
||||
vec3 NormalTex = wave.normal;
|
||||
|
||||
if (isEyeInWater == 1 && !gl_FrontFacing) NormalTex = -NormalTex;
|
||||
|
||||
// tangent space normals for refraction
|
||||
TangentNormal = NormalTex.xy*0.5+0.5;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user