Fixed cloud-sdf example for some drivers.
Textures cannot be negative, apparently.
Also repaired some code that I think was changed during testing.