照明に使える?

 

オブジェクトをクリックする事で、
オブジェクトの「特徴タブ→光」プロパティの
設定をオン・オフ切り替えます。

vector white = <1.0, 1.0, 1.0>;
vector grey = <0.5, 0.5, 0.5>;
vector black = <0.0, 0.0, 0.0>;
vector red = <1.0, 0.0, 0.0>;
vector green = <0.0, 1.0, 0.0>;
vector blue = <0.0, 0.0, 1.0>;
vector yellow = <1.0, 1.0, 0.0>;
vector cyan = <0.0, 1.0, 1.0>;
vector magenta = <1.0, 0.0, 1.0>;
vector orange = <1.0, 0.5, 0.0>;
vector color = orange;

integer flug = FALSE;
setting_light(integer flug) {
llSetPrimitiveParams([PRIM_POINT_LIGHT, flug, color, 1.0, 10.0, 0.5]);
}
default {
state_entry() {
flug = FALSE;
setting_light(flug);
}
touch_start(integer total_number) {
if (flug == FALSE) {
flug = TRUE;
} else {
flug = FALSE;
}
setting_light(flug);
}
}

不具合があったらコメントください!

 Date Posted: 07 7月 2009 @ 10 25 AM
Last Modified: 07 8月 2009 @ 09 33 AM
Posted By: vipartner
EmailPermalink
 

Responses to this post » (None)

 

Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

\/ More Options ...
Change Theme...
  • Users » 1
  • Posts/Pages » 357
  • Comments » 50
Change Theme...
  • VoidVoid
  • LifeLife
  • EarthEarth
  • WindWind « Default
  • WaterWater
  • FireFire
  • LightLight

【事業紹介】



    No Child Pages.