Skip to content
Snippets Groups Projects
Commit a6cfdf9f authored by Alexander Rose's avatar Alexander Rose
Browse files

fix shader marking issue

parent a4b75906
No related branches found
No related tags found
No related merge requests found
// only mark elements with an alpha above the picking threshold // only mark elements with an alpha above the picking threshold
if (uAlpha >= uPickingAlphaThreshold) { if (uAlpha >= uPickingAlphaThreshold) {
float marker = vMarker * 255.0; float marker = floor(vMarker * 255.0 + 0.5); // rounding required to work on some cards on win
if (marker > 0.1) { if (marker > 0.1) {
if (intMod(marker, 2.0) > 0.1) { if (intMod(marker, 2.0) > 0.1) {
gl_FragColor.rgb = mix(uHighlightColor, gl_FragColor.rgb, 0.3); gl_FragColor.rgb = mix(uHighlightColor, gl_FragColor.rgb, 0.3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment