Skip to content

Commit

Permalink
renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Orangemoon committed Jul 4, 2024
1 parent 9e57fcb commit 68296da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/ShadedStamps/shaderEditorExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ highp vec2 scratch3_apply_UV_Effects(highp vec2 scratch3_input_uv) {
}
//Scratch 3 Whirl
if (u_whirl > 0.0) {
if (u_whirl != 0.0) {
const highp float kRadius = 0.5;
highp vec2 offset = scratch3_input_uv - scratch3_kCenter;
highp float offsetMagnitude = length(offset);
Expand All @@ -99,7 +99,7 @@ highp vec2 scratch3_apply_UV_Effects(highp vec2 scratch3_input_uv) {
}
//Scratch 3 Fisheye
if (u_fisheye > 0.0) {
if (u_fisheye != 0.0) {
highp vec2 vec = (scratch3_input_uv - scratch3_kCenter) / scratch3_kCenter;
highp float vecLength = length(vec);
highp float r = pow(min(vecLength, 1.0), u_fisheye) * max(1.0, vecLength);
Expand Down

0 comments on commit 68296da

Please sign in to comment.