Skip to content

Commit

Permalink
fix: downgrade frag shader for macos compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Oct 29, 2022
1 parent bc5e559 commit 06cf493
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_name = PolyBlur
mod_id = polyblur
mod_version = 1.0.0-beta1
mod_version = 1.0.0-beta2

essential.defaults.loom=0

Expand Down
9 changes: 6 additions & 3 deletions src/main/resources/assets/polyblur/shaders/monkeyblur.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 130
#version 120

uniform sampler2D texture;
uniform sampler2D depthtex;
Expand All @@ -15,8 +15,11 @@ uniform float strength;

varying vec4 texcoord;

uniform sampler2D textureName;
uniform vec2 textureName_size;

float maxDepth(vec2 texcoord, sampler2D tex) {
vec2 t = 1 / textureSize(tex, 0);
vec2 t = 1 / textureName_size;

float depth = 1;

Expand All @@ -31,7 +34,7 @@ float maxDepth(vec2 texcoord, sampler2D tex) {
}

void main() {
vec2 texelSize = textureSize(depthtex, 0);
vec2 texelSize = textureName_size;

vec3 color = texture2D(texture, texcoord.st).rgb;

Expand Down

0 comments on commit 06cf493

Please sign in to comment.