https://www.shadertoy.com/view/XlsXzN not found Filter,Wrap,VFlip

demo url

bug demo url

/**
 * three.js docs url https://threejs.org/docs/index.html?q=Texture#api/en/textures/Texture
 * Texture.needsUpdate = true;
 * // Filter
 * Texture.minFilter = THREE.LinearMipmapLinearFilter;
 * Texture.magFilter = THREE.LinearMipmapLinearFilter;
 * 
 * // Wrap
 * Texture.wrapS = THREE.RepeatWrapping;
 * Texture.wrapT = THREE.RepeatWrapping;
 * 
 * Texture.flipY  = false;
 * Texture.generateMipmaps = true;
 * 
 * babylon docs url https://doc.babylonjs.com/typedoc/classes/BABYLON.Texture
 * Unable to find attribute
 * minFilter、magFilter、wrapS、wrapT、flipY、generateMipmaps
 * 
 * url https://www.shadertoy.com/view/XlsXzN
 * Resulting in the inability to achieve the same effect
 * 
 */

generateMipMaps and flipY are parameters of the Texture constructor: Babylon.js docs

The filter (sampling mode) can be set through a parameter of the constructor too, or afterwards by calling updateSamplingMode: texture.updateSamplingMode(BABYLON.Constants.TEXTURE_LINEAR_LINEAR_MIPLINEAR).

The texture address mode can be changed through the wrapU, wrapV and wrapR properties: texture.wrapU = BABYLON.Constants.TEXTURE_WRAP_ADDRESSMODE.

3 Likes

Thank you