Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/common_utiltex_lib.glsl
| #pragma BLENDER_REQUIRE(bsdf_common_lib.glsl) | #pragma BLENDER_REQUIRE(bsdf_common_lib.glsl) | ||||
| /* ---------------------------------------------------------------------- */ | /* ---------------------------------------------------------------------- */ | ||||
| /** \name Utiltex | /** \name Utiltex | ||||
| * | * | ||||
| * Utiltex is a sampler2DArray that stores a number of useful small utilitary textures and lookup | * Utiltex is a sampler2DArray that stores a number of useful small utilitary textures and lookup | ||||
| * tables. | * tables. | ||||
| * \{ */ | * \{ */ | ||||
| #if !defined(USE_GPU_SHADER_CREATE_INFO) | |||||
| uniform sampler2DArray utilTex; | uniform sampler2DArray utilTex; | ||||
| #endif | |||||
| #define LUT_SIZE 64 | #define LUT_SIZE 64 | ||||
| #define LTC_MAT_LAYER 0 | #define LTC_MAT_LAYER 0 | ||||
| #define LTC_BRDF_LAYER 1 | #define LTC_BRDF_LAYER 1 | ||||
| #define BRDF_LUT_LAYER 1 | #define BRDF_LUT_LAYER 1 | ||||
| #define NOISE_LAYER 2 | #define NOISE_LAYER 2 | ||||
| #define LTC_DISK_LAYER 3 /* UNUSED */ | #define LTC_DISK_LAYER 3 /* UNUSED */ | ||||
| ▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines | |||||