Library
Node Group
Type
Version : 1.0
Description : Compute the refraction vector
Node Graph
graph TB
subgraph NG_refract_vector3
NG_refract_vector3_IdotN[IdotN]
NG_refract_vector3_IdotNsq[IdotNsq]
NG_refract_vector3_iorsq[iorsq]
NG_refract_vector3_one_IdotNsq[one_IdotNsq]
NG_refract_vector3_iorsq_one_IdotNsq[iorsq_one_IdotNsq]
NG_refract_vector3_k[k]
NG_refract_vector3_I_scaled[I_scaled]
NG_refract_vector3_sqrt_k[sqrt_k]
NG_refract_vector3_ior_NdotI[ior_NdotI]
NG_refract_vector3_ior_NdotI_sqrt_k[ior_NdotI_sqrt_k]
NG_refract_vector3_N_scaled[N_scaled]
NG_refract_vector3_refract_dir[refract_dir]
NG_refract_vector3_result[result]
style NG_refract_vector3_out fill:#0C0, color:#FFF
NG_refract_vector3_out([out])
style NG_refract_vector3_in fill:#09D, color:#FFF
NG_refract_vector3_in([in])
style NG_refract_vector3_normal fill:#09D, color:#FFF
NG_refract_vector3_normal([normal])
style NG_refract_vector3_ior fill:#09D, color:#FFF
NG_refract_vector3_ior([ior])
end
NG_refract_vector3_in --"in1"--> NG_refract_vector3_IdotN
NG_refract_vector3_normal --"in2"--> NG_refract_vector3_IdotN
NG_refract_vector3_IdotN --"in1"--> NG_refract_vector3_IdotNsq
NG_refract_vector3_IdotN --"in2"--> NG_refract_vector3_IdotNsq
NG_refract_vector3_ior --"in1"--> NG_refract_vector3_iorsq
NG_refract_vector3_ior --"in2"--> NG_refract_vector3_iorsq
NG_refract_vector3_IdotNsq --"in2"--> NG_refract_vector3_one_IdotNsq
NG_refract_vector3_iorsq --"in1"--> NG_refract_vector3_iorsq_one_IdotNsq
NG_refract_vector3_one_IdotNsq --"in2"--> NG_refract_vector3_iorsq_one_IdotNsq
NG_refract_vector3_iorsq_one_IdotNsq --"in2"--> NG_refract_vector3_k
NG_refract_vector3_in --"in1"--> NG_refract_vector3_I_scaled
NG_refract_vector3_ior --"in2"--> NG_refract_vector3_I_scaled
NG_refract_vector3_k --"in"--> NG_refract_vector3_sqrt_k
NG_refract_vector3_ior --"in1"--> NG_refract_vector3_ior_NdotI
NG_refract_vector3_IdotN --"in2"--> NG_refract_vector3_ior_NdotI
NG_refract_vector3_ior_NdotI --"in1"--> NG_refract_vector3_ior_NdotI_sqrt_k
NG_refract_vector3_sqrt_k --"in2"--> NG_refract_vector3_ior_NdotI_sqrt_k
NG_refract_vector3_normal --"in1"--> NG_refract_vector3_N_scaled
NG_refract_vector3_ior_NdotI_sqrt_k --"in2"--> NG_refract_vector3_N_scaled
NG_refract_vector3_I_scaled --"in1"--> NG_refract_vector3_refract_dir
NG_refract_vector3_N_scaled --"in2"--> NG_refract_vector3_refract_dir
NG_refract_vector3_k --"value2"--> NG_refract_vector3_result
NG_refract_vector3_refract_dir --"in2"--> NG_refract_vector3_result
NG_refract_vector3_result --> NG_refract_vector3_out