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

fix precision issues when rendering marker

parent 1349a25d
No related branches found
No related tags found
No related merge requests found
float marker = floor(vMarker * 255.0);
if (marker != 0.0) {
if (mod(marker, 2.0) == 0.0) {
float marker = vMarker * 255.0;
if (marker > 0.1) {
if (mod(marker, 2.0) < 0.1) {
gl_FragColor.rgb = mix(uHighlightColor, gl_FragColor.rgb, 0.3);
} else {
gl_FragColor.rgb = mix(uSelectColor, 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