From c7484d95e8745b90e5de788842776300dd3a9a40 Mon Sep 17 00:00:00 2001 From: MasatoMakino Date: Mon, 23 Dec 2024 03:23:07 +0000 Subject: [PATCH] deploy: e77dfb4573df62d7e6f33e427d1e4185fefafc41 --- api/classes/AnimationChunk.html | 14 +++--- api/classes/CellularNoiseMaterial.html | 36 ++++++++-------- api/classes/ContourMaterial.html | 30 ++++++------- api/classes/CrossGridMaterial.html | 50 +++++++++++----------- api/classes/ExpansionChunk.html | 12 +++--- api/classes/ExpansionDissolveMaterial.html | 38 ++++++++-------- api/classes/ExpansionMaterial.html | 30 ++++++------- api/classes/ExpansionUniformChunk.html | 12 +++--- api/classes/ExpansionVertexChunk.html | 12 +++--- api/classes/FBMDissolveMaterial.html | 32 +++++++------- api/classes/FBMFireMaterial.html | 40 ++++++++--------- api/classes/GLSLChunk.html | 12 +++--- api/classes/HalftoneGridMaterial.html | 48 ++++++++++----------- api/classes/HexDissolveMaterial.html | 38 ++++++++-------- api/classes/HexGridChunk.html | 12 +++--- api/classes/HexGridMaterial.html | 50 +++++++++++----------- api/classes/MapChunk.html | 12 +++--- api/classes/MaskMapChunk.html | 12 +++--- api/classes/MeshPhongChunk.html | 12 +++--- api/classes/OuterGlowMaterial.html | 30 ++++++------- api/classes/RepeatPatternChunk.html | 12 +++--- api/classes/ReversibleChunk.html | 12 +++--- api/classes/RimBasicMaterial.html | 12 +++--- api/classes/RimEffectMaterial.html | 30 ++++++------- api/classes/ShaderBasicMaterial.html | 12 +++--- api/classes/ShaderLineMaterial.html | 8 ++-- api/classes/ShaderPhongMaterial.html | 30 ++++++------- api/classes/ShaderSpriteMaterial.html | 30 ++++++------- api/classes/SkyCloudMaterial.html | 38 ++++++++-------- api/classes/SolidClippingMaterial.html | 30 ++++++------- api/classes/SpriteChunk.html | 12 +++--- api/classes/SpriteCloudMaterial.html | 30 ++++++------- api/classes/SquareGridMaterial.html | 50 +++++++++++----------- api/classes/SurfaceNormalChunk.html | 12 +++--- api/classes/SurfaceNormalVaryingChunk.html | 12 +++--- api/classes/SurfaceNormalVertexChunk.html | 12 +++--- api/classes/SwirlMaterial.html | 38 ++++++++-------- api/classes/TilingFBMChunk.html | 12 +++--- api/classes/WavyAnimationChunk.html | 14 +++--- api/enums/Directions.html | 6 +-- api/interfaces/IAnimatable.html | 6 +-- api/interfaces/IExpandable.html | 4 +- api/interfaces/IMap.html | 4 +- api/interfaces/IMaskable.html | 4 +- api/interfaces/IRepeatablePattern.html | 4 +- api/interfaces/IReversible.html | 4 +- api/interfaces/ITiledFBM.html | 4 +- api/interfaces/IWavyAnimatable.html | 6 +-- 48 files changed, 490 insertions(+), 490 deletions(-) diff --git a/api/classes/AnimationChunk.html b/api/classes/AnimationChunk.html index 8be61e8a..80b0201a 100644 --- a/api/classes/AnimationChunk.html +++ b/api/classes/AnimationChunk.html @@ -1,18 +1,18 @@ AnimationChunk | @masatomakino/threejs-shader-materials

IAnimatableインターフェースで定義されたアニメーションを実行するGLSLチャンク。 uniformのtime値を操作する。 time値によってどのように変化するかは実装するShaderによる。

-

Hierarchy (View Summary)

Constructors

Hierarchy (View Summary)

Constructors

Methods

  • Chunkに関連する定数Defineを格納したオブジェクトを取得する。

    +

Constructors

Methods

  • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

    +
