Attention

You are reading the latest (unstable) version of this documentation, which may document features not available or compatible with Godot 3.x.

Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.

VisualShaderNodeBooleanParameter

Inherits: VisualShaderNodeParameter < VisualShaderNode < Resource < RefCounted < Object

A boolean parameter to be used within the visual shader graph.

Description

Translated to uniform bool in the shader language.

Properties

bool

default_value

false

bool

default_value_enabled

false


Property Descriptions

bool default_value = false

  • void set_default_value ( bool value )

  • bool get_default_value ( )

A default value to be assigned within the shader.


bool default_value_enabled = false

  • void set_default_value_enabled ( bool value )

  • bool is_default_value_enabled ( )

Enables usage of the default_value.