The initial values of the shader uniforms.
Static TYPE_The grid type uniform.
Static THICKNESS_The grid thickness uniform.
Static COLOR_The grid color uniform.
Static RESOLUTION_The resolution (pixels per grid space units) uniform.
Static ANTIALIASED_The antialiased step function. The edge and x values is given in grid space units.
Static LINE_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).
Static HEXAGONAL_Hexagonal functions conversion for between grid and cube space.
Static NEAREST_Get the nearest vertex of a grid space to the given point.
Static EDGE_This function returns the distance to the nearest edge of a grid space given a point.
Static EDGE_This function returns an vector (x, y, z), where
Static DRAW_A function that draws the grid given a grid point, style, thickness, and color.
Static vertexStatic defaultStatic Protected _fragmentThe fragment shader source. Subclasses can override it.
Static fragmentProtected _configureStatic createA factory method for creating the shader using its defined default values
The grid shader used by GridMesh.