I guess it is a shortcoming or a bug of the cg to glsl compiler of unity that it doesn t replace round by correct code such as floor a 0 5.
Glsl floor float.
Ceil find the nearest integer that is greater than or equal to the parameter.
Localities are the main parameter to control sharpening strength lower sharper.
Specify the value to.
Tuned for use with dscale mitchell and linear downscaling no.
Round returns a value equal to the nearest integer to x.
Floor returns a value equal to the nearest integer that is less than or equal to x.
The fraction 0 5 will round in a direction chosen by the implementation presumably the direction that is fas.
You can make the compilation work with pragma exclude renderers gles.
Works fine a is a float.