Edit Object Texture Test


8/2/05 original test written by SteveLinden

EditObjectTextureTest

1. Shininess and Bumpiness


//switch fullbright for whole object on and off
integer x=0;
default
{
   state_entry()
   {
       llSay(0, "starting");
       llSetTimerEvent(1);
   }
   timer()
   {
       llSetPrimitiveParams([PRIM_FULLBRIGHT, ALL_SIDES, (x = llAbs(--x))]);
       llSay(0,"fullbright = "+(string)x);
   }
}



//set individual sides to fullbright
integer x=0;
integer y=0;
default
{
   state_entry()
   {
       llSay(0, "starting");
       llSetTimerEvent(1);
   }
   timer()
   {
       llSetPrimitiveParams([PRIM_FULLBRIGHT, (y = llRound(llFrand(7))), (x = llAbs(--x))]);
       llSay(0,"Setting side"+ (string)y+" to "+(string)x);
   }
}