+
diff --git a/api/classes/CellularNoiseMaterial.html b/api/classes/CellularNoiseMaterial.html index 53e5b0e5..672016f1 100644 --- a/api/classes/CellularNoiseMaterial.html +++ b/api/classes/CellularNoiseMaterial.html @@ -4,7 +4,7 @@
  • アニメーション再生/停止フラグisAnimate
  • のそれぞれの変数にアクセスできることを保証する。

    -

    Hierarchy (View Summary)

    Implements

    Constructors

    Hierarchy (View Summary)

    Implements

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -259,7 +259,7 @@
    side: Side

    Defines which of the face sides will be rendered - front, back or both. Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide.

    THREE.FrontSide

    -
    speed: number = -0.02
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    speed: number = -0.02
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -337,7 +337,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -346,7 +346,7 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -354,20 +354,20 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, CellularNoiseMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -379,11 +379,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, CellularNoiseMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -394,13 +394,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, CellularNoiseMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/ContourMaterial.html b/api/classes/ContourMaterial.html index 38e14bc1..6bf682e1 100644 --- a/api/classes/ContourMaterial.html +++ b/api/classes/ContourMaterial.html @@ -1,6 +1,6 @@ ContourMaterial | @masatomakino/threejs-shader-materials

    テクスチャを等高線状にマップするマテリアル。 マッピング以外の機能はMeshPhongMaterialに準じる。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -327,7 +327,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -336,7 +336,7 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -344,15 +344,15 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ContourMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -367,11 +367,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ContourMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • Parameters

      • url: string
      • geo: BufferGeometry<NormalBufferAttributes>

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • Parameters

      • url: string
      • geo: BufferGeometry<NormalBufferAttributes>

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -382,13 +382,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, ContourMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/CrossGridMaterial.html b/api/classes/CrossGridMaterial.html index 0006d568..72938110 100644 --- a/api/classes/CrossGridMaterial.html +++ b/api/classes/CrossGridMaterial.html @@ -1,5 +1,5 @@ CrossGridMaterial | @masatomakino/threejs-shader-materials

    十字線を正方形グリッドの中心に描画するマテリアル。

    -

    Hierarchy

    • WavyGridMaterial
      • CrossGridMaterial

    Constructors

    Hierarchy

    • WavyGridMaterial
      • CrossGridMaterial

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -120,7 +120,7 @@
    false
     
    -
    animationID: number
    blendAlpha: number

    Represents the alpha value of the constant blend color. This property has only an effect when using custom +

    animationID: number
    blendAlpha: number

    Represents the alpha value of the constant blend color. This property has only an effect when using custom blending with ConstantAlphaFactor or OneMinusConstantAlphaFactor.

    0
     
    @@ -226,7 +226,7 @@
    isShaderMaterial: true

    Read-only flag to check if a given object is of type ShaderMaterial.

    This is a constant value

    true

    -
    lastAnimatedTimestamp: number
    lights: boolean
    false
    +
    lastAnimatedTimestamp: number
    lights: boolean
    false
     
    linewidth: number
    1
    @@ -267,7 +267,7 @@
     
    speed: number = -0.5

    波の速度 0.5にすると1の半分の速度になる。 マイナスを指定すると、波の進行方向が反転する。

    -
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -345,7 +345,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -354,11 +354,11 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get isAnimate(): boolean
    • 波アニメーションを行うか否か。

      -

      Returns boolean

    • set isAnimate(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • get isAnimate(): boolean
    • 波アニメーションを行うか否か。

      +

      Returns boolean

    • set isAnimate(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -366,24 +366,24 @@
    • get raisedBottom(): number
    • 明るさの底上げ

      -

      Returns number

    • set raisedBottom(value: number): void
    • Parameters

      • value: number

      Returns void

    • get raisedBottom(): number
    • 明るさの底上げ

      +

      Returns number

    • set raisedBottom(value: number): void
    • Parameters

      • value: number

      Returns void

    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    • get waveFrequency(): number
    • 波の振幅 +

      Parameters

      • value: number

      Returns void

    • get waveFrequency(): number
    • 波の振幅 1の場合、幅1ヘックス 0.5の場合、幅2ヘックスになる

      -

      Returns number

    • set waveFrequency(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Returns number

    • set waveFrequency(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, CrossGridMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -394,11 +394,11 @@

      Returns void

    • Checks if listener is added to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, CrossGridMaterial>

        The function that gets called when the event is fired.

        -

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 +

    Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -409,12 +409,12 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      +
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, CrossGridMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      +

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

        -

      Returns ShaderMaterialJSON

    +

    Returns ShaderMaterialJSON

    diff --git a/api/classes/ExpansionChunk.html b/api/classes/ExpansionChunk.html index adf53050..3cbea904 100644 --- a/api/classes/ExpansionChunk.html +++ b/api/classes/ExpansionChunk.html @@ -1,16 +1,16 @@ ExpansionChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/ExpansionDissolveMaterial.html b/api/classes/ExpansionDissolveMaterial.html index 96b31dfb..ec1573de 100644 --- a/api/classes/ExpansionDissolveMaterial.html +++ b/api/classes/ExpansionDissolveMaterial.html @@ -1,7 +1,7 @@ ExpansionDissolveMaterial | @masatomakino/threejs-shader-materials

    FBMノイズによるジオメトリの膨張でディゾルブを行うマテリアル。 爆発しながら消滅するような表現になる。 膨張の進行度合いはprogressで制御する。

    -

    Hierarchy (View Summary)

    Implements

    Constructors

    Hierarchy (View Summary)

    Implements

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -262,7 +262,7 @@
    side: Side

    Defines which of the face sides will be rendered - front, back or both. Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide.

    THREE.FrontSide

    -
    speed: number = -0.5
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    speed: number = -0.5
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -340,7 +340,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -348,8 +348,8 @@

      Parameters

      • value: number

      Returns void

      0
       
      -
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -357,20 +357,20 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ExpansionDissolveMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -382,11 +382,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ExpansionDissolveMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -397,13 +397,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, ExpansionDissolveMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/ExpansionMaterial.html b/api/classes/ExpansionMaterial.html index 97867e5a..b5b8b9f2 100644 --- a/api/classes/ExpansionMaterial.html +++ b/api/classes/ExpansionMaterial.html @@ -1,6 +1,6 @@ ExpansionMaterial | @masatomakino/threejs-shader-materials

    MeshPhongMaterialに準じるShaderMaterialクラス。

    Hierarchy (View Summary)

    Implements

    Constructors

    Hierarchy (View Summary)

    Implements

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -327,7 +327,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -336,7 +336,7 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -344,15 +344,15 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ExpansionMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -367,11 +367,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ExpansionMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -382,13 +382,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, ExpansionMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/ExpansionUniformChunk.html b/api/classes/ExpansionUniformChunk.html index 5e2a41b9..4cf358ae 100644 --- a/api/classes/ExpansionUniformChunk.html +++ b/api/classes/ExpansionUniformChunk.html @@ -1,16 +1,16 @@ ExpansionUniformChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/ExpansionVertexChunk.html b/api/classes/ExpansionVertexChunk.html index d12c6b5f..63bb883d 100644 --- a/api/classes/ExpansionVertexChunk.html +++ b/api/classes/ExpansionVertexChunk.html @@ -1,16 +1,16 @@ ExpansionVertexChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/FBMDissolveMaterial.html b/api/classes/FBMDissolveMaterial.html index 6c9dee69..4d207d27 100644 --- a/api/classes/FBMDissolveMaterial.html +++ b/api/classes/FBMDissolveMaterial.html @@ -1,6 +1,6 @@ FBMDissolveMaterial | @masatomakino/threejs-shader-materials

    MeshPhongMaterialに準じるShaderMaterialクラス。

    Hierarchy (View Summary)

    Implements

    Constructors

    Hierarchy (View Summary)

    Implements

    Constructors

    Properties

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -332,7 +332,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -340,8 +340,8 @@

      Parameters

      • value: number

      Returns void

      0
       
      -
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -349,15 +349,15 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, FBMDissolveMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -372,11 +372,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, FBMDissolveMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -387,13 +387,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, FBMDissolveMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/FBMFireMaterial.html b/api/classes/FBMFireMaterial.html index 362fef85..a88d568c 100644 --- a/api/classes/FBMFireMaterial.html +++ b/api/classes/FBMFireMaterial.html @@ -4,7 +4,7 @@
  • アニメーション再生/停止フラグisAnimate
  • のそれぞれの変数にアクセスできることを保証する。

    -

    Hierarchy (View Summary)

    Implements

    Constructors

    Hierarchy (View Summary)

    Implements

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -267,7 +267,7 @@
    speed: number = -0.5

    波の速度 0.5にすると1の半分の速度になる。 マイナスを指定すると、波の進行方向が反転する。

    -
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -345,7 +345,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -353,9 +353,9 @@

      Parameters

      • value: number

      Returns void

      0
       
      -
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -363,20 +363,20 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, FBMFireMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -388,11 +388,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, FBMFireMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -403,13 +403,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, FBMFireMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/GLSLChunk.html b/api/classes/GLSLChunk.html index 9684f3de..a1f3fc3b 100644 --- a/api/classes/GLSLChunk.html +++ b/api/classes/GLSLChunk.html @@ -1,16 +1,16 @@ GLSLChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する定数Defineを格納したオブジェクトを取得する。

      +

      Returns string

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/HalftoneGridMaterial.html b/api/classes/HalftoneGridMaterial.html index d03c76eb..1e13795b 100644 --- a/api/classes/HalftoneGridMaterial.html +++ b/api/classes/HalftoneGridMaterial.html @@ -1,5 +1,5 @@ HalftoneGridMaterial | @masatomakino/threejs-shader-materials

    MaskMapをハーフトーン分解するマテリアル

    -

    Hierarchy

    • WavyGridMaterial
      • HalftoneGridMaterial

    Constructors

    Hierarchy

    • WavyGridMaterial
      • HalftoneGridMaterial

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -119,7 +119,7 @@
    false
     
    -
    animationID: number
    blendAlpha: number

    Represents the alpha value of the constant blend color. This property has only an effect when using custom +

    animationID: number
    blendAlpha: number

    Represents the alpha value of the constant blend color. This property has only an effect when using custom blending with ConstantAlphaFactor or OneMinusConstantAlphaFactor.

    0
     
    @@ -225,7 +225,7 @@
    isShaderMaterial: true

    Read-only flag to check if a given object is of type ShaderMaterial.

    This is a constant value

    true

    -
    lastAnimatedTimestamp: number
    lights: boolean
    false
    +
    lastAnimatedTimestamp: number
    lights: boolean
    false
     
    linewidth: number
    1
    @@ -266,7 +266,7 @@
     
    speed: number = -0.5

    波の速度 0.5にすると1の半分の速度になる。 マイナスを指定すると、波の進行方向が反転する。

    -
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -344,7 +344,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -353,9 +353,9 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get isAnimate(): boolean
    • 波アニメーションを行うか否か。

      -

      Returns boolean

    • set isAnimate(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get isAnimate(): boolean
    • 波アニメーションを行うか否か。

      +

      Returns boolean

    • set isAnimate(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -363,24 +363,24 @@
    • get raisedBottom(): number
    • 明るさの底上げ

      -

      Returns number

    • set raisedBottom(value: number): void
    • Parameters

      • value: number

      Returns void

    • get raisedBottom(): number
    • 明るさの底上げ

      +

      Returns number

    • set raisedBottom(value: number): void
    • Parameters

      • value: number

      Returns void

    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    • get waveFrequency(): number
    • 波の振幅 +

      Parameters

      • value: number

      Returns void

    • get waveFrequency(): number
    • 波の振幅 1の場合、幅1ヘックス 0.5の場合、幅2ヘックスになる

      -

      Returns number

    • set waveFrequency(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Returns number

    • set waveFrequency(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, HalftoneGridMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -391,11 +391,11 @@

      Returns void

    • Checks if listener is added to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, HalftoneGridMaterial>

        The function that gets called when the event is fired.

        -

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 +

    Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -406,12 +406,12 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      +
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, HalftoneGridMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      +

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

        -

      Returns ShaderMaterialJSON

    +

    Returns ShaderMaterialJSON

    diff --git a/api/classes/HexDissolveMaterial.html b/api/classes/HexDissolveMaterial.html index a827d528..3e2a216e 100644 --- a/api/classes/HexDissolveMaterial.html +++ b/api/classes/HexDissolveMaterial.html @@ -1,5 +1,5 @@ HexDissolveMaterial | @masatomakino/threejs-shader-materials

    六角形グリッドマテリアル

    -

    Hierarchy

    • GridMaterial
      • HexDissolveMaterial

    Constructors

    Hierarchy

    • GridMaterial
      • HexDissolveMaterial

    Constructors

    Properties

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -335,7 +335,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -344,17 +344,17 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • get delay(): number
    • ディゾルブの開始ずれを指定する。 最後にディゾルブが始まるグリッドが、progressのどの値で開始されるかを意味する。 ex) delay = 0.8の時、最後のグリッドはprogress = 0.8 ~ 1.0でディゾルブする。

      -

      Returns number

    • set delay(value: number): void
    • Parameters

      • value: number

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get gridEmissiveWeight(): number
    • ディゾルブ中に表示されるグローラインの太さ 数値はグリッド線の太さの倍率、2.0ならグローアウトラインはディゾルブラインの倍の太さになる。

      注意 : isReversed = true かつgridEmissiveWeightが2.0以下の場合、グロー線が消えなくなる。 反転させる場合は、2.0以上を指定すること。

      -

      Returns number

    • set gridEmissiveWeight(value: number): void
    • Parameters

      • value: number

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -362,17 +362,17 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, HexDissolveMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -386,11 +386,11 @@

      Returns void

    • Checks if listener is added to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, HexDissolveMaterial>

        The function that gets called when the event is fired.

        -

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 +

    Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -401,13 +401,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      +
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, HexDissolveMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      +

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    • このMaterialに必要なuniformsを生成する。

      -

      Returns any

    +

    Returns any

    diff --git a/api/classes/HexGridChunk.html b/api/classes/HexGridChunk.html index 9cb3a384..7e577b1b 100644 --- a/api/classes/HexGridChunk.html +++ b/api/classes/HexGridChunk.html @@ -1,16 +1,16 @@ HexGridChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/HexGridMaterial.html b/api/classes/HexGridMaterial.html index fd236f7b..a8b4542b 100644 --- a/api/classes/HexGridMaterial.html +++ b/api/classes/HexGridMaterial.html @@ -1,5 +1,5 @@ HexGridMaterial | @masatomakino/threejs-shader-materials

    六角形グリッドマテリアル

    -

    Hierarchy

    • WavyGridMaterial
      • HexGridMaterial

    Constructors

    Hierarchy

    • WavyGridMaterial
      • HexGridMaterial

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -119,7 +119,7 @@
    false
     
    -
    animationID: number
    blendAlpha: number

    Represents the alpha value of the constant blend color. This property has only an effect when using custom +

    animationID: number
    blendAlpha: number

    Represents the alpha value of the constant blend color. This property has only an effect when using custom blending with ConstantAlphaFactor or OneMinusConstantAlphaFactor.

    0
     
    @@ -225,7 +225,7 @@
    isShaderMaterial: true

    Read-only flag to check if a given object is of type ShaderMaterial.

    This is a constant value

    true

    -
    lastAnimatedTimestamp: number
    lights: boolean
    false
    +
    lastAnimatedTimestamp: number
    lights: boolean
    false
     
    linewidth: number
    1
    @@ -266,7 +266,7 @@
     
    speed: number = -0.5

    波の速度 0.5にすると1の半分の速度になる。 マイナスを指定すると、波の進行方向が反転する。

    -
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -344,7 +344,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -353,11 +353,11 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get isAnimate(): boolean
    • 波アニメーションを行うか否か。

      -

      Returns boolean

    • set isAnimate(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns number

    • set gridWeight(value: number): void
    • Parameters

      • value: number

      Returns void

    • get isAnimate(): boolean
    • 波アニメーションを行うか否か。

      +

      Returns boolean

    • set isAnimate(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -365,24 +365,24 @@
    • get raisedBottom(): number
    • 明るさの底上げ

      -

      Returns number

    • set raisedBottom(value: number): void
    • Parameters

      • value: number

      Returns void

    • get raisedBottom(): number
    • 明るさの底上げ

      +

      Returns number

    • set raisedBottom(value: number): void
    • Parameters

      • value: number

      Returns void

    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    • get waveFrequency(): number
    • 波の振幅 +

      Parameters

      • value: number

      Returns void

    • get waveFrequency(): number
    • 波の振幅 1の場合、幅1ヘックス 0.5の場合、幅2ヘックスになる

      -

      Returns number

    • set waveFrequency(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Returns number

    • set waveFrequency(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, HexGridMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -393,11 +393,11 @@

      Returns void

    • Checks if listener is added to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, HexGridMaterial>

        The function that gets called when the event is fired.

        -

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 +

    Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -408,12 +408,12 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      +
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, HexGridMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      +

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

        -

      Returns ShaderMaterialJSON

    +

    Returns ShaderMaterialJSON

    diff --git a/api/classes/MapChunk.html b/api/classes/MapChunk.html index 2687d773..7e8e9195 100644 --- a/api/classes/MapChunk.html +++ b/api/classes/MapChunk.html @@ -1,6 +1,6 @@ MapChunk | @masatomakino/threejs-shader-materials

    マスクテクスチャを利用するShaderMaterial用Chunk。 マスクテクスチャがどのように描画に反映されるかは、各Materialのシェーダー実装による。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/MaskMapChunk.html b/api/classes/MaskMapChunk.html index 2e5fc402..6c9e1c6a 100644 --- a/api/classes/MaskMapChunk.html +++ b/api/classes/MaskMapChunk.html @@ -1,6 +1,6 @@ MaskMapChunk | @masatomakino/threejs-shader-materials

    マスクテクスチャを利用するShaderMaterial用Chunk。 マスクテクスチャがどのように描画に反映されるかは、各Materialのシェーダー実装による。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/MeshPhongChunk.html b/api/classes/MeshPhongChunk.html index 817f4bf5..ca75ca4e 100644 --- a/api/classes/MeshPhongChunk.html +++ b/api/classes/MeshPhongChunk.html @@ -1,15 +1,15 @@ MeshPhongChunk | @masatomakino/threejs-shader-materials

    MeshPhongMaterialと同等の機能を備えたShaderMaterialを実装するために必要なGLSLコードを格納したクラス。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/OuterGlowMaterial.html b/api/classes/OuterGlowMaterial.html index a0595cf2..93c81c23 100644 --- a/api/classes/OuterGlowMaterial.html +++ b/api/classes/OuterGlowMaterial.html @@ -1,6 +1,6 @@ OuterGlowMaterial | @masatomakino/threejs-shader-materials

    モデルの外周を発光させるマテリアル。 縁の発光と膨張を掛け合わせて、元のモデルの周辺を発光させる。

    -

    Hierarchy (View Summary)

    Implements

    Constructors

    Hierarchy (View Summary)

    Implements

    Constructors

    Properties

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -333,7 +333,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -342,7 +342,7 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -350,15 +350,15 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, OuterGlowMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -373,11 +373,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, OuterGlowMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -388,13 +388,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, OuterGlowMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/RepeatPatternChunk.html b/api/classes/RepeatPatternChunk.html index 42b1f624..2873e1e9 100644 --- a/api/classes/RepeatPatternChunk.html +++ b/api/classes/RepeatPatternChunk.html @@ -1,16 +1,16 @@ RepeatPatternChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/ReversibleChunk.html b/api/classes/ReversibleChunk.html index 795d3242..2ee7fe3a 100644 --- a/api/classes/ReversibleChunk.html +++ b/api/classes/ReversibleChunk.html @@ -1,16 +1,16 @@ ReversibleChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/RimBasicMaterial.html b/api/classes/RimBasicMaterial.html index 574c41df..67c2d99a 100644 --- a/api/classes/RimBasicMaterial.html +++ b/api/classes/RimBasicMaterial.html @@ -1,5 +1,5 @@ RimBasicMaterial | @masatomakino/threejs-shader-materials

    MeshBasicMaterialに準じたShaderMaterial

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -335,12 +335,12 @@

    Parameters

    • value: number

    Returns void

    0
     
    -
    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      -
    • get uniformOpacity(): number
    • Returns number

    • set uniformOpacity(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, RimBasicMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -354,7 +354,7 @@

      Returns void

    • Checks if listener is added to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, RimBasicMaterial>

        The function that gets called when the event is fired.

        -

      Returns boolean

    • An optional callback that is executed immediately before the shader program is compiled. +

    Returns boolean

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -373,4 +373,4 @@

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +
    diff --git a/api/classes/RimEffectMaterial.html b/api/classes/RimEffectMaterial.html index 7a7a1255..fee1c07c 100644 --- a/api/classes/RimEffectMaterial.html +++ b/api/classes/RimEffectMaterial.html @@ -1,6 +1,6 @@ RimEffectMaterial | @masatomakino/threejs-shader-materials

    MeshPhongMaterialに準じるShaderMaterialクラス。

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -332,7 +332,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -341,7 +341,7 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -349,15 +349,15 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, RimEffectMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -372,11 +372,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, RimEffectMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -387,13 +387,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, RimEffectMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/ShaderBasicMaterial.html b/api/classes/ShaderBasicMaterial.html index cbccb892..2ad66c0f 100644 --- a/api/classes/ShaderBasicMaterial.html +++ b/api/classes/ShaderBasicMaterial.html @@ -1,5 +1,5 @@ ShaderBasicMaterial | @masatomakino/threejs-shader-materials

    MeshBasicMaterialに準じたShaderMaterial

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    • Parameters

      • vertexShader: string
      • fragmentShader: string
      • Optionalparameters: ShaderMaterialParameters

      Returns ShaderBasicMaterial

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    • Parameters

      • vertexShader: string
      • fragmentShader: string
      • Optionalparameters: ShaderMaterialParameters

      Returns ShaderBasicMaterial

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -328,12 +328,12 @@

    Parameters

    • value: number

    Returns void

    0
     
    -
    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      -

    Methods

    • Adds a listener to an event type.

      +

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ShaderBasicMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -347,7 +347,7 @@

      Returns void

    • Checks if listener is added to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ShaderBasicMaterial>

        The function that gets called when the event is fired.

        -

      Returns boolean

    • An optional callback that is executed immediately before the shader program is compiled. +

    Returns boolean

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -366,4 +366,4 @@

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +
    diff --git a/api/classes/ShaderLineMaterial.html b/api/classes/ShaderLineMaterial.html index 1f36681c..2aa7fd2d 100644 --- a/api/classes/ShaderLineMaterial.html +++ b/api/classes/ShaderLineMaterial.html @@ -1,4 +1,4 @@ -ShaderLineMaterial | @masatomakino/threejs-shader-materials

    Hierarchy

    • ShaderMaterial
      • ShaderLineMaterial

    Constructors

    constructor +ShaderLineMaterial | @masatomakino/threejs-shader-materials

    Hierarchy

    • ShaderMaterial
      • ShaderLineMaterial

    Constructors

    • Parameters

      • vertexShader: string
      • fragmentShader: string
      • Optionalparameters: ShaderMaterialParameters

      Returns ShaderLineMaterial

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    • Parameters

      • vertexShader: string
      • fragmentShader: string
      • Optionalparameters: ShaderMaterialParameters

      Returns ShaderLineMaterial

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -328,12 +328,12 @@

    Parameters

    • value: number

    Returns void

    0
     
    -
    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      -

    Methods

    • Adds a listener to an event type.

      +

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ShaderLineMaterial>

        The function that gets called when the event is fired.

      Returns void

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -327,7 +327,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -336,7 +336,7 @@
    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -344,15 +344,15 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ShaderPhongMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -367,11 +367,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ShaderPhongMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 +

      Returns void

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -382,13 +382,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, ShaderPhongMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/ShaderSpriteMaterial.html b/api/classes/ShaderSpriteMaterial.html index 7c664792..2eef4546 100644 --- a/api/classes/ShaderSpriteMaterial.html +++ b/api/classes/ShaderSpriteMaterial.html @@ -1,4 +1,4 @@ -ShaderSpriteMaterial | @masatomakino/threejs-shader-materials

    Hierarchy (View Summary)

    Constructors

    constructor +ShaderSpriteMaterial | @masatomakino/threejs-shader-materials

    Hierarchy (View Summary)

    Constructors

    Properties

    Constructors

    • コンストラクタ。

      -

      Parameters

      • vertexShader: string
      • fragmentShader: string
      • Optionalparameters: ShaderMaterialParameters

      Returns ShaderSpriteMaterial

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Parameters

    • vertexShader: string
    • fragmentShader: string
    • Optionalparameters: ShaderMaterialParameters

    Returns ShaderSpriteMaterial

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -212,7 +212,7 @@
    isSpriteMaterial: true

    Read-only flag to check if a given object is of type SpriteMaterial.

    This is a constant value

    true

    -
    lights: boolean
    false
    +
    lights: boolean
    false
     
    linewidth: number
    1
    @@ -253,7 +253,7 @@
     
    sizeAttenuation: boolean = true
    true
     
    -
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -331,7 +331,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -339,8 +339,8 @@

      Parameters

      • value: number

      Returns void

      0
       
      -
    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -348,14 +348,14 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ShaderSpriteMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -370,11 +370,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, ShaderSpriteMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 +

      Returns void

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). diff --git a/api/classes/SkyCloudMaterial.html b/api/classes/SkyCloudMaterial.html index 0bf3ab72..04aab9e5 100644 --- a/api/classes/SkyCloudMaterial.html +++ b/api/classes/SkyCloudMaterial.html @@ -4,7 +4,7 @@

    • アニメーション再生/停止フラグisAnimate

    のそれぞれの変数にアクセスできることを保証する。

    -

    Hierarchy (View Summary)

    Implements

    Constructors

    Hierarchy (View Summary)

    Implements

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -266,7 +266,7 @@
    speed: number = -0.02

    波の速度 0.5にすると1の半分の速度になる。 マイナスを指定すると、波の進行方向が反転する。

    -
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -344,7 +344,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -352,8 +352,8 @@

      Parameters

      • value: number

      Returns void

      0
       
      -
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -361,20 +361,20 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SkyCloudMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -386,11 +386,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SkyCloudMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -401,13 +401,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, SkyCloudMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/SolidClippingMaterial.html b/api/classes/SolidClippingMaterial.html index 4880ce2f..b4767676 100644 --- a/api/classes/SolidClippingMaterial.html +++ b/api/classes/SolidClippingMaterial.html @@ -1,6 +1,6 @@ SolidClippingMaterial | @masatomakino/threejs-shader-materials

    MeshPhongMaterialに準じるShaderMaterialクラス。

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -327,7 +327,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -336,7 +336,7 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -344,15 +344,15 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SolidClippingMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -367,11 +367,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SolidClippingMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -382,13 +382,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, SolidClippingMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/SpriteChunk.html b/api/classes/SpriteChunk.html index cb2f2208..38adadc6 100644 --- a/api/classes/SpriteChunk.html +++ b/api/classes/SpriteChunk.html @@ -1,15 +1,15 @@ SpriteChunk | @masatomakino/threejs-shader-materials

    SpriteMaterialと同等の機能を備えたShaderMaterialを実装するために必要なGLSLコードを格納したクラス。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/SpriteCloudMaterial.html b/api/classes/SpriteCloudMaterial.html index 147d6f57..92eed8ce 100644 --- a/api/classes/SpriteCloudMaterial.html +++ b/api/classes/SpriteCloudMaterial.html @@ -1,4 +1,4 @@ -SpriteCloudMaterial | @masatomakino/threejs-shader-materials

    Hierarchy (View Summary)

    Constructors

    constructor +SpriteCloudMaterial | @masatomakino/threejs-shader-materials

    Hierarchy (View Summary)

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -217,7 +217,7 @@
    isSpriteMaterial: true

    Read-only flag to check if a given object is of type SpriteMaterial.

    This is a constant value

    true

    -
    lights: boolean
    false
    +
    lights: boolean
    false
     
    linewidth: number
    1
    @@ -258,7 +258,7 @@
     
    sizeAttenuation: boolean = true
    true
     
    -
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -336,7 +336,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -344,8 +344,8 @@

      Parameters

      • value: number

      Returns void

      0
       
      -
    • get color(): Color
    • Spriteマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • get color(): Color
    • Spriteマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -353,14 +353,14 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SpriteCloudMaterial>

        The function that gets called when the event is fired.

      Returns void

    • Return a new material with the same parameters as this material.

      @@ -375,11 +375,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SpriteCloudMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). diff --git a/api/classes/SquareGridMaterial.html b/api/classes/SquareGridMaterial.html index 47a4d40d..26ec5ea3 100644 --- a/api/classes/SquareGridMaterial.html +++ b/api/classes/SquareGridMaterial.html @@ -1,5 +1,5 @@ SquareGridMaterial | @masatomakino/threejs-shader-materials

      四角形グリッドマテリアル

      -

      Hierarchy

      • WavyGridMaterial
        • SquareGridMaterial

      Constructors

      Hierarchy

      • WavyGridMaterial
        • SquareGridMaterial

      Constructors

      Properties

      _opacity: number = 1.0
      alphaHash: boolean

      Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

      Constructors

      Properties

      _opacity: number = 1.0
      alphaHash: boolean

      Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

      @@ -119,7 +119,7 @@
      false
       
      -
      animationID: number
      blendAlpha: number

      Represents the alpha value of the constant blend color. This property has only an effect when using custom +

    animationID: number
    blendAlpha: number

    Represents the alpha value of the constant blend color. This property has only an effect when using custom blending with ConstantAlphaFactor or OneMinusConstantAlphaFactor.

    0
     
    @@ -225,7 +225,7 @@
    isShaderMaterial: true

    Read-only flag to check if a given object is of type ShaderMaterial.

    This is a constant value

    true

    -
    lastAnimatedTimestamp: number
    lights: boolean
    false
    +
    lastAnimatedTimestamp: number
    lights: boolean
    false
     
    linewidth: number
    1
    @@ -266,7 +266,7 @@
     
    speed: number = -0.5

    波の速度 0.5にすると1の半分の速度になる。 マイナスを指定すると、波の進行方向が反転する。

    -
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -344,7 +344,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -353,11 +353,11 @@
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get division(): number
    • Returns number

    • set division(value: number): void
    • Parameters

      • value: number

      Returns void

    • get divisionScaleX(): number
    • Returns number

    • set divisionScaleX(value: number): void
    • Parameters

      • value: number

      Returns void

    • get isAnimate(): boolean
    • 波アニメーションを行うか否か。

      -

      Returns boolean

    • set isAnimate(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • get isAnimate(): boolean
    • 波アニメーションを行うか否か。

      +

      Returns boolean

    • set isAnimate(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get isReversed(): boolean
    • Returns boolean

    • set isReversed(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get maskTexture(): Texture
    • Returns Texture

    • set maskTexture(val: Texture): void
    • Parameters

      • val: Texture

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -365,24 +365,24 @@
    • get raisedBottom(): number
    • 明るさの底上げ

      -

      Returns number

    • set raisedBottom(value: number): void
    • Parameters

      • value: number

      Returns void

    • get raisedBottom(): number
    • 明るさの底上げ

      +

      Returns number

    • set raisedBottom(value: number): void
    • Parameters

      • value: number

      Returns void

    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    • get waveFrequency(): number
    • 波の振幅 +

      Parameters

      • value: number

      Returns void

    • get waveFrequency(): number
    • 波の振幅 1の場合、幅1ヘックス 0.5の場合、幅2ヘックスになる

      -

      Returns number

    • set waveFrequency(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Returns number

    • set waveFrequency(value: number): void
    • Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SquareGridMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -393,11 +393,11 @@

      Returns void

    • Checks if listener is added to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SquareGridMaterial>

        The function that gets called when the event is fired.

        -

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 +

    Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -408,12 +408,12 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      +
    • Parameters

      • value: Texture

      Returns void

    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, SquareGridMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      +

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

        -

      Returns ShaderMaterialJSON

    +

    Returns ShaderMaterialJSON

    diff --git a/api/classes/SurfaceNormalChunk.html b/api/classes/SurfaceNormalChunk.html index 73c88a36..2b43da6a 100644 --- a/api/classes/SurfaceNormalChunk.html +++ b/api/classes/SurfaceNormalChunk.html @@ -1,16 +1,16 @@ SurfaceNormalChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/SurfaceNormalVaryingChunk.html b/api/classes/SurfaceNormalVaryingChunk.html index 8777cdfe..9d9dde28 100644 --- a/api/classes/SurfaceNormalVaryingChunk.html +++ b/api/classes/SurfaceNormalVaryingChunk.html @@ -1,16 +1,16 @@ SurfaceNormalVaryingChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/SurfaceNormalVertexChunk.html b/api/classes/SurfaceNormalVertexChunk.html index 73e36ce3..1e88a28d 100644 --- a/api/classes/SurfaceNormalVertexChunk.html +++ b/api/classes/SurfaceNormalVertexChunk.html @@ -1,16 +1,16 @@ SurfaceNormalVertexChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/SwirlMaterial.html b/api/classes/SwirlMaterial.html index 22b1d6b1..d66fc43e 100644 --- a/api/classes/SwirlMaterial.html +++ b/api/classes/SwirlMaterial.html @@ -4,7 +4,7 @@
  • アニメーション再生/停止フラグisAnimate
  • のそれぞれの変数にアクセスできることを保証する。

    -

    Hierarchy (View Summary)

    Implements

    Constructors

    Hierarchy (View Summary)

    Implements

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material +

    Constructors

    Properties

    _opacity: number = 1.0
    alphaHash: boolean

    Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the resulting noise.

    @@ -261,7 +261,7 @@
    side: Side

    Defines which of the face sides will be rendered - front, back or both. Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide.

    THREE.FrontSide

    -
    speed: number = -0.02
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    +
    speed: number = -0.02
    stencilFail: StencilOp

    Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

    THREE.KeepStencilOp
     
    @@ -339,7 +339,7 @@
    wireframeLinewidth: number
    1
     
    -

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      +

    Accessors

    • get alphaTest(): number
    • Gets the alpha value to be used when running an alpha test. Default is 0.

      Returns number

      0
       
      @@ -347,8 +347,8 @@

      Parameters

      • value: number

      Returns void

      0
       
      -
    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      -

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. +

    • get color(): Color
    • MeshPhongマテリアルと互換性を持つために、colorプロパティはdiffuseへ代入される。

      +

      Returns Color

    • set color(value: Color): void
    • Parameters

      • value: Color

      Returns void

    • set needsUpdate(value: boolean): void
    • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.

      Parameters

      • value: boolean

      Returns void

      false
       
      @@ -356,20 +356,20 @@
    • get uniformOpacity(): number
    • 透明度

      +

      Returns number

    • set uniformOpacity(value: number): void
    • 透明度 opacityは基底クラスのMaterialのコンストラクタ内で明示的に1.0が代入される。 この段階でuniformsはundefinedなので、そのままでは初期化できない。 このsetterでは受け取った値をprivate変数に保存して、初期化後にuniformsに再代入する。

      -

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      +

      Parameters

      • value: number

      Returns void

    Methods

    • Adds a listener to an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SwirlMaterial>

        The function that gets called when the event is fired.

      Returns void

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    • Return a new material with the same parameters as this material.

      +

    Returns void

    • Return a new material with the same parameters as this material.

      Returns this

    • Copy the parameters from the passed material into this material.

      Parameters

      • material: Material

      Returns this

    • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

      Returns string

    • Fire an event type.

      @@ -381,11 +381,11 @@

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{ dispose: {} }[T], T, SwirlMaterial>

        The function that gets called when the event is fired.

      Returns boolean

    • 1.オプションで指定されなかったパラメーター値を補完する。 2.uniformsに代入する必要のあるパラメーターを明示的に代入する。

      -

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. +

      Parameters

      • Optionalparameters: ShaderMaterialParameters

      Returns void

    • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). @@ -396,13 +396,13 @@ Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in WebGLRenderer (not WebGPURenderer).

      Parameters

      • renderer: WebGLRenderer
      • scene: Scene
      • camera: Camera
      • geometry: BufferGeometry<NormalBufferAttributes>
      • object: Object3D<Object3DEventMap>
      • group: Group<Object3DEventMap>

      Returns void

    • Parameters

      • object: Object3D<Object3DEventMap>
      • parameters: WebGLProgramParametersWithUniforms
      • renderer: WebGLRenderer

      Returns void

      onBuild() has been removed.

      -
    • Removes a listener from an event type.

      +
    • Removes a listener from an event type.

      Type Parameters

      • T extends "dispose"

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{ dispose: {} }[T], T, SwirlMaterial>

        The listener function that gets removed.

      Returns void

    • Sets the properties based on the values.

      -

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • 発光状態のために、マテリアルの設定をまとめて変更する。 +

      Parameters

      • parameters: ShaderMaterialParameters

      Returns void

    • Convert the material to three.js JSON format.

      Parameters

      • Optionalmeta: JSONMeta

        Object containing metadata such as textures or images for the material.

      Returns ShaderMaterialJSON

    +

    Returns any

    diff --git a/api/classes/TilingFBMChunk.html b/api/classes/TilingFBMChunk.html index 42035f4a..29247701 100644 --- a/api/classes/TilingFBMChunk.html +++ b/api/classes/TilingFBMChunk.html @@ -1,16 +1,16 @@ TilingFBMChunk | @masatomakino/threejs-shader-materials

    ShaderChunkに登録を行うGLSLのコード片を格納するクラス。 GLSLコードの共有化を目的とする。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    +
    diff --git a/api/classes/WavyAnimationChunk.html b/api/classes/WavyAnimationChunk.html index b681799b..4bc75cb3 100644 --- a/api/classes/WavyAnimationChunk.html +++ b/api/classes/WavyAnimationChunk.html @@ -1,18 +1,18 @@ WavyAnimationChunk | @masatomakino/threejs-shader-materials

    IWaveAnimatableインターフェースで定義されたアニメーションを実装するためのGLSLチャンク。 実行にはグリッドid値が必要。idはvec2。 結果はdiffuseColor.aに反映される。

    -

    Hierarchy (View Summary)

    Constructors

    Hierarchy (View Summary)

    Constructors

    Methods

    • Chunkに関連する定数Defineを格納したオブジェクトを取得する。

      +

    Constructors

    Methods

    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      +
    • Chunkに関連する共有変数Uniformsを格納したオブジェクトを取得する。

      Returns {
          direction: { value: Directions };
          isAnimate: { value: boolean };
          raisedBottom: { value: number };
          time: { value: number };
          waveFrequency: { value: number };
          wavePow: { value: number };
      }

    +
    diff --git a/api/enums/Directions.html b/api/enums/Directions.html index d29b11ce..620b6930 100644 --- a/api/enums/Directions.html +++ b/api/enums/Directions.html @@ -1,6 +1,6 @@ Directions | @masatomakino/threejs-shader-materials

    Wavyアニメーションの波及方向を示すenum。

    -

    Enumeration Members

    Enumeration Members

    Enumeration Members

    horizontal: 3
    radial: 5

    id値(0,0)を中心に同心円状に波及する。

    -
    vertical: 4
    +

    Enumeration Members

    horizontal: 3
    radial: 5

    id値(0,0)を中心に同心円状に波及する。

    +
    vertical: 4
    diff --git a/api/interfaces/IAnimatable.html b/api/interfaces/IAnimatable.html index 6ef673e1..645a62a5 100644 --- a/api/interfaces/IAnimatable.html +++ b/api/interfaces/IAnimatable.html @@ -4,10 +4,10 @@
  • アニメーション再生/停止フラグisAnimate
  • のそれぞれの変数にアクセスできることを保証する。

    -
    interface IAnimatable {
        isAnimate: boolean;
        speed: number;
        uniforms: { [uniform: string]: IUniform<any> };
        addTime(delta: number): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Properties

    interface IAnimatable {
        isAnimate: boolean;
        speed: number;
        uniforms: { [uniform: string]: IUniform<any> };
        addTime(delta: number): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Properties

    Methods

    Properties

    isAnimate: boolean
    speed: number
    uniforms: { [uniform: string]: IUniform<any> }

    Methods

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      +

    Properties

    isAnimate: boolean
    speed: number
    uniforms: { [uniform: string]: IUniform<any> }

    Methods

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    +

    Returns void

    diff --git a/api/interfaces/IExpandable.html b/api/interfaces/IExpandable.html index 325bf7f3..e5a8cd6f 100644 --- a/api/interfaces/IExpandable.html +++ b/api/interfaces/IExpandable.html @@ -1,3 +1,3 @@ -IExpandable | @masatomakino/threejs-shader-materials
    interface IExpandable {
        expansionStrength: number;
        uniforms: { [uniform: string]: IUniform<any> };
    }

    Implemented by

    Properties

    expansionStrength +IExpandable | @masatomakino/threejs-shader-materials
    interface IExpandable {
        expansionStrength: number;
        uniforms: { [uniform: string]: IUniform<any> };
    }

    Implemented by

    Properties

    expansionStrength: number
    uniforms: { [uniform: string]: IUniform<any> }
    +

    Properties

    expansionStrength: number
    uniforms: { [uniform: string]: IUniform<any> }
    diff --git a/api/interfaces/IMap.html b/api/interfaces/IMap.html index 588442bf..469a3a62 100644 --- a/api/interfaces/IMap.html +++ b/api/interfaces/IMap.html @@ -3,6 +3,6 @@
  • maskTexture変数
  • にアクセス可能なことを保証する。

    -
    interface IMap {
        map: Texture;
        uniforms: { [uniform: string]: IUniform<any> };
    }

    Implemented by

    Properties

    map +
    interface IMap {
        map: Texture;
        uniforms: { [uniform: string]: IUniform<any> };
    }

    Implemented by

    Properties

    Properties

    map: Texture
    uniforms: { [uniform: string]: IUniform<any> }
    +

    Properties

    map: Texture
    uniforms: { [uniform: string]: IUniform<any> }
    diff --git a/api/interfaces/IMaskable.html b/api/interfaces/IMaskable.html index c8fd9074..b02b4da5 100644 --- a/api/interfaces/IMaskable.html +++ b/api/interfaces/IMaskable.html @@ -3,8 +3,8 @@
  • maskTexture変数
  • にアクセス可能なことを保証する。

    -
    interface IMaskable {
        division: number;
        divisionScaleX: number;
        maskTexture: Texture;
        uniforms: { [uniform: string]: IUniform<any> };
    }

    Hierarchy (View Summary)

    Properties

    interface IMaskable {
        division: number;
        divisionScaleX: number;
        maskTexture: Texture;
        uniforms: { [uniform: string]: IUniform<any> };
    }

    Hierarchy (View Summary)

    Properties

    division: number
    divisionScaleX: number
    maskTexture: Texture
    uniforms: { [uniform: string]: IUniform<any> }
    +

    Properties

    division: number
    divisionScaleX: number
    maskTexture: Texture
    uniforms: { [uniform: string]: IUniform<any> }
    diff --git a/api/interfaces/IRepeatablePattern.html b/api/interfaces/IRepeatablePattern.html index 3c850b57..b0387b18 100644 --- a/api/interfaces/IRepeatablePattern.html +++ b/api/interfaces/IRepeatablePattern.html @@ -3,6 +3,6 @@
  • グリッドの分割数
  • にアクセス可能なことを保証する。

    -
    interface IRepeatablePattern {
        division: number;
        divisionScaleX: number;
    }

    Hierarchy (View Summary)

    Properties

    interface IRepeatablePattern {
        division: number;
        divisionScaleX: number;
    }

    Hierarchy (View Summary)

    Properties

    division: number
    divisionScaleX: number
    +

    Properties

    division: number
    divisionScaleX: number
    diff --git a/api/interfaces/IReversible.html b/api/interfaces/IReversible.html index cc328dc6..094ef3e5 100644 --- a/api/interfaces/IReversible.html +++ b/api/interfaces/IReversible.html @@ -1,4 +1,4 @@ IReversible | @masatomakino/threejs-shader-materials

    反転可能なマテリアル用のインターフェース。 反転フラグにアクセス可能なことを保証する。

    -
    interface IReversible {
        isReversed: boolean;
    }

    Properties

    Properties

    isReversed: boolean
    +
    interface IReversible {
        isReversed: boolean;
    }

    Properties

    Properties

    isReversed: boolean
    diff --git a/api/interfaces/ITiledFBM.html b/api/interfaces/ITiledFBM.html index dcdcd737..b8b409e3 100644 --- a/api/interfaces/ITiledFBM.html +++ b/api/interfaces/ITiledFBM.html @@ -1,4 +1,4 @@ -ITiledFBM | @masatomakino/threejs-shader-materials
    interface ITiledFBM {
        amp: number;
        hashLoop: number;
        tiles: number;
    }

    Implemented by

    Properties

    amp +ITiledFBM | @masatomakino/threejs-shader-materials
    interface ITiledFBM {
        amp: number;
        hashLoop: number;
        tiles: number;
    }

    Implemented by

    Properties

    Properties

    amp: number
    hashLoop: number
    tiles: number
    +

    Properties

    amp: number
    hashLoop: number
    tiles: number
    diff --git a/api/interfaces/IWavyAnimatable.html b/api/interfaces/IWavyAnimatable.html index bb3fbd01..96b07103 100644 --- a/api/interfaces/IWavyAnimatable.html +++ b/api/interfaces/IWavyAnimatable.html @@ -5,7 +5,7 @@
  • 波及する方向
  • にアクセスできることを保証する。

    -
    interface IWavyAnimatable {
        direction: Directions;
        isAnimate: boolean;
        raisedBottom: number;
        speed: number;
        uniforms: { [uniform: string]: IUniform<any> };
        waveFrequency: number;
        wavePow: number;
        addTime(delta: number): void;
    }

    Hierarchy (View Summary)

    Properties

    interface IWavyAnimatable {
        direction: Directions;
        isAnimate: boolean;
        raisedBottom: number;
        speed: number;
        uniforms: { [uniform: string]: IUniform<any> };
        waveFrequency: number;
        wavePow: number;
        addTime(delta: number): void;
    }

    Hierarchy (View Summary)

    Properties

    Methods

    Properties

    direction: Directions
    isAnimate: boolean
    raisedBottom: number
    speed: number
    uniforms: { [uniform: string]: IUniform<any> }
    waveFrequency: number
    wavePow: number

    Methods

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      +

    Properties

    direction: Directions
    isAnimate: boolean
    raisedBottom: number
    speed: number
    uniforms: { [uniform: string]: IUniform<any> }
    waveFrequency: number
    wavePow: number

    Methods

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

        -

      Returns void

    +

    Returns void