+ 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
30 lines
No EOL
762 B
C#
30 lines
No EOL
762 B
C#
#region usings
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
#endregion
|
|
|
|
namespace SM.OGL.Shaders
|
|
{
|
|
/// <summary>
|
|
/// Holds Actions for the preprocessor.
|
|
/// </summary>
|
|
public class ShaderPreProcess
|
|
{
|
|
/// <summary>
|
|
/// Holds actions for the preprocessor.
|
|
/// </summary>
|
|
public static Dictionary<string, Action<ShaderFile, string>> Actions =
|
|
new Dictionary<string, Action<ShaderFile, string>>
|
|
{
|
|
{"import", Import}
|
|
};
|
|
|
|
private static void Import(ShaderFile file, string param)
|
|
{
|
|
foreach (var extension in param.Split(' '))
|
|
file.GLSLExtensions.Add(ShaderExtensions.Extensions[extension]);
|
|
}
|
|
}
|
|
} |