Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

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.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.