make physics mod support toggle for AMD people

This commit is contained in:
Xonk
2023-06-19 23:41:20 -04:00
parent cb404760be
commit cf945dcb8c
5 changed files with 44 additions and 32 deletions

View File

@ -3,10 +3,9 @@
#define PHYSICS_OCEAN_SUPPORT
// at the top of your file. When used my mod no longer injects code into
// your shaderpack. It replaces this define statement (before compilation) with
#define PHYSICS_OCEAN
// so you can use
#ifdef PHYSICS_OCEAN
#endif
#ifdef PhysicsMod_support
// to customize the water for the physics ocean
// just some basic consts for the wave function based on afl_ext's shader https://www.shadertoy.com/view/Xdlczl
@ -220,4 +219,5 @@ WavePixelData physics_wavePixel(const in vec2 position, const in float factor, c
data.foam = clamp(waterFoamMaxSmooth * waterSurfaceNoise * physics_foamOpacity, 0.0, 1.0);
return data;
}
}
#endif