+ 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
32 lines
No EOL
566 B
GLSL
32 lines
No EOL
566 B
GLSL
#version 330
|
|
|
|
//# region vertex
|
|
|
|
//# import SM_base_vertex_basic
|
|
void ApplyTexModifier();
|
|
void CheckVertexColor();
|
|
void ApplyModelTransformation();
|
|
|
|
void vmain() {
|
|
ApplyTexModifier();
|
|
CheckVertexColor();
|
|
ApplyModelTransformation();
|
|
}
|
|
|
|
//# region fragment
|
|
in vec2 vTexture;
|
|
in vec4 vColor;
|
|
|
|
uniform bool occlude;
|
|
|
|
uniform vec4 Tint;
|
|
uniform bool UseTexture;
|
|
uniform sampler2D Texture;
|
|
|
|
layout(location = 0) out vec4 color;
|
|
layout(location = 1) out vec4 bloom;
|
|
|
|
void fmain() {
|
|
color = vColor * Tint;
|
|
if (UseTexture) color *= texture(Texture, vTexture);
|
|
} |