// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Fullbright comparison switch // Not compiled or tested in-world // Setup: Set FACE and place in a texture sample prim. Owner-touch toggles the classic face fullbright flag. // Stop / restore: Touch until Original lighting restored is reported, then remove. // Notes: Classic fullbright is not the same as PBR emissive. Viewer rendering and material choice may change the result. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Not compiled or tested in-world. integer FACE = 0; integer original; integer preview; default { state_entry() { original = llList2Integer(llGetLinkPrimitiveParams(LINK_THIS, [PRIM_FULLBRIGHT, FACE]), 0); } touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; preview = !preview; integer value = original; if (preview) value = !original; llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_FULLBRIGHT, FACE, value]); if (!preview) llOwnerSay("Original lighting restored."); } }