Composit Target and gamma correct rendering

This commit is contained in:
Simon Lübeß
2022-05-31 22:41:20 +02:00
parent 8db2ce1d05
commit e41645e12a
18 changed files with 750 additions and 30 deletions
+15
View File
@@ -83,5 +83,20 @@ namespace GlitchyEngine.Math
{
return .(Math.Cos(angle), Math.Sin(angle)) * radius;
}
public static Vector2 Pow(Vector2 v, float p)
{
return Vector2(Math.Pow(v.X, p), Math.Pow(v.Y, p));
}
public static Vector3 Pow(Vector3 v, float p)
{
return Vector3(Math.Pow(v.X, p), Math.Pow(v.Y, p), Math.Pow(v.Z, p));
}
public static Vector4 Pow(Vector4 v, float p)
{
return Vector4(Math.Pow(v.X, p), Math.Pow(v.Y, p), Math.Pow(v.Z, p), Math.Pow(v.W, p));
}
}
}