We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bad5d40 commit 7b63b22Copy full SHA for 7b63b22
1 file changed
OSVR-Unity/Assets/OSVRUnity/Resources/OsvrDistortion.shader
@@ -22,6 +22,9 @@
22
/// Author: Greg Aring
23
/// Email: greg@sensics.com
24
/// </summary>
25
+
26
+/// Syntax reference: see http://docs.unity3d.com/Manual/SL-Shader.html
27
28
Shader "Osvr/OsvrDistortion" {
29
Properties
30
{
@@ -54,6 +57,7 @@ Properties
54
57
}
55
58
float2 Distort(float2 p, float k1)
56
59
60
+ /// @todo would pow improve performance here? (by using SFU if available?)
61
float r2 = p.x * p.x + p.y * p.y;
62
63
float newRadius = (1 + k1*r2);
0 commit comments