diff --git a/base/renderprogs/interactionSM.pixel b/base/renderprogs/interactionSM.pixel index 7cc320bdc3..9b1e153711 100644 --- a/base/renderprogs/interactionSM.pixel +++ b/base/renderprogs/interactionSM.pixel @@ -260,7 +260,7 @@ void main( PS_IN fragment, out PS_OUT result ) rot.x = cos( random.x ); rot.y = sin( random.x ); - float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale; + float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale.x; for( int i = 0; i < 12; i++ ) { float2 jitter = poissonDisk[i]; diff --git a/neo/renderer/RenderProgs_embedded.h b/neo/renderer/RenderProgs_embedded.h index 58df929133..025d74ff5e 100644 --- a/neo/renderer/RenderProgs_embedded.h +++ b/neo/renderer/RenderProgs_embedded.h @@ -4435,7 +4435,7 @@ static const cgShaderDef_t cg_renderprogs[] = " rot.x = cos( random.x );\n" " rot.y = sin( random.x );\n" " \n" - " float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale;\n" + " float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale.x;\n" " for( int i = 0; i < 12; i++ )\n" " {\n" " float2 jitter = poissonDisk[i];\n"