lygia
/v1.1.6
/lighting
/ior
/2eta
)index of refraction to ratio of index of refraction
Use:
<float|vec3|vec4> ior2eta(<float|vec3|vec4> ior)
#ifndef FNC_IOR2ETA
#define FNC_IOR2ETA
float ior2eta( const in float ior ) { return 1.0/ior; }
vec3 ior2eta( const in vec3 ior ) { return 1.0/ior; }
vec4 ior2eta( const in vec4 ior ) { return vec4(1.0/ior.rgb, ior.a); }
#endif
Use:
<float|float3|float4> ior2eta(<float|float3|float4> ior)
#ifndef FNC_IOR2ETA
#define FNC_IOR2ETA
float ior2eta( const float ior ) { return 1.0/ior; }
float3 ior2eta( const float3 ior ) { return 1.0/ior; }
float4 ior2eta( const float4 ior ) { return float4(1.0/ior.rgb, ior.a); }
#endif
LYGIA is dual-licensed under the Prosperity License and the Patron License for sponsors and contributors.
Sponsors and contributors are automatically added to the Patron License and they can ignore the any non-commercial rule of the Prosperity Licensed software (please take a look to the exception).
It's also possible to get a permanent comercial license hook to a single and specific version of LYGIA.
Sign up for the news letter bellow, joing the LYGIA's channel on Discord or follow the Github repository