- Sceneform SDK for Android
was open sourced and archived ( github.com/google-ar/sceneform-android-sdk
) with version 1.16.0.
- This site ( developers.google.com/sceneform
) serves as the documentation archive for the previous version, Sceneform SDK for Android
1.15.0.
- Do not use version 1.17.0 of the Sceneform Maven artifacts
.
- The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.
Texture.Sampler
Stay organized with collections
Save and categorize content based on your preferences.
Controls what settings are used to sample Textures when rendering.
Nested Classes
class
Builder for constructing Sampler objects.
enum
Options for Magnification Filter function.
enum
Options for Minification Filter function.
enum
Options for Wrap Mode function.
Inherited Methods
From class
java.lang.Object
Public Methods
Get the magnification function used whenever the level-of-detail function determines that the
texture should be magnified.
Get the minifying function used whenever the level-of-detail function determines that the
texture should be minified.
Get the wrap mode for texture coordinate R. The wrap mode determines how a texture is
rendered for uv coordinates outside the range of [0, 1].
Get the wrap mode for texture coordinate S. The wrap mode determines how a texture is
rendered for uv coordinates outside the range of [0, 1].
Get the wrap mode for texture coordinate T. The wrap mode determines how a texture is
rendered for uv coordinates outside the range of [0, 1].
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eTexture.Sampler\u003c/code\u003e controls the settings for sampling textures during rendering in Sceneform.\u003c/p\u003e\n"],["\u003cp\u003eIt provides options for magnification and minification filtering, as well as wrap modes for texture coordinates.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use a \u003ccode\u003eTexture.Sampler.Builder\u003c/code\u003e to construct \u003ccode\u003eSampler\u003c/code\u003e objects with specific settings.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTexture.Sampler\u003c/code\u003e includes methods to retrieve the configured magnification filter, minification filter, and wrap modes for each texture coordinate (R, S, T).\u003c/p\u003e\n"]]],["Texture.Sampler controls texture sampling settings during rendering. Key actions involve using the `builder` to construct Sampler objects. It defines magnification (`getMagFilter`) and minification (`getMinFilter`) functions, which adjust how textures are scaled. It also manages wrap modes (`getWrapModeR`, `getWrapModeS`, `getWrapModeT`) for texture coordinates R, S, and T, dictating how textures render outside the standard \\[0, 1] range. The nested classes and enums are used to define these properties.\n"],null,["# Texture.Sampler\n\npublic static class **Texture.Sampler** \nControls what settings are used to sample Textures when rendering. \n\n### Nested Classes\n\n|-------|---|---|--------------------------------------------|\n| class | [Texture.Sampler.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.Builder) || Builder for constructing Sampler objects. |\n| enum | [Texture.Sampler.MagFilter](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.MagFilter) || Options for Magnification Filter function. |\n| enum | [Texture.Sampler.MinFilter](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.MinFilter) || Options for Minification Filter function. |\n| enum | [Texture.Sampler.WrapMode](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.WrapMode) || Options for Wrap Mode function. |\n\n### Public Methods\n\n|------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Texture.Sampler.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.Builder) | [builder](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler#builder())() |\n| [Texture.Sampler.MagFilter](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.MagFilter) | [getMagFilter](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler#getMagFilter())() Get the magnification function used whenever the level-of-detail function determines that the texture should be magnified. |\n| [Texture.Sampler.MinFilter](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.MinFilter) | [getMinFilter](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler#getMinFilter())() Get the minifying function used whenever the level-of-detail function determines that the texture should be minified. |\n| [Texture.Sampler.WrapMode](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.WrapMode) | [getWrapModeR](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler#getWrapModeR())() Get the wrap mode for texture coordinate R. |\n| [Texture.Sampler.WrapMode](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.WrapMode) | [getWrapModeS](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler#getWrapModeS())() Get the wrap mode for texture coordinate S. |\n| [Texture.Sampler.WrapMode](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.WrapMode) | [getWrapModeT](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler#getWrapModeT())() Get the wrap mode for texture coordinate T. |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| [Object](https://developer.android.com/reference/java/lang/Object) | clone() |\n| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object) arg0) |\n| void | finalize() |\n| final [Class](https://developer.android.com/reference/java/lang/Class)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](https://developer.android.com/reference/java/lang/String) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static [Texture.Sampler.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.Builder)\n**builder**\n()\n\n\u003cbr /\u003e\n\n#### public [Texture.Sampler.MagFilter](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.MagFilter)\n**getMagFilter**\n()\n\nGet the magnification function used whenever the level-of-detail function determines that the\ntexture should be magnified. \n\n#### public [Texture.Sampler.MinFilter](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.MinFilter)\n**getMinFilter**\n()\n\nGet the minifying function used whenever the level-of-detail function determines that the\ntexture should be minified. \n\n#### public [Texture.Sampler.WrapMode](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.WrapMode)\n**getWrapModeR**\n()\n\nGet the wrap mode for texture coordinate R. The wrap mode determines how a texture is\nrendered for uv coordinates outside the range of \\[0, 1\\]. \n\n#### public [Texture.Sampler.WrapMode](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.WrapMode)\n**getWrapModeS**\n()\n\nGet the wrap mode for texture coordinate S. The wrap mode determines how a texture is\nrendered for uv coordinates outside the range of \\[0, 1\\]. \n\n#### public [Texture.Sampler.WrapMode](/sceneform/reference/com/google/ar/sceneform/rendering/Texture.Sampler.WrapMode)\n**getWrapModeT**\n()\n\nGet the wrap mode for texture coordinate T. The wrap mode determines how a texture is\nrendered for uv coordinates outside the range of \\[0, 1\\]."]]