Fixes float error (#3607)

This commit is contained in:
GraniteSidewalk
2021-03-09 19:31:43 -06:00
committed by GitHub
parent dc11ebf760
commit f03ff66eaf

View File

@@ -4,8 +4,8 @@
light_mode unshaded;
const highp float darknessAlphaInner = 0.6;
const highp float innerCircleRadius = 40; //Note: this is in pixels
const highp float outerCircleRadius = 80;
const highp float innerCircleRadius = 40.0; //Note: this is in pixels
const highp float outerCircleRadius = 80.0;
void fragment() {
highp vec2 pixelSize = vec2(1.0/SCREEN_PIXEL_SIZE.x, 1.0/SCREEN_PIXEL_SIZE.y);