feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -40,7 +40,32 @@
|
|||
return vec3(r, g, b);
|
||||
[/codeblock]
|
||||
</constant>
|
||||
<constant name="FUNC_MAX" value="4" enum="Function">
|
||||
<constant name="FUNC_LINEAR_TO_SRGB" value="4" enum="Function">
|
||||
Converts color from linear color space to sRGB color space using the following formula:
|
||||
[codeblock]
|
||||
vec3 c = clamp(c, vec3(0.0), vec3(1.0));
|
||||
const vec3 a = vec3(0.055f);
|
||||
return mix((vec3(1.0f) + a) * pow(c.rgb, vec3(1.0f / 2.4f)) - a, 12.92f * c.rgb, lessThan(c.rgb, vec3(0.0031308f)));
|
||||
[/codeblock]
|
||||
The Compatibility renderer uses a simpler formula:
|
||||
[codeblock]
|
||||
vec3 c = input;
|
||||
return max(vec3(1.055) * pow(c, vec3(0.416666667)) - vec3(0.055), vec3(0.0));
|
||||
[/codeblock]
|
||||
</constant>
|
||||
<constant name="FUNC_SRGB_TO_LINEAR" value="5" enum="Function">
|
||||
Converts color from sRGB color space to linear color space using the following formula:
|
||||
[codeblock]
|
||||
vec3 c = input;
|
||||
return mix(pow((c.rgb + vec3(0.055)) * (1.0 / (1.0 + 0.055)), vec3(2.4)), c.rgb * (1.0 / 12.92), lessThan(c.rgb, vec3(0.04045)));
|
||||
[/codeblock]
|
||||
The Compatibility renderer uses a simpler formula:
|
||||
[codeblock]
|
||||
vec3 c = input;
|
||||
return c * (c * (c * 0.305306011 + 0.682171111) + 0.012522878);
|
||||
[/codeblock]
|
||||
</constant>
|
||||
<constant name="FUNC_MAX" value="6" enum="Function">
|
||||
Represents the size of the [enum Function] enum.
|
||||
</constant>
|
||||
</constants>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue