PhongMaterial

PhongMaterial class

Blinn-Phongシェーディングモデル用マテリアル。

メソッド

constructor

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

Result:


constructor_overload

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

Parameters:

名前説明
name文字列名前

Result:


getSpecularColor

名前説明
getSpecularColor()鏡面色を取得または設定します。

Result:


setSpecularColor

名前説明
setSpecularColor(value)鏡面色を取得または設定します。

Result:


getSpecularFactor

名前説明
getSpecularFactor()鏡面係数を取得または設定します。鏡面の式: SpecularColor SpecularFactor (N dot H) ^ Shininess

Result:


setSpecularFactor

名前説明
setSpecularFactor(value)鏡面係数を取得または設定します。鏡面の式: SpecularColor SpecularFactor (N dot H) ^ Shininess

Result:


getShininess

名前説明
getShininess()光沢度を取得または設定します。これにより鏡面ハイライトのサイズが制御されます。鏡面の式: SpecularColor SpecularFactor (N dot H) ^ Shininess 光沢度。

Result:


setShininess

名前説明
setShininess(value)光沢度を取得または設定します。これにより鏡面ハイライトのサイズが制御されます。鏡面の式: SpecularColor SpecularFactor (N dot H) ^ Shininess 光沢度。

Result:


getReflectionColor

名前説明
getReflectionColor()反射色を取得または設定します。反射。

Result:


setReflectionColor

名前説明
setReflectionColor(value)反射色を取得または設定します。反射。

Result:


getReflectionFactor

名前説明
getReflectionFactor()反射色の減衰を取得または設定します。反射係数。

Result:


setReflectionFactor

名前説明
setReflectionFactor(value)反射色の減衰を取得または設定します。反射係数。

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