Visual Shader Vector Transform Node

by Foyezes

5

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.

Version

1.0

Engine

4.2

Category

Shaders

Download

Version1.0
Download Now

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author