PHYSICALLYBASED

A database of physically based values for CG artists


Shading

sRGB Gamma to Linear

sRGB Gamma

Linear

Formulas:
sRGB = if (Linear < 0.0031308) Linear * 12.92 else (1.055 * pow(Linear, 0.41666) - 0.055)

Linear = if (sRGB < 0.04045) sRGB * 0.0773993808 else (pow(sRGB * 0.9478672986 + 0.0521327014, 2.4))

Sources: [0][1][2]

Shading

Specular to IOR

Specular

Index of Refraction

Formulas:
Specular = pow((IOR - 1) / (IOR + 1), 2) / 0.08

IOR = 1 / (2 / (sqrt(0.08 * Specular) + 1) - 1)

Sources: [0][1]

Data from https://api.physicallybased.info/