Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shaders: Encodings clean up #18379

Merged
merged 1 commit into from
Jan 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ vec4 LinearToRGBD( in vec4 value, in float maxRange ) {
// NOTE: The implementation with min causes the shader to not compile on
// a common Alcatel A502DL in Chrome 78/Android 8.1. Some research suggests
// that the chipset is Mediatek MT6739 w/ IMG PowerVR GE8100 GPU.
// D = min(floor(D)/255.0, 1.0);
D = clamp(floor(D)/255.0, 0.0, 1.0);
// D = min( floor( D ) / 255.0, 1.0 );
D = clamp( floor( D ) / 255.0, 0.0, 1.0 );
return vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );
}

Expand Down