05.01.2021

+ Bloom effect
+ PixelInformation
+ Many Summaries
+ Add-methods for CVectors
+ Exposure-Field in GenericCamera for HDR.

~ ColorAttachments now can have PixelInformation
~ Transformed MeshAttributes to a own class
~ Fixed the non-applying of transformations at texts
~ Added more information to the context
~ Improved Pipeline-Process.
~ Changed how Uniform takes arrays

- Light system
This commit is contained in:
Michel Fedde 2021-01-06 17:04:15 +01:00
parent 9b917ac181
commit 4c18127c88
52 changed files with 697 additions and 373 deletions

View file

@ -35,14 +35,7 @@ namespace SM.Base.Types
X = x;
}
/// <summary>
/// Sets the X-Component.
/// </summary>
/// <param name="x">X-Component</param>
public virtual void Set(float x)
{
X = x;
}
/// <summary>
/// Get the length of the vector.
@ -66,6 +59,19 @@ namespace SM.Base.Types
NormalizationProcess(length);
}
/// <summary>
/// Sets the X-Component.
/// </summary>
/// <param name="x">X-Component</param>
public virtual void Set(float uniform)
{
X = uniform;
}
public virtual void Add(float uniform)
{
X += uniform;
}
/// <summary>
/// Conversion into <see cref="float"/>

View file

@ -70,6 +70,23 @@ namespace SM.Base.Types
Y = y;
}
public override void Add(float uniform)
{
base.Add(uniform);
Y += uniform;
}
public void Add(Vector2 vector)
{
Add(vector.X, vector.Y);
}
public void Add(float x, float y)
{
base.Add(x);
Y += y;
}
/// <summary>
/// Converts to <see cref="Vector2"/>
/// </summary>

View file

@ -63,6 +63,23 @@ namespace SM.Base.Types
Set(vector.X, vector.Y, vector.Z);
}
public override void Add(float uniform)
{
base.Add(uniform);
Z += uniform;
}
public void Add(Vector3 vector)
{
Add(vector.X, vector.Y, vector.Z);
}
public void Add(float x, float y, float z)
{
base.Add(x,y);
Z += z;
}
/// <summary>
/// Converts to <see cref="Vector3"/>
/// </summary>