Method AddSampler
AddSampler(FilterMode, TextureWrapMode, TextureWrapMode)
Creates a glTF sampler based on Unity filter and wrap settings
Declaration
public int AddSampler(FilterMode filterMode, TextureWrapMode wrapModeU, TextureWrapMode wrapModeV)
Parameters
Type | Name | Description |
---|---|---|
FilterMode | filterMode | Texture filter mode |
TextureWrapMode | wrapModeU | Texture wrap mode in U direction |
TextureWrapMode | wrapModeV | Texture wrap mode in V direction |
Returns
Type | Description |
---|---|
int | glTF sampler index or -1 if no sampler is required |