Doc > Nodes > COP > Image

Doc > Nodes > COP > Image

Imports an image file.

Description

Performance tip: If possible, try to set min filter to LinearFilter in order to avoid the generation of mipmaps. https://discourse.threejs.org/t/threejs-app-performance-point-click-game/18491

Parameters

Name Type Description
url string url to fetch the image from
reload button reload the image
tencoding boolean toggle on to allow updating the texture encoding
encoding integer sets the texture encoding
tmapping boolean toggle on to allow updating the texture mapping
mapping integer sets the texture mapping
twrap boolean toggle on to allow updating the texture wrap
wrapS integer sets the texture wrapS
wrapT integer sets the texture wrapT
tminFilter boolean toggle on to allow updating the texture min filter
minFilter integer sets the texture min filter
tmagFilter boolean toggle on to allow updating the texture mag filter
magFilter integer sets the texture mag filter
tanisotropy boolean toggle on to allow updating the texture anisotropy
useRendererMaxAnisotropy boolean sets the anisotropy from the max value allowed by the renderer
anisotropy integer sets the anisotropy manually
tflipY boolean Toggle on to update the flipY
flipY boolean sets the flipY
ttransform boolean toggle on to update the texture transform
offset vector2 updates the texture offset
repeat vector2 updates the texture repeat
rotation float updates the texture rotation
center vector2 updates the texture center
tadvanced boolean toggle on to display advanced parameters
tformat boolean toggle on to allow overriding the texture format
format integer sets the texture format
ttype boolean toggle on to allow overriding the texture type
type integer sets the texture ty[e]
checkFileType boolean check url extension