Advertisement
Dorex

Untitled

Feb 3rd, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. default
  2. {
  3. touch_start(integer total_number)
  4. {
  5. integer link = llDetectedLinkNumber(0);
  6. integer face = llDetectedTouchFace(0);
  7. list details = llGetLinkPrimitiveParams(link, [PRIM_GLTF_BASE_COLOR, face]);
  8.  
  9. llOwnerSay("Render material UUID: " + llGetRenderMaterial( face));
  10. llOwnerSay(".");
  11. llOwnerSay("PRIM_GLTF_BASE_COLOR");
  12. llOwnerSay("UUID: " + llList2String(details, 0));
  13. llOwnerSay("repeats: " + llList2String(details, 1));
  14. llOwnerSay("offsets: " + llList2String(details, 2));
  15. llOwnerSay("rotation: " + llList2String(details, 3));
  16. llOwnerSay("color: " + llList2String(details, 4));
  17. llOwnerSay("alpha: " + llList2String(details, 5));
  18. llOwnerSay("gltf_alpha_mode: " + llList2String(details, 6));
  19. llOwnerSay("alpha_mask_cutoff: " + llList2String(details, 7));
  20. llOwnerSay("double_sided: " + llList2String(details, 8));
  21. llOwnerSay(".");
  22. details = llGetLinkPrimitiveParams(link, [PRIM_GLTF_NORMAL, face]);
  23. llOwnerSay("PRIM_GLTF_NORMAL");
  24. llOwnerSay("UUID: " + llList2String(details, 0));
  25. llOwnerSay("repeats: " + llList2String(details, 1));
  26. llOwnerSay("offsets: " + llList2String(details, 2));
  27. llOwnerSay("rotation: " + llList2String(details, 3));
  28. llOwnerSay(".");
  29. details = llGetLinkPrimitiveParams(link, [PRIM_GLTF_METALLIC_ROUGHNESS, face]);
  30. llOwnerSay("PRIM_GLTF_METALLIC_ROUGHNESS");
  31. llOwnerSay("UUID: " + llList2String(details, 0));
  32. llOwnerSay("repeats: " + llList2String(details, 1));
  33. llOwnerSay("offsets: " + llList2String(details, 2));
  34. llOwnerSay("rotation: " + llList2String(details, 3));
  35. llOwnerSay("metallic_factor: " + llList2String(details, 4));
  36. llOwnerSay("roughness_factor: " + llList2String(details, 5));
  37. llOwnerSay(".");
  38. details = llGetLinkPrimitiveParams(link, [PRIM_GLTF_EMISSIVE, face]);
  39. llOwnerSay("PRIM_GLTF_EMISSIVE");
  40. llOwnerSay("UUID: " + llList2String(details, 0));
  41. llOwnerSay("repeats: " + llList2String(details, 1));
  42. llOwnerSay("offsets: " + llList2String(details, 2));
  43. llOwnerSay("rotation: " + llList2String(details, 3));
  44. llOwnerSay("emissive_tint: " + llList2String(details, 4));
  45.  
  46. }
  47. }
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement