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

Fixed the int to float conversion in ps_blend #670

Merged
merged 1 commit into from Dec 28, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -28,7 +28,7 @@ CacheClipInstance fetch_clip_item(int index) {
return cci;
}

// The transformed vertex function that always covers the whole whole clip area,
// The transformed vertex function that always covers the whole clip area,
// which is the intersection of all clip instances of a given primitive
TransformVertexInfo write_clip_tile_vertex(vec4 local_clip_rect,
Layer layer,
@@ -40,7 +40,7 @@ void main(void) {
vUv = vec3(mix(st0, st1, aPosition.xy), src.size_target_index.z);

vOp = blend.src_id_target_id_op_amount.z;
vAmount = blend.src_id_target_id_op_amount.w / 65535.0;
vAmount = float(blend.src_id_target_id_op_amount.w) / 65535.0;

gl_Position = uTransform * vec4(local_pos, blend.z, 1.0);
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.