LambertMaterial

LambertMaterial class

Lambertシェーディングモデル用のマテリアル

メソッド

constructor

名前説明
constructor()LambertMaterial クラスの新しいインスタンスを初期化します。

Result:


constructor_overload

名前説明
constructor_overload(name)LambertMaterial クラスの新しいインスタンスを初期化します。

Parameters:

名前説明
name文字列名前

Result:


getEmissiveColor

名前説明
getEmissiveColor()放射色を取得または設定します

Result:


setEmissiveColor

名前説明
setEmissiveColor(value)放射色を取得または設定します

Result:


getAmbientColor

名前説明
getAmbientColor()環境光の色を取得または設定します。例: var mat = new LambertMaterial(); mat.AmbientColor = new Vector3(1, 1, 1); ambient.

Result:


setAmbientColor

名前説明
setAmbientColor(value)環境光の色を取得または設定します。例: var mat = new LambertMaterial(); mat.AmbientColor = new Vector3(1, 1, 1); ambient.

Result:


getDiffuseColor

名前説明
getDiffuseColor()拡散色を取得または設定します。例: var mat = new LambertMaterial(); mat.DiffuseColor = new Vector3(1, 0, 0); 拡散色。

Result:


setDiffuseColor

名前説明
setDiffuseColor(value)拡散色を取得または設定します。例: var mat = new LambertMaterial(); mat.DiffuseColor = new Vector3(1, 0, 0); 拡散色。

Result:


getTransparentColor

名前説明
getTransparentColor()透過色を取得または設定します。例: var mat = new LambertMaterial(); mat.TransparentColor = new Vector3(0.3, 0.5, 0.2); 透過色。

Result:


setTransparentColor

名前説明
setTransparentColor(value)透過色を取得または設定します。例: var mat = new LambertMaterial(); mat.TransparentColor = new Vector3(0.3, 0.5, 0.2); 透過色。

Result:


getTransparency

名前説明
getTransparency()透明度係数を取得または設定します。係数は0(0%、完全に不透明)から1(100%、完全に透明)の範囲である必要があります。無効な係数値はクランプされます。例: var mat = new LambertMaterial(); mat.Transparency = 0.3; 透明度係数。

Result:


setTransparency

名前説明
setTransparency(value)透明度係数を取得または設定します。係数は0(0%、完全に不透明)から1(100%、完全に透明)の範囲である必要があります。無効な係数値はクランプされます。例: var mat = new LambertMaterial(); mat.Transparency = 0.3; 透明度係数。

Result:


getName

名前説明
getName()名前を取得または設定します。名前。

Result:


setName

名前説明
setName(value)名前を取得または設定します。名前。

Result:


getProperties

名前説明
getProperties()すべてのプロパティのコレクションを取得します。

Result:


getTexture

名前説明
getTexture(slotName)指定されたスロットからテクスチャを取得します。スロットはマテリアルのプロパティ名またはシェーダーのパラメータ名にすることができます。

Parameters:

名前説明
slotName文字列スロット名。

Result: TextureBase


setTexture

名前説明
setTexture(slotName, texture)テクスチャを指定されたスロットに設定します。

Parameters:

名前説明
slotName文字列スロット名。
textureTextureBaseテクスチャ。

Result: TextureBase


toString

名前説明
toString()オブジェクトを文字列にフォーマットします

Result: 文字列


removeProperty

名前説明
removeProperty(property)動的プロパティを削除します。

Parameters:

名前説明
propertyProperty削除するプロパティはどれですか

Result: boolean


removeProperty

名前説明
removeProperty(property)名前で識別された指定されたプロパティを削除します。

Parameters:

名前説明
propert文字列null

Result: boolean


getProperty

名前説明
getProperty(property)指定されたプロパティの値を取得します

Parameters:

名前説明
property文字列プロパティ名

Result: オブジェクト


setProperty

名前説明
setProperty(property, value)指定されたプロパティの値を設定します

Parameters:

名前説明
property文字列プロパティ名
オブジェクトプロパティの値

Result: オブジェクト


findProperty

名前説明
findProperty(propertyName)プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty によって作成)またはネイティブプロパティ(名前で識別)になる可能性があります

Parameters:

名前説明
propertyName文字列プロパティ名。

Result: Property


iterator

名前説明
iterator()内部使用のために予約されています。

Result: Property