npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vis-three/module-texture

v0.7.1

Published

vis-three texture module

Downloads

22

Readme

@vis-three/module-texture

最新版本

license

模块信息

module.type

  • : texture

module.object

  • : false

module.lifeOrder

  • : 0

提供配置

纹理基类-Texture

export interface TextureConfig extends SymbolConfig {
  name: string;
  mapping: number;
  wrapS: number;
  wrapT: number;
  magFilter: number;
  minFilter: number;
  anisotropy: number;
  format: number;
  offset: Vector2Config;
  repeat: Vector2Config;
  rotation: number;
  center: Vector2Config;
  matrixAutoUpdate: boolean;
  encoding: number;
  needsUpdate: boolean;
  flipY: boolean;
}
  • 默认配置:
{
  mapping: UVMapping,
  wrapS: ClampToEdgeWrapping,
  wrapT: ClampToEdgeWrapping,
  magFilter: LinearFilter,
  minFilter: LinearMipmapLinearFilter,
  anisotropy: 1,
  format: RGBAFormat,
  flipY: true,
  offset: {
    x: 0,
    y: 0,
  },
  repeat: {
    x: 1,
    y: 1,
  },
  rotation: 0,
  center: {
    x: 0,
    y: 0,
  },
  matrixAutoUpdate: true,
  encoding: LinearEncoding,
  needsUpdate: false,
}

图像纹理-ImageTexture

  • 类型ImageTexture
  • 配置类型:
export interface ImageTextureConfig extends TextureConfig {
  /**通过resourceManager 解析的图片资源地址 */
  url: string;
}
  • 默认配置:
{
  url: "",
  minFilter: LinearFilter,
}

视频纹理-VideoTexture

  • 类型VideoTexture
  • 配置类型:
export interface VideoTextureConfig extends TextureConfig {
  /**通过resourceManager 解析的视频资源地址 */
  url: string;
}
  • 默认配置:
{
  url: "",
  minFilter: LinearFilter,
}

立方体纹理-CubeTexture

  • 类型CubeTexture
  • 配置类型:
export interface CubeTextureConfig extends TextureConfig {
  cube: {
    /**通过resourceManager 解析的图片资源地址 */
    nx: string;
    /**通过resourceManager 解析的图片资源地址 */
    ny: string;
    /**通过resourceManager 解析的图片资源地址 */
    nz: string;
    /**通过resourceManager 解析的图片资源地址 */
    px: string;
    /**通过resourceManager 解析的图片资源地址 */
    py: string;
    /**通过resourceManager 解析的图片资源地址 */
    pz: string;
  };
}
  • 默认配置:
{
  cube: {
    nx: "",
    ny: "",
    nz: "",
    px: "",
    py: "",
    pz: "",
  },
  mapping: CubeReflectionMapping,
  flipY: false,
}

canvas 纹理-CanvasTexture

  • 类型CanvasTexture
  • 配置类型:
export interface CanvasTextureConfig extends TextureConfig {
  /**通过resourceManager 解析的canvas资源地址 */
  url: string;
  /**如果canvas资源更新,你可以通过此属性为true更新 */
  needsUpdate: boolean;
}
  • 默认配置:
{
  url: "",
  needsUpdate: false,
}

加载纹理-LoadTexture

  • 类型LoadTexture
  • 配置类型:
export interface LoadTextureConfig extends TextureConfig {
  /**通过resourceManager 解析的纹理资源地址 */
  url: string;
}
  • 默认配置:
{
  url: "",
}