Skip to content

group

Float/Double parameter

The float type represents a floating-point parameter that can be exposed in the user interface. It allows for configuring numeric inputs with options like sliders and value constraints.

Shader Equivalent

uniform float parameter_name;

Example

{
  "type": "float",
  "name": "my_float_value",
  "label": "My float",
  "slider": true,
  "min": 0,
  "max": 2,
  "default": 1,
  "step": 0.01
}

Properties

Property
Type Required If absent Description
name string Yes - Name of the field. It must be the same as the associated variable in the shader.
parameters array of any Yes - -
type "group" Yes - -
description string No - Description of the field. It will be shown in the UI.
devmode boolean No false If set to true, this field will only be available in the property UI if the developer mode is active.
if any No - Condition for display
label string No "Same as name" The label of the field in the UI. If not set, the name will be used.