Table of Contents

Class VisualShaderNodeCompare

A comparison function for common types within the visual shader graph.

Inheritance
VisualShaderNodeCompare

Remarks

Compares a and b of type by function. Returns a boolean scalar. Translates to if instruction in shader code.

Properties

condition

Extra condition which is applied if type is set to VisualShaderNodeCompare.CTYPE_VECTOR_3D.

var condition : int = 0

Property Value

int

Remarks

  • void set_condition(int value)
  • int get_condition

function

A comparison function. See Function for options.

var function : int = 0

Property Value

int

Remarks

  • void set_function(int value)
  • int get_function

type

The type to be used in the comparison. See ComparisonType for options.

var type : int = 0

Property Value

int

Remarks

  • void set_comparison_type(int value)
  • int get_comparison_type