Added Post Processing, Improved UI a lot, Made File Explorer look nicer, Fixed up Raycast Selection, Added Placeholder Playmode Button, Added cameras, Organized Create menu in Inspector, Added outlines to selected objects, added view output for viewing cameras while in Playmode area.
This commit is contained in:
15
Resources/Shaders/postfx_bright_frag.glsl
Normal file
15
Resources/Shaders/postfx_bright_frag.glsl
Normal file
@@ -0,0 +1,15 @@
|
||||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec2 TexCoord;
|
||||
|
||||
uniform sampler2D sceneTex;
|
||||
uniform float threshold = 1.0;
|
||||
|
||||
void main() {
|
||||
vec3 c = texture(sceneTex, TexCoord).rgb;
|
||||
float luma = dot(c, vec3(0.2125, 0.7154, 0.0721));
|
||||
float bright = max(luma - threshold, 0.0);
|
||||
vec3 masked = c * step(0.0, bright);
|
||||
FragColor = vec4(masked, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user