llsRGB2Linear

From Second Life Wiki
Revision as of 20:59, 22 May 2020 by Chaser Zaks (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

Examples

See Also

Functions

•  llLinear2sRGB To convert from sRGB to the Linear colorspace.

Deep Notes

Search JIRA for related Issues

Signature

function vector llsRGB2Linear( vector srgb );