Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: depth issue on Android devices #37

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ao/shader/ao_compose.frag
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
uniform sampler2D inputTexture;
uniform sampler2D depthTexture;
uniform highp sampler2D depthTexture;
uniform float power;
uniform vec3 color;

Expand Down
2 changes: 1 addition & 1 deletion src/hbao/shader/hbao.frag
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
varying vec2 vUv;

uniform sampler2D depthTexture;
uniform highp sampler2D depthTexture;

uniform mat4 projectionViewMatrix;
uniform int frame;
Expand Down
2 changes: 1 addition & 1 deletion src/poissionDenoise/shader/poissionDenoise.frag
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
varying vec2 vUv;

uniform sampler2D inputTexture;
uniform sampler2D depthTexture;
uniform highp sampler2D depthTexture;
uniform sampler2D normalTexture;
uniform mat4 projectionMatrixInverse;
uniform mat4 cameraMatrixWorld;
Expand Down
2 changes: 1 addition & 1 deletion src/ssao/shader/ssao.frag
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
varying vec2 vUv;

uniform sampler2D depthTexture;
uniform highp sampler2D depthTexture;
uniform sampler2D normalTexture;
uniform mat4 projectionViewMatrix;
uniform mat4 cameraMatrixWorld;
Expand Down