Skip to content

Commit 76ed66c

Browse files
committed
fix wrong get refraction eta in iridescent transmission
1 parent cb68928 commit 76ed66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/bxdf/fresnel.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ struct Iridescent<T, true, Colorspace NBL_PARTIAL_REQ_BOT(concepts::FloatingPoin
752752
base_type::eta12, base_type::eta23, getEtak23(), clampedCosTheta);
753753
}
754754

755-
scalar_type getRefractionOrientedEta() NBL_CONST_MEMBER_FUNC { return base_type::ior1[0] / base_type::ior3[0]; }
755+
scalar_type getRefractionOrientedEta() NBL_CONST_MEMBER_FUNC { return base_type::ior3[0] / base_type::ior1[0]; }
756756
OrientedEtaRcps<eta_type> getOrientedEtaRcps() NBL_CONST_MEMBER_FUNC
757757
{
758758
OrientedEtaRcps<eta_type> rcpEta;

0 commit comments

Comments
 (0)