W3cubDocs

/Godot 3.2

VisualShaderNodeVectorRefract

Inherits: VisualShaderNode < Resource < Reference < Object

Returns the Vector3 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.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_visualshadernodevectorrefract.html