fixes for ShaderMaterial objects