ColorMaterial.TexCoordOffset 属性

定义

添加到纹理输入 Uv 坐标的常量偏移量。

public:
 property Microsoft::Azure::RemoteRendering::Float2 TexCoordOffset { Microsoft::Azure::RemoteRendering::Float2 get(); void set(Microsoft::Azure::RemoteRendering::Float2 value); };
public Microsoft.Azure.RemoteRendering.Float2 TexCoordOffset { get; set; }
member this.TexCoordOffset : Microsoft.Azure.RemoteRendering.Float2 with get, set
Public Property TexCoordOffset As Float2

属性值

注解

无论纹理大小如何,偏移量都规范化为 [0..1] 范围,因此 (0.5, 0.5) 始终指向纹理中间。 随着时间推移,可以更改偏移量来滚动纹理。

如果值为 NaN 或无限值,则会发生 InvalidParam 错误。

适用于