GLSL_PRAGMA
A `// @diorama` line in a shader sets `when`, `reducedMotion` or `presence` to a value the effect cannot take, so the conversion fails.
On this page
GLSL_PRAGMA: `{key}={value}` is not a valid valueThe converter reports this at build time, with the file, the line and the values it accepts. The shader does not convert, so the effect is not built.
Why it happens
reducedMotionis something other thanstaticoroff.presenceis something other thanfadeorcustom.whenis empty, for examplewhen=orwhen="".
How to fix
Use one of the listed values. Put a media query with spaces in quotes: the line splits at spaces, so an unquoted when=(min-width: 768px) does not fail but reads as when=(min-width:, a query that never matches.
// @diorama when=hover reducedMotion=off presence=custom// @diorama when="(min-width: 768px)"A glue file sets the same options in TypeScript, where the type check catches a bad value before the build.
import { glslEffect } from '@dioramajs/glsl'import shader from './wave.frag?shader'
export default glslEffect(shader, { when: '(min-width: 768px)', reducedMotion: 'off',})