# shader-param-invalid

> Talos 0.6 · Since 0.6

A `param` or `instance` header line that cannot be built: a name that is not camelCase or is declared twice, an unknown type, a default of the wrong type, a `[min, max]` that is backwards or on a `bool`, a default outside it, more than 256 B of params, or more than 4 instance floats. Also a material `params` value of the wrong type for the shader's param.

| | |
|---|---|
| Severity | `error` |
| Source | `contract` |
| Offers a fix patch | no |

## Messages

The message opens with the code; `<…>` stands for a value.

- `<…> "<…>" is not a hex colour; write "#RGB" or "#RRGGBB", or 3 linear numbers`
- `<…> <…>, got <…>`
- `<…> has a negative component; colours are linear and 0 or more`
- `<…> must be a texture reference (a string), got <…>`

## Since / changed

See the version chips above and what changed.
