The initial values of the shader uniforms.
StaticANTIALIASED_The antialiased step function. The edge and x values is given in grid space units.
StaticCOLOR_The grid color uniform.
StaticdefaultStaticDRAW_A function that draws the grid given a grid point, style, thickness, and color.
StaticEDGE_This function returns the distance to the nearest edge of a grid space given a point.
StaticEDGE_This function returns an vector (x, y, z), where
StaticHEXAGONAL_Hexagonal functions conversion for between grid and cube space.
StaticLINE_The line converage function, which returns the alpha value at a point with the given distance (in grid space units) from an antialiased line (or point) with the given thickness (in grid space units).
StaticNEAREST_Get the nearest vertex of a grid space to the given point.
StaticRESOLUTION_The resolution (pixels per grid space units) uniform.
StaticTHICKNESS_The grid thickness uniform.
StaticTYPE_The grid type uniform.
StaticvertexProtected Static_fragmentThe fragment shader source. Subclasses can override it.
Configure the shader.
Reset the shader uniforms back to their initial values.
Protected_configureProtectedA one time initialization performed on creation.
StaticcreateA factory method for creating the shader using its defined default values
The grid shader used by foundry.canvas.containers.GridMesh.