diff --git a/shaders/src/depth_main.vs b/shaders/src/depth_main.vs index 9ddd6c861e..662dfed2e6 100644 --- a/shaders/src/depth_main.vs +++ b/shaders/src/depth_main.vs @@ -1,9 +1,14 @@ +// The sole purpose of this no-op function is to improve parity between the depth vertex shader +// and color vertex shader, thus working around a variance issue seen with NVIDIA drivers. +void materialVertex(inout MaterialVertexInputs m) { } + void main() { #if defined(VERTEX_DOMAIN_DEVICE) gl_Position = getSkinnedPosition(); #else MaterialVertexInputs material; initMaterialVertex(material); + materialVertex(material); gl_Position = getClipFromWorldMatrix() * material.worldPosition; #endif