Search code examples
x3dx3dom

x3d texture filtering mode


Looking at ImageTexture and TextureProperties, it's unclear to me how to set up properties.
How to specify magnificationFilter & minificationFilter to be linear?

<transform scale="1.01 1.01 1.01">
    <shape>
        <sphere></sphere>
        <appearance>
            <ImageTexture url="texture.png"></ImageTexture>
        </appearance>
    </shape>
</transform>

Solution

  • <ImageTexture url="texture.png">
        <TextureProperties generateMipMaps='TRUE' minificationFilter='LINEAR' magnificationFilter='LINEAR'></TextureProperties>
    </ImageTexture >