| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
					
						
							| 
									
										
										
										
											2020-02-25 17:50:49 +03:00
										 |  |  | <class name="VisualShaderNodeIntOp" inherits="VisualShaderNode" version="4.0"> | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 	<brief_description> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 		An integer scalar operator to be used within the visual shader graph. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 	</brief_description> | 
					
						
							|  |  |  | 	<description> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 		Applies [member operator] to two integer inputs: [code]a[/code] and [code]b[/code]. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 	</description> | 
					
						
							|  |  |  | 	<tutorials> | 
					
						
							|  |  |  | 	</tutorials> | 
					
						
							|  |  |  | 	<methods> | 
					
						
							|  |  |  | 	</methods> | 
					
						
							|  |  |  | 	<members> | 
					
						
							| 
									
										
										
										
											2020-02-25 17:50:49 +03:00
										 |  |  | 		<member name="operator" type="int" setter="set_operator" getter="get_operator" enum="VisualShaderNodeIntOp.Operator" default="0"> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 			An operator to be applied to the inputs. See [enum Operator] for options. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 		</member> | 
					
						
							|  |  |  | 	</members> | 
					
						
							|  |  |  | 	<constants> | 
					
						
							|  |  |  | 		<constant name="OP_ADD" value="0" enum="Operator"> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 			Sums two numbers using [code]a + b[/code]. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="OP_SUB" value="1" enum="Operator"> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 			Subtracts two numbers using [code]a - b[/code]. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="OP_MUL" value="2" enum="Operator"> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 			Multiplies two numbers using [code]a * b[/code]. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="OP_DIV" value="3" enum="Operator"> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 			Divides two numbers using [code]a / b[/code]. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="OP_MOD" value="4" enum="Operator"> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 			Calculates the remainder of two numbers using [code]a % b[/code]. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2020-02-25 17:50:49 +03:00
										 |  |  | 		<constant name="OP_MAX" value="5" enum="Operator"> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 			Returns the greater of two numbers. Translates to [code]max(a, b)[/code] in the Godot Shader Language. | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2020-02-25 17:50:49 +03:00
										 |  |  | 		<constant name="OP_MIN" value="6" enum="Operator"> | 
					
						
							| 
									
										
										
										
											2020-02-26 14:27:56 +03:00
										 |  |  | 			Returns the lesser of two numbers. Translates to [code]max(a, b)[/code] in the Godot Shader Language. | 
					
						
							| 
									
										
										
										
											2019-04-15 14:49:41 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2021-08-14 13:38:22 +03:00
										 |  |  | 		<constant name="OP_ENUM_SIZE" value="7" enum="Operator"> | 
					
						
							|  |  |  | 			Represents the size of the [enum Operator] enum. | 
					
						
							|  |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2018-07-26 11:56:21 +02:00
										 |  |  | 	</constants> | 
					
						
							|  |  |  | </class> |