mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-01-07 01:43:35 +08:00
Update NodeScaleWorld.gd
Adjusted availability of the node for shader modes and shader processors
This commit is contained in:
parent
3697f61b5d
commit
05dfe4c1fd
@ -28,6 +28,15 @@ func _get_output_port_name(port: int) -> String:
|
||||
func _get_output_port_type(port: int) -> VisualShaderNode.PortType:
|
||||
return PORT_TYPE_VECTOR_3D
|
||||
|
||||
func _is_available(mode: Shader.Mode, type: VisualShader.Type) -> bool:
|
||||
match mode:
|
||||
0:
|
||||
return true
|
||||
1:
|
||||
return type==0
|
||||
_:
|
||||
return false
|
||||
|
||||
func _get_global_code(mode: Shader.Mode) -> String:
|
||||
var code: String = preload("NodeScaleWorld.gdshaderinc").code
|
||||
return code
|
||||
|
Loading…
x
Reference in New Issue
Block a user