Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Visual Shader Vector Transform Node

An asset by Foyezes
The page banner background of a mountain and forest
Visual Shader Vector Transform Node hero image

Quick Information

0 ratings
Visual Shader Vector Transform Node icon image
Foyezes
Visual Shader Vector Transform Node

Transforms a vector between different coordinate spaces.

Supported Engine Version
4.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
2 months ago
Git URL
Issue URL

Godot Vector Transform Node

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

README 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);

README 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

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. Alternatively, you can make a new gdscript file and copy the code.

Transforms a vector between different coordinate spaces.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Visual Shader Vector Transform Node icon image
Foyezes
Visual Shader Vector Transform Node

Transforms a vector between different coordinate spaces.

Supported Engine Version
4.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
2 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers