Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0
. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
VisualShaderNodeVectorRefract¶
Inherits: VisualShaderNodeVectorBase < VisualShaderNode < Resource < RefCounted < Object
Returns the vector that points in the direction of refraction. For use within the visual shader graph.
Description¶
Translated to refract(I, N, eta)
in the shader language, where I
is the incident vector, N
is the normal vector and eta
is the ratio of the indices of the refraction.