[Bug 56497] MotorM4X crashes due to HLSL compilation failure (needs 'SM1 cast from bool to integer' handling)