A little toolkit for single-quad fragment shader demos
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
133 B

  1. struct SceneResult {
  2. float d;
  3. float mat_idx;
  4. };
  5. SceneResult min_sr(SceneResult a, SceneResult b) {
  6. return (a.d < b.d) ? a : b;
  7. }