PRIM GLOW/ja

From Second Life Wiki
< PRIM GLOW
Revision as of 06:40, 25 February 2016 by SakuraNoel Fayray (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.

Description

Constant: integer PRIM_GLOW = 25;

The integer constant PRIM_GLOW has the value 25

PRIM_GLOWは側面のグローステータスを取得あるいは設定するのに用いられます。コンパイラが命名された定数を受け付けない場合は、25の数値を使います。

llSetPrimitiveParams

[ PRIM_GLOW, integer face, float intensity ]
• integer face 番号もしくは ALL_SIDES
• float intensity 0.0から1.0の範囲

llSetPrimitiveParamsllSetLinkPrimitiveParamsを実行する時に用いられます。

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_GLOW, integer face ]);

list [ float intensity ]を返します。

• integer face 番号もしくは ALL_SIDES

• float intensity 0.0から1.0の範囲

注意:

  • faceALL_SIDES であれば PRIM_GLOW は全ての面に作用します。
  • face が存在しない面を指している場合、 PRIM_GLOW の結果は [ 0.0 ] です。

Related Articles

Constants

•  CHANGED_TEXTURE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Examples

//Each time the prim is touched, the intensity of the glow is increased (until it maxes out and cycles back to zero).
integer steps = 10;
integer counter = 0;

default 
{
    touch_start(integer total_number) 
    { 
        llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES,  counter / (steps - 1.0) ]);
        counter = (counter + 1) % steps;
    } 
}
//Each time the prim is touched, the intensity of the glow is decreased (until it hits zero and cycles back to one).
integer steps = 10;
integer counter = 0;

default 
{
    touch_start(integer total_number) 
    { 
        llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES,  counter / (steps - 1.0) ]);
        counter = (counter + steps - 1) % steps;
    } 
}

Deep Notes