Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/shaders/common_view_lib.glsl
| Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | |||||
| #ifdef GPU_FRAGMENT_SHADER | #ifdef GPU_FRAGMENT_SHADER | ||||
| flat in int resourceIDFrag; | flat in int resourceIDFrag; | ||||
| # define resource_id resourceIDFrag | # define resource_id resourceIDFrag | ||||
| #endif | #endif | ||||
| /* Breaking this across multiple lines causes issues for some older GLSL compilers. */ | /* Breaking this across multiple lines causes issues for some older GLSL compilers. */ | ||||
| /* clang-format off */ | /* clang-format off */ | ||||
| #if !defined(GPU_INTEL) && !defined(GPU_DEPRECATED_AMD_DRIVER) && !defined(OS_MAC) && !defined(INSTANCED_ATTR) | #if !defined(GPU_INTEL) && !defined(GPU_DEPRECATED_AMD_DRIVER) && !defined(OS_MAC) && !defined(INSTANCED_ATTR) && !defined(DRW_LEGACY_MODEL_MATRIX) | ||||
| /* clang-format on */ | /* clang-format on */ | ||||
| /* Temporary until we fully make the switch. */ | /* Temporary until we fully make the switch. */ | ||||
| # ifndef DRW_SHADER_SHARED_H | # ifndef DRW_SHADER_SHARED_H | ||||
| struct ObjectMatrices { | struct ObjectMatrices { | ||||
| mat4 drw_modelMatrix; | mat4 drw_modelMatrix; | ||||
| mat4 drw_modelMatrixInverse; | mat4 drw_modelMatrixInverse; | ||||
| ▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines | |||||