1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 20:05:57 +08:00

Documentation for Parallax mapping node added

This commit is contained in:
Digvijaysinh Gohil
2023-12-24 20:54:36 +05:30
parent db2384c5df
commit d3a263f034
2 changed files with 24 additions and 0 deletions

View File

@ -43,6 +43,13 @@ func _get_output_port_name(port: int) -> String:
func _get_output_port_type(port: int) -> VisualShaderNode.PortType:
return PORT_TYPE_VECTOR_2D
func _is_available(mode: Shader.Mode, type: VisualShader.Type) -> bool:
match mode:
0, 1:
return true
_:
return false
func _get_global_code(mode: Shader.Mode) -> String:
var code: String = preload("ParallaxMappingUV.gdshaderinc").code
return code