Category:LSL Alpha/ja

From Second Life Wiki
< Category:LSL Alpha
Revision as of 09:09, 14 December 2015 by Mizu Melody (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

"アルファ" とはどのくらいオブジェクト (あるいはこの場合プリム) が不透明あるいは透明であるかを示すものです。Second Life ではアルファ設定値はスクリプトの llSetAlpha 関数で設定されます。この関数には float 値を渡します。0.0 を渡した場合、オブジェクト/プリムは完全に透明になります。1.0 を渡した場合、オブジェクトは完全に不透明になります。

しばしば、住人 は透明な テクスチャ のことをアルファテクスチャと呼びます。 これをこのプリムプロパティと混同してはいけません。 そうならないように、llSetTextureTEXTURE_TRANSPARENT を参照してください。

編集モード

編集モードでは、アルファ値は 0% から 100% のパーセント値で表現されます。0% はスクリプトで llSetAlpha(1.0) とするのと同等で、100% は llSetAlpha(0.0) と同等です。

関数 LSL 例 & 説明
llSetAlpha
llSetAlpha(1.0, ALL_SIDES);
This will set the object's sides' alpha to opaque, or 0%.
llSetLinkAlpha
llSetLinkAlpha(LINK_SET, 0.0, ALL_SIDES);

This will set link-set's alpha to transparent, or 100%.

llSetPrimitiveParams
llSetPrimitiveParams([PRIM_COLOR, ALL_SIDES, llGetColor(ALL_SIDES), 0.5]);
// Using llGetColor this way may not give the desired result (it returns the average color)

This will set the object's alpha to translucent, or 50%.

llSetLinkPrimitiveParams
llSetLinkPrimitiveParams(LINK_SET, [PRIM_COLOR, ALL_SIDES, llGetColor(ALL_SIDES), 0.5]);
// Using llGetColor this way may not give the desired result (it returns the average color).

This will set the link-set's alpha to translucent, or 50%.

llSetLinkPrimitiveParamsFast
llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_COLOR, ALL_SIDES, llGetColor(ALL_SIDES), 0.5]);
// Using llGetColor this way may not give the desired result (it returns the average color).

This will set the link-set's alpha to translucent, or 50%.