Fixed explicit cast and slightly improved logging

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>

A few minor changes I had left from my debugging session. The explicit cast in the shader should not result in an error, but I fixed it to remove the warning for it.