fuckingtech/public/assets/glsl/lygia/lighting/ior.hlsl
Elias Rhouzlane bf76c6b086 fix: code
2025-04-06 17:23:52 +02:00

59 lines
1.1 KiB
HLSL

/*
contributors: Patricio Gonzalez Vivo
description: Refractive index of different materials based on https://en.wikipedia.org/wiki/Refractive_index
license:
- Copyright (c) 2021 Patricio Gonzalez Vivo under Prosperity License - https://prosperitylicense.com/versions/3.0.0
- Copyright (c) 2021 Patricio Gonzalez Vivo under Patron License - https://lygia.xyz/license
*/
#ifndef IOR_AIR
#define IOR_AIR 1.000293
#endif
#ifndef IOR_ICE
#define IOR_ICE 1.31
#endif
#ifndef IOR_WATER
#define IOR_WATER 1.333
#endif
#ifndef IOR_WATER_RGB
#define IOR_WATER_RGB float3(1.337, 1.333, 1.331)
#endif
#ifndef IOR_GLYCERING
#define IOR_GLYCERING 1.473
#endif
#ifndef IOR_OIL
#define IOR_OIL 1.515
#endif
#ifndef IOR_OIL_RGB
#define IOR_OIL_RGB float3(1.530, 1.520, 1.516)
#endif
#ifndef IOR_GLASS
#define IOR_GLASS 1.5168
#endif
#ifndef IOR_GLASS_RGB
#define IOR_GLASS_RGB float3(1.524, 1.517, 1.515)
#endif
#ifndef IOR_GLASS_FLINT
#define IOR_GLASS_FLINT 1.69
#endif
#ifndef IOR_GLASS_FLINT_RGB
#define IOR_GLASS_FLINT_RGB float3(1.639, 1.627, 1.622)
#endif
#ifndef IOR_SAPPHIRE
#define IOR_SAPPHIRE 1.77
#endif
#ifndef IOR_DIAMONG
#define IOR_DIAMONG 2.42
#endif