Skip to content

Commit f4a22ea

Browse files
jgreenepyu10055
andauthored
iOS safari shader compilation issue (#471)
Co-authored-by: Ping Yu <[email protected]>
1 parent 9c54814 commit f4a22ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

handpose/src/rotate_gpu.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ export function rotate(
5757
ivec4 coords = getOutputCoords();
5858
int x = coords[2];
5959
int y = coords[1];
60-
int coordX = int(float(x - ${centerX}) * ${cosFactor} -
61-
float(y - ${centerY}) * ${sinFactor});
62-
int coordY = int(float(x - ${centerX}) * ${sinFactor} +
63-
float(y - ${centerY}) * ${cosFactor});
60+
int coordX = int(float(x - ${centerX}) * float(${cosFactor}) -
61+
float(y - ${centerY}) * float(${sinFactor}));
62+
int coordY = int(float(x - ${centerX}) * float(${sinFactor}) +
63+
float(y - ${centerY}) * float(${cosFactor}));
6464
coordX = int(coordX + ${centerX});
6565
coordY = int(coordY + ${centerY});
6666

0 commit comments

Comments
 (0)