Common.ShaderLib.WaterUtil.glsllib Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-core Show documentation
Show all versions of jme3-core Show documentation
jMonkeyEngine is a 3D game engine for adventurous Java developers
The newest version!
#ifdef ENABLE_AREA
bool isOverExtent(vec3 position,vec3 center,float radius){
vec2 dist = position.xz-center.xz;
#ifdef SQUARE_AREA
return dist.x*dist.x >radius || dist.y*dist.y >radius;
#else
return dot(dist,dist)>radius;
#endif
}
#endif
© 2015 - 2024 Weber Informatics LLC | Privacy Policy