mirror of
https://github.com/opensim/opensim.git
synced 2026-08-03 15:36:16 +08:00
add LSL llLinear2sRGB and llsRGB2Linear
This commit is contained in:
@@ -18281,6 +18281,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return src;
|
||||
}
|
||||
}
|
||||
|
||||
public LSL_Vector llLinear2sRGB(LSL_Vector src)
|
||||
{
|
||||
return new LSL_Vector(Util.LinearTosRGB((float)src.x), Util.LinearTosRGB((float)src.y), Util.LinearTosRGB((float)src.z));
|
||||
}
|
||||
|
||||
public LSL_Vector llsRGB2Linear(LSL_Vector src)
|
||||
{
|
||||
return new LSL_Vector(Util.sRGBtoLinear((float)src.x), Util.sRGBtoLinear((float)src.y), Util.sRGBtoLinear((float)src.z));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class NotecardCache
|
||||
|
||||
Reference in New Issue
Block a user