Difference between revisions of "LlsRGB2Linear"

From Second Life Wiki
Jump to navigation Jump to search
m (Added note about EOTF functionality.)
m (More notes.)
Line 18: Line 18:
|also
|also
|also_functions=
|also_functions=
{{LSL DefineRow||[[llLinear2sRGB]]}} To convert from sRGB to the Linear colorspace.
{{LSL DefineRow||[[llLinear2sRGB]]}} To convert from sRGB to the Linear colorspace. (Inverse EOTF)
}}
}}

Revision as of 03:22, 18 April 2022

Summary

Function: vector llsRGB2Linear( vector srgb );

Returns a vector Transforms a color specified in the sRGB colorspace to the linear RGB colorspace.

• vector srgb Color in the sRGB color space.

Specification

Lights in Second Life are specified in LSL as linear red, green blue values in the range (0.0, 1.0). Internally light calculations are performed in the sRGB colorspace.

The sRGB (Standard Red Green Blue) colorspace is defined in IEC 61966-2-1:1999 and was developed as a joint project between Microsoft and HP.

This calculation is known as an Electro-Optical Transfer Function (EOTF).

Examples

See Also

Functions

•  llLinear2sRGB To convert from sRGB to the Linear colorspace. (Inverse EOTF)

Deep Notes

Signature

function vector llsRGB2Linear( vector srgb );