1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-01-07 01:43:35 +08:00

Merge branch 'godot-4.2'

This commit is contained in:
Digvijaysinh Gohil 2024-02-13 21:04:17 +05:30
commit 5cc50c533f
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Godot-Shader-Lib
Visual shader node library for Godot engine. The addon supports Godot versions 4.x!
Visual shader node library for Godot engine. Supports all 4.2.0+ versions!
Adds various extra nodes to use in built-in visual shader editor.
# Installation

View File

@ -47,6 +47,6 @@ func _get_global_code(mode: Shader.Mode) -> String:
func _get_code(input_vars: Array[String], output_vars: Array[String], mode: Shader.Mode, type: VisualShader.Type) -> String:
var code: String
code = "%s = geometry_node_scale_world(MODEL_MATRIX);" % output_vars[0]
code += "\n%s = NODE_POSITION_WORLD;" % output_vars[1]
code = "%s = NODE_POSITION_WORLD;" % output_vars[0]
code += "\n%s = geometry_node_scale_world(MODEL_MATRIX);" % output_vars[1]
return code