try to fix android shader build error

This commit is contained in:
HifiExperiments 2019-08-01 14:53:02 -07:00
parent 078ca7edea
commit 029a494beb

View file

@ -36,7 +36,7 @@ void main() {
if (params.effect == 3) { // Shadow
const int VERTICES_PER_QUAD = 4; // must match value in Font.cpp
const float EPSILON = 0.001;
position.z += floor(gl_VertexID / VERTICES_PER_QUAD) * EPSILON;
position.z += float(gl_VertexID / VERTICES_PER_QUAD) * EPSILON;
}
TransformCamera cam = getTransformCamera();