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.
|
|
- struct SceneResult {
- float d;
- float mat_idx;
- };
-
- SceneResult min_sr(SceneResult a, SceneResult b) {
- return (a.d < b.d) ? a : b;
- }
|