Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float aR = screenHeight / screenWidth; // 16:9 = 1.777, 4:3 = 1.333 etc
- float newX = (SceneUV.x / aR);
- float centerX = 0.5;
- float newY = SceneUV.y;
- float centerY = 0.5;
- float cDis;
- cDis = sqrt(pow(newX - centerX, 2) + pow(newY - centerY, 2));
- if (cDis >= .06 && cDis <= .063)
- {
- OutColor = circleColor;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement