Created
May 6, 2015 03:48
-
-
Save z3t0/26bfdc9dcb6130ae0351 to your computer and use it in GitHub Desktop.
Can't Seem to figure out what's wrong on line 12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 void sideLengths( | |
2 highp float hypotenuse, | |
3 highp float angleInDegrees, | |
4 out highp float opposite, | |
5 out highp float adjacent) { | |
6 | |
7 | |
8 //TODO: Calculate side lengths here | |
9 //sin(angleInDegrees) = opposite/adjacent | |
10 adjacent = cos(radians(angleInDegrees)) * hypotenuse; | |
11 opposite = sin(radians(angleInDegrees)) * adjacent; | |
12 } | |
13 | |
14 //Do not change this line | |
15 #pragma glslify: export(sideLengths) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution: