+ 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
23 lines
No EOL
1 KiB
C#
23 lines
No EOL
1 KiB
C#
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;
|
|
}
|
|
}
|
|
} |