Skip to content

This is a visual shader addon for Godot 4.2+. This adds the Vector Transform node to the visual shader editor.

License

Notifications You must be signed in to change notification settings

Foyezes/Godot-Vector-Transform-Node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Godot Vector Transform Node

This is a visual shader addon for Godot 4.2+. This adds the VectorTransform node to the visual shader editor.

vectorTransform

This node transforms the input to different coordinates. E.g. Model Space Coordinates to World Space Coordinates.

Transform Modes

The input is multiplied by the transformation matrices provided in the Godot Shader Documentation.

For AxB & BxA

=vec3((MODEL_MATRIX * vec4(%s, 1.0)).xyz);

For AxB(3x3) & BxA(3x3)

=vec3((MODEL_MATRIX * vec4(%s, 0.0)).xyz);

vectort1

Transform Mode MATRIX
Model Space to World Space MODEL_MATRIX
World Space to Model Space inverse(MODEL_MATRIX)
Model Space to View Space MODELVIEW_MATRIX
View Space to Model Space inverse(MODELVIEW_MATRIX)
World Space to View Space VIEW_MATRIX
View Space to World Space INV_VIEW_MATRIX
View Space to Clip Space PROJECTION_MATRIX
Clip Space to View Space INV_PROJECTION_MATRIX

Installation

You can get it from the Asset Store in editor. Or extract the zip file and copy the folder to your project. You'll need to restart the editor for the node to appear in visual shader.

About

This is a visual shader addon for Godot 4.2+. This adds the Vector Transform node to the visual shader editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published