@setsphere_distmin is a parameter of @setsphere. It is stored as an ordinary restriction of the issuing object and only takes effect while that object (or, for mode 0, any object) also holds @setsphere=n.

Syntax

@setsphere_distmin:<metres>=<n|force>
@setsphere_distmin:<metres>=y

Parameters

metres
Float. Negative values are clamped to 0. Default 0.

Specification

Pixels closer than distmin get strength valuemin if distextend has bit 2 set, otherwise 0 (no effect). Between distmin and distmax the strength is interpolated linearly from valuemin to valuemax. When several objects set distmin for the same mode, the lowest value wins.

=force is treated exactly like =n, for RLVa compatibility. =y removes the restriction only if the option matches exactly. @setsphere=y from the same object removes all of its setsphere_* parameters.

Caveats

Examples

llOwnerSay("@setsphere_distmin:2=n");

See also

Implementation notes

Read in RRInterface::updateSetsphere() (RRInterface.cpp:6740-6761) and passed to the RLVa-derived RlvSphereEffect (rlveffects.cpp, Kitty Barnett, LGPL) and the shader rlvF.glsl. The =force → add() mapping is at RRInterface.cpp:2377-2379.

Client differences

Not implemented in CoolVL 2.09.29.30, which has no @setsphere support.

Comparison with RLVa

This command works differently from RLVa's @setsphere_distmin; see the comparison.