Quantcast
Channel: BlogoSfera » ES
Viewing all articles
Browse latest Browse all 137

Why does varying float equality test fail in glsl?

$
0
0

If I have a varying float in my shader program: varying highp float someFloat; and in the vertex shader, I set it to something. someFloat = 1.0; why in my fragment shader does this comparison seem to return false? someFloat == 1.0 // false but this returns true? someFloat > .0 // true testing on [...]

The post Why does varying float equality test fail in glsl? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 137

Latest Images

Trending Articles





Latest Images