---
name: "al_set_shader_bool"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_shader_bool"
---

# al\_set\_shader\_bool(3)

Allegro 5 API

## NAME

al\_set\_shader\_bool - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_set_shader_bool(const char *name, bool b)
  ```

## DESCRIPTION

Sets a boolean uniform of the target bitmap’s shader.

Returns true on success. Otherwise returns false, e.g. if the uniform by that name does not exist in the shader.

## SINCE

5\.1.6

## SEE ALSO

[al\_use\_shader(3)](/al_use_shader/3.md)
