Skip to content

Commit

Permalink
Add 'LinearToLinear' for backward-compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Aug 25, 2023
1 parent 2e6749a commit 4abb303
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ vec4 sRGBTransferOETF( in vec4 value ) {
return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
}
// @deprecated, r156
vec4 LinearToLinear( in vec4 value ) {
return value;
}
// @deprecated, r156
vec4 LinearTosRGB( in vec4 value ) {
return sRGBTransferOETF( value );
Expand Down

0 comments on commit 4abb303

Please sign in to comment.