Method | Description | |
---|---|---|
CompressPosition ( Vector4 pos ) : Vector4 |
Compresses a position so that its components are between 0 and 1.
|
|
CompressUv ( Vector2 uv ) : Vector2 |
Compresses texture coordinates so that the components are between 0 and 1.
|
|
DecompressPosition ( Vector4 pos ) : Vector4 |
Decompresses a position so that its components are in model space.
|
|
DecompressUv ( Vector2 uv ) : Vector2 |
Decompresses texture coordinates.
|
|
VertexCompressor ( |
Initializes a new instance of the VertexCompressor class.
|
public CompressPosition ( Vector4 pos ) : Vector4 | ||
pos | Vector4 | The position to compress. |
return | Vector4 |
public CompressUv ( Vector2 uv ) : Vector2 | ||
uv | Vector2 | The texture coordinates to compress. |
return | Vector2 |
public DecompressPosition ( Vector4 pos ) : Vector4 | ||
pos | Vector4 | The position to decompress. |
return | Vector4 |
public DecompressUv ( Vector2 uv ) : Vector2 | ||
uv | Vector2 | The texture coordinates to decompress. |
return | Vector2 |
public VertexCompressor ( |
||
info | The compression info to use. | |
return | TagTool.Common |