Method | Description | |
---|---|---|
GetIndexBuffer ( ) : |
|
|
GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : |
|
|
Ground ( int squreCountPerUnit = 10, int xUnit = 10, int zUnit = 10 ) : System |
|
|
UsesZeroIndexBuffer ( ) : bool |
Uses ZeroIndexBuffer or OneIndexBuffer.
|
Method | Description | |
---|---|---|
GenerateColors ( int squreCountPerUnit, int xUnit, int zUnit ) : vec3[] | ||
GeneratePositions ( int squreCountPerUnit, int xUnit, int zUnit ) : vec3[] |
public GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : |
||
bufferName | string | |
varNameInShader | string | |
return |
public Ground ( int squreCountPerUnit = 10, int xUnit = 10, int zUnit = 10 ) : System | ||
squreCountPerUnit | int | 每个world space里的1个距离单位有几个方块? |
xUnit | int | 在x轴正方向画多少个距离单位? |
zUnit | int | 在z轴正方向画多少个距离单位? |
return | System |