Jump to content

How can I apply custom normal map on linkset?


AquarianBeauty
 Share

You are about to reply to a thread that has been inactive for 624 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

You'd want to use something like this:

key normUUID = TEXTURE_BLANK; //Replace this with a UUID
integer linknum = LINK_THIS; //Replace this with the link number you want to change, or leave as-is for the prim containing the script.
integer face = ALL_SIDES; //replace this with a face number, or leave as-is.

llSetLinkPrimitiveParamsFast(linknum,[PRIM_NORMAL,face,normUUID,<1,1,0>,ZERO_VECTOR,0]); //Do stuff!

 

Edited by Jenna Huntsman
replace type string with key, as we're working with a UUID
  • Like 2
Link to comment
Share on other sites

6 minutes ago, Jenna Huntsman said:

You'd want to use something like this:

key normUUID = TEXTURE_BLANK; //Replace this with a UUID
integer linknum = LINK_THIS; //Replace this with the link number you want to change, or leave as-is for the prim containing the script.
integer face = ALL_SIDES; //replace this with a face number, or leave as-is.

llSetLinkPrimitiveParamsFast(linknum,[PRIM_NORMAL,face,normUUID,<1,1,0>,ZERO_VECTOR,0]); //Do stuff!

 

Ahh there it is, I think i have some sort of code disleksia loll I saw so many examples and dint get it since a little thing was different... Tysm ❤️

Edited by AquarianBeauty
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 624 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...