File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
com.unity.render-pipelines.universal/Shaders/PostProcessing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ Shader "Hidden/Universal Render Pipeline/BokehDepthOfField"
3838 uint h;
3939#if defined (SHADER_API_GLCORE )
4040 // GetDimensions will use textureQueryLevels in OpenGL and that's not
41- // supported in OpenGL 4.1 or below. In that case we use _MainTex_TexelSize
41+ // supported in OpenGL 4.1 or below. In that case we use _SourceTex_TexelSize
4242 // which is fine as we don't support dynamic scaling in OpenGL.
43- w = _MainTex_TexelSize .z;
44- h = _MainTex_TexelSize .w;
43+ w = _SourceTex_TexelSize .z;
44+ h = _SourceTex_TexelSize .w;
4545#elif defined (UNITY_STEREO_INSTANCING_ENABLED) || defined (UNITY_STEREO_MULTIVIEW_ENABLED)
4646 uint x;
4747 _CameraDepthTexture.GetDimensions (w, h, x);
You can’t perform that action at this time.
0 commit comments