Reference

ISF specifications

What ISF Studio reads that the ISF 2.0 specification does not describe.
The reference for the format itself is isf.video, by VIDVOX, and its specification. This page lists where ISF Studio goes beyond it. Anything here may not load in another host.

ISF Studio follows ISF 2.0. It extends the format in a few ways, which are documented below.

Cube maps

In ISF 2.0, the PATH of an imported image is a single file name. Studio also accepts a cube map: an IMPORTED entry whose TYPE is "cube" and whose PATH lists six images.

/*{
  "DESCRIPTION": "A sky",
  "IMPORTED": {
    "sky": {
      "TYPE": "cube",
      "PATH": [
        "right.jpg", "left.jpg",
        "top.jpg", "bottom.jpg",
        "front.jpg", "back.jpg"
      ]
    }
  }
}*/
void main() {
  vec3 direction = normalize(vec3(isf_FragNormCoord * 2.0 - 1.0, 1.0));
  gl_FragColor = textureCube(sky, direction);
}
  • The six files are, in this order, the faces +X, -X, +Y, -Y, +Z and -Z. A different order shows a sky turned the wrong way, with no error.
  • The image is declared as a samplerCube and sampled with textureCube. Studio declares it for you; it has no sky_size.
  • A path is relative to the shader, as for any import. A .istshader and a .istpipe keep the six files in imported/.
  • While one of the six files is missing, the cube stays black and the console reports the file, as for any missing import.
  • A PATH list without "TYPE": "cube", or a list that does not hold exactly six names, is an error.
A shader with a cube map is reported with the warning Cube map with six paths, as the standard allows a string only. Other hosts may refuse the shader or ignore the image. Use a flat image if the shader has to travel.

Keys of the studio

Studio keeps a few keys of its own in the header. They are not part of ISF 2.0 and are ignored by other hosts.

KeyWhereWhat it is
DESCRIPTIONAn inputThe text shown for the input in the interface.
LICENSEThe rootThe licence of the shader.

Keys Studio does not know

A key that is neither ISF nor a key of the studio is reported as unknown, and is kept untouched. The console offers a fix that removes all of the unknown keys at once. STEP is not one of them: it is an error, as it does not exist in ISF 2.0, and Studio does not remove it for you.