add storage for pbr terrain feature that viewers for opensim may add

This commit is contained in:
UbitUmarov
2024-06-08 21:58:46 +01:00
parent ecdc979687
commit 54fe5747ea
13 changed files with 201 additions and 79 deletions

View File

@@ -6592,6 +6592,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Vector osTemperature2sRGB(LSL_Float dtemp)
{
//aproximate fit to http://www.vendian.org/mncharity/dir3/blackbody/ 10degree D65 tables
float temp = (float)dtemp.value;
if (temp <= 1000f)
return new LSL_Vector(1.0, 0.0401, 0);