Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/background_vert.glsl
| #pragma BLENDER_REQUIRE(common_view_lib.glsl) | #pragma BLENDER_REQUIRE(common_view_lib.glsl) | ||||
| #pragma BLENDER_REQUIRE(surface_lib.glsl) | #pragma BLENDER_REQUIRE(surface_lib.glsl) | ||||
| in vec2 pos; | |||||
| RESOURCE_ID_VARYING | |||||
| void main() | void main() | ||||
| { | { | ||||
| GPU_INTEL_VERTEX_SHADER_WORKAROUND | GPU_INTEL_VERTEX_SHADER_WORKAROUND | ||||
| PASS_RESOURCE_ID | PASS_RESOURCE_ID | ||||
fclem: Remove every occurence of these `#ifdef` inside EEVEE. I believe these were only needed during… | |||||
Not Done Inline ActionsCan do! Would you like this to be done in this patch? Or as a follow-up? Had kept It there as a reference for how the bindings should be, just in case anything was missed, but happy to remove these. MichaelPW: Can do! Would you like this to be done in this patch? Or as a follow-up?
Had kept It there as… | |||||
| gl_Position = vec4(pos, 1.0, 1.0); | gl_Position = vec4(pos, 1.0, 1.0); | ||||
| viewPosition = vec3(pos, -1.0); | viewPosition = vec3(pos, -1.0); | ||||
| #ifndef VOLUMETRICS | #ifndef VOLUMETRICS | ||||
| /* Not used in practice but needed to avoid compilation errors. */ | /* Not used in practice but needed to avoid compilation errors. */ | ||||
| worldPosition = viewPosition; | worldPosition = viewPosition; | ||||
| worldNormal = viewNormal = normalize(-viewPosition); | worldNormal = viewNormal = normalize(-viewPosition); | ||||
| #endif | #endif | ||||
| #ifdef USE_ATTR | #ifdef USE_ATTR | ||||
| pass_attr(viewPosition, NormalMatrix, ModelMatrixInverse); | pass_attr(viewPosition, NormalMatrix, ModelMatrixInverse); | ||||
| #endif | #endif | ||||
| } | } | ||||
Remove every occurence of these #ifdef inside EEVEE. I believe these were only needed during the transition phase. Since this patch port every remaining shaders, this is of no use. Just delete the whole block.