@setsphere_param 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_param:<x>;<y>;<z>;<w>=<n|force>
@setsphere_param:<x>;<y>;<z>;<w>=y

Parameters

x;y;z;w
Up to four floats separated by ; or / (missing values are 0). Meaning by mode: 0 blend: r;g;b color (0–1), default black; 1 blur: unused; 2 variable blur: x = kernel size in pixels; 3 chromatic aberration: x;y = red channel offset, z;w = blue channel offset, in pixels; 4 pixelate: x;y = block width;height in pixels.

Specification

Mixing between objects that share a mode: blend multiplies the colors component by component; variable blur keeps the largest kernel; chromatic aberration and pixelate keep the largest value of each component; fixed blur ignores params.

=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_param:0.4;0;0=n");   // red tint in blend mode

See also

Implementation notes

Read in RRInterface::updateSetsphere() (RRInterface.cpp:6803-6850) 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_param; see the comparison.