- if( ray_world( world, pos, (v3f){0.0f,-1.0f,0.0f}, &contact ) )
- {
- struct world_material *mat = ray_hit_material( world, &contact );
+ if( ray_world( world, pos, (v3f){0.0f,-1.0f,0.0f}, &contact ) ){
+ struct world_surface *mat = ray_hit_surface( world, &contact );