make3d
Preparing search index...
TextureUtils
Class TextureUtils
Index
Constructors
constructor
Properties
ALPHA_
PROPS
loader
materials
PROPS
textures
Methods
create
Material
get
Material
get
Name
has
Texture
load
map
To
Cube
pixelate
Constructors
constructor
new
TextureUtils
()
:
TextureUtils
Returns
TextureUtils
Properties
Static
Readonly
ALPHA_
PROPS
ALPHA_PROPS
:
MeshBasicMaterialParameters
= ...
Static
Readonly
loader
loader
:
Loader
= ...
Static
Readonly
materials
materials
:
Record
<
string
,
MeshBasicMaterial
>
= {}
Static
Readonly
PROPS
PROPS
:
MeshBasicMaterialParameters
= ...
Static
Readonly
textures
textures
:
Record
<
string
,
Texture
>
= {}
Methods
Static
create
Material
createMaterial
(
map
:
Texture
,
props
?:
MeshBasicMaterialParameters
,
)
:
MeshBasicMaterial
Parameters
map
:
Texture
props
:
MeshBasicMaterialParameters
= TextureUtils.ALPHA_PROPS
Returns
MeshBasicMaterial
Static
get
Material
getMaterial
(
textureName
:
string
,
cols
?:
number
,
rows
?:
number
,
)
:
MeshBasicMaterial
Parameters
textureName
:
string
cols
:
number
= 1
rows
:
number
= 1
Returns
MeshBasicMaterial
Static
get
Name
getName
(
texturePath
:
string
)
:
string
Parameters
texturePath
:
string
Returns
string
Static
has
Texture
hasTexture
(
textureName
:
string
)
:
boolean
Parameters
textureName
:
string
Returns
boolean
Static
load
load
(
texturePaths
:
string
[]
)
:
Promise
<
any
[]
>
Parameters
texturePaths
:
string
[]
Returns
Promise
<
any
[]
>
Static
map
To
Cube
mapToCube
<
T
=
Texture
<
unknown
>
>
(
__namedParameters
:
Record
<
CubeDirections
,
T
>
,
)
:
T
[]
Type Parameters
T
=
Texture
<
unknown
>
Parameters
__namedParameters
:
Record
<
CubeDirections
,
T
>
Returns
T
[]
Static
pixelate
pixelate
(
texture
:
Texture
)
:
void
Parameters
texture
:
Texture
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
ALPHA_
PROPS
loader
materials
PROPS
textures
Methods
create
Material
get
Material
get
Name
has
Texture
load
map
To
Cube
pixelate
make3d
Loading...