@setsphere_mode 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_mode:<mode>=<n|force>
@setsphere_mode:<mode>=y

Parameters

mode
Integer: 0 blend (tint towards a color), 1 fixed blur, 2 variable blur, 3 chromatic aberration, 4 pixelate. Default 0. Values outside 0–4 disable that object's sphere (it isn't added to any effect).

Specification

The mode is looked up per object: for each object holding @setsphere=n, the viewer takes the option of the first setsphere_mode restriction from the same object (default 0) and activates the effect for that mode. All other setsphere_* parameters from that object are applied to that mode's effect. Several objects may use different modes at once, and each active mode renders as a separate post-process pass.

=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_mode:4=n,setsphere_param:8;8=n,setsphere_distmin:0=n,setsphere_distmax:5=n,setsphere=n"); // pixelate

See also

Implementation notes

Read in RRInterface::updateSetsphere() (RRInterface.cpp:6704-6725) 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_mode; see the comparison.