Skip to content

Commit 7b63b22

Browse files
committed
Add some comments to the shader.
1 parent bad5d40 commit 7b63b22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

OSVR-Unity/Assets/OSVRUnity/Resources/OsvrDistortion.shader

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
/// Author: Greg Aring
2323
/// Email: greg@sensics.com
2424
/// </summary>
25+
26+
/// Syntax reference: see http://docs.unity3d.com/Manual/SL-Shader.html
27+
2528
Shader "Osvr/OsvrDistortion" {
2629
Properties
2730
{
@@ -54,6 +57,7 @@ Properties
5457
}
5558
float2 Distort(float2 p, float k1)
5659
{
60+
/// @todo would pow improve performance here? (by using SFU if available?)
5761
float r2 = p.x * p.x + p.y * p.y;
5862

5963
float newRadius = (1 + k1*r2);

0 commit comments

Comments
 (0)