Method BlitCubeToOctahedral2DQuadWithPadding
BlitCubeToOctahedral2DQuadWithPadding(CommandBuffer, Texture, Vector2, Vector4, int, bool, int, Vector4?)
Blit a cube texture into 2d texture as octahedral quad with padding. (projection)
Declaration
public static void BlitCubeToOctahedral2DQuadWithPadding(CommandBuffer cmd, Texture source, Vector2 textureSize, Vector4 scaleBiasRT, int mipLevelTex, bool bilinear, int paddingInPixels, Vector4? decodeInstructions = null)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command buffer used for rendering. |
Texture | source | Source cube texture. |
Vector2 | textureSize | Source texture size. |
Vector4 | scaleBiasRT | Scale and bias for the output texture. |
int | mipLevelTex | Mip level to sample. |
bool | bilinear | Enable bilinear filtering. |
int | paddingInPixels | Padding in pixels. |
Vector4? | decodeInstructions |