File tree 2 files changed +3
-4
lines changed
examples/src/examples/graphics
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- // @config WEBGPU_DISABLED
2
1
import { data } from 'examples/observer' ;
3
2
import { deviceType , rootPath } from 'examples/utils' ;
4
3
import * as pc from 'playcanvas' ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class RenderPassDofBlur extends RenderPassShaderQuad {
88
88
for (int i = 0; i < ${ kernelCount } ; i++)
89
89
{
90
90
vec2 uv = uv0 + step * kernel[i];
91
- vec3 tap = texture2D (nearTexture, uv).rgb;
91
+ vec3 tap = texture2DLodEXT (nearTexture, uv, 0.0 ).rgb;
92
92
sum += tap.rgb;
93
93
}
94
94
@@ -103,10 +103,10 @@ class RenderPassDofBlur extends RenderPassShaderQuad {
103
103
for (int i = 0; i < ${ kernelCount } ; i++)
104
104
{
105
105
vec2 uv = uv0 + step * kernel[i];
106
- vec3 tap = texture2D (farTexture, uv).rgb;
106
+ vec3 tap = texture2DLodEXT (farTexture, uv, 0.0 ).rgb;
107
107
108
108
// block out sharp objects to avoid leaking to far blur
109
- float cocThis = texture2D (cocTexture, uv).g;
109
+ float cocThis = texture2DLodEXT (cocTexture, uv, 0.0 ).g;
110
110
tap *= cocThis;
111
111
sumCoC += cocThis;
112
112
You can’t perform that action at this time.
0 commit comments