srmainwaring / asv_wave_sim

This package contains plugins that support the simulation of waves and surface vessels in Gazebo.
GNU General Public License v3.0
114 stars 31 forks source link

Ocean wave model crashes on macOS when both metal and glsl shaders available #53

Closed srmainwaring closed 2 years ago

srmainwaring commented 2 years ago

The ocean_waves model crashes on macOS if shader language blocks for both metal and glsl are provided.

<shader language="glsl">
  <vertex>materials/waves_vs.glsl</vertex>
  <fragment>materials/waves_fs.glsl</fragment>
</shader>
<shader language="metal">
  <vertex>materials/waves_vs.metal</vertex>
  <fragment>materials/waves_fs.metal</fragment>
</shader>

The plugin attempts to load the glsl shaders instead of the metal ones.