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:
parent
9b917ac181
commit
4c18127c88
52 changed files with 697 additions and 373 deletions
23
SMCode/SM.OGL/Texture/PixelInformation.cs
Normal file
23
SMCode/SM.OGL/Texture/PixelInformation.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using OpenTK.Graphics.OpenGL4;
|
||||
|
||||
namespace SM.OGL.Texture
|
||||
{
|
||||
public struct PixelInformation
|
||||
{
|
||||
public static PixelInformation RGB_LDR = new PixelInformation(PixelInternalFormat.Rgb, PixelFormat.Rgb, PixelType.UnsignedByte);
|
||||
public static PixelInformation RGB_HDR = new PixelInformation(PixelInternalFormat.Rgb16f, PixelFormat.Rgb, PixelType.Float);
|
||||
public static PixelInformation RGBA_LDR = new PixelInformation(PixelInternalFormat.Rgba, PixelFormat.Rgba, PixelType.UnsignedByte);
|
||||
public static PixelInformation RGBA_HDR = new PixelInformation(PixelInternalFormat.Rgba16f, PixelFormat.Rgba, PixelType.Float);
|
||||
|
||||
public PixelInternalFormat InternalFormat { get; }
|
||||
public PixelFormat Format { get; }
|
||||
public PixelType DataType { get; }
|
||||
|
||||
public PixelInformation(PixelInternalFormat internalFormat, PixelFormat format, PixelType dataType)
|
||||
{
|
||||
InternalFormat = internalFormat;
|
||||
Format = format;
|
||||
DataType = dataType;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue