All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.ShaderLib.WaterUtil.glsllib Maven / Gradle / Ivy

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