|
static Vector3 [] | ScaledUnitGrid (int xres, int yres, Vector3 pos, float scale) |
|
static Vector3 [] | InterpolateShapes (Vector3[] s1, Vector3[] s2, float alpha) |
| Interpolate 2 Shapes with different parameters and return their vertices. More...
|
|
◆ GridShape()
GridShape.GridShape |
( |
Vector3 |
position, |
|
|
DrawMode |
drawMode, |
|
|
Vector2Int |
resolution, |
|
|
Vector2 |
spacing |
|
) |
| |
◆ Bbox()
override float [] GridShape.Bbox |
( |
| ) |
|
|
virtual |
calculate the bounding box of this shape
- Returns
Implements Shape.
◆ BboxV()
Vector3 [] GridShape.BboxV |
( |
float |
zpos | ) |
|
◆ calcVertices()
override void GridShape.calcVertices |
( |
| ) |
|
|
protectedvirtual |
returns 3d Vectors that can be added to the mesh.
Implements Shape.
◆ InterpolatedGrid()
◆ ScaledUnitGrid()
static Vector3 [] GridShape.ScaledUnitGrid |
( |
int |
xres, |
|
|
int |
yres, |
|
|
Vector3 |
pos, |
|
|
float |
scale |
|
) |
| |
|
static |
◆ resolution
Vector2Int GridShape.resolution |
◆ spacing
Vector2 GridShape.spacing |
The documentation for this class was generated from the following file:
- src/geometry shader sample project/StandardGeometryShader-master/Assets/Layer/GridShape.cs