fc513e163b
* Add new sample * Add FSR shaders * Add example template * Add Antialiasing * Add multi resolution rendering * Implement magnifier * Implement FSR EASU pass * Implement FSR RCAS pass * Improve wording of comments and UI * Remove use of ffx_a.h in cpp * Remove example external files * Perform bilinear upsampling by compute shader * Add FSR 16 Bit support * Improve magnifier picking * Fix magnifier picking * Render magnifier widget * Renaming of stuff * Separate magnifier functionality * Move FSR into separate class * Reduce scope of FSR resources * Fix FSR for Vulkan * Fix OpenGL support * Update sample screenshot
22 lines
464 B
Scala
22 lines
464 B
Scala
$input v_texcoord0
|
|
|
|
/*
|
|
* Copyright 2021 elven cache. All rights reserved.
|
|
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
|
*/
|
|
|
|
#include "../common/common.sh"
|
|
|
|
SAMPLER2D(s_color, 0);
|
|
|
|
void main()
|
|
{
|
|
vec2 texCoord = v_texcoord0;
|
|
vec4 linearColor = texture2D(s_color, texCoord);
|
|
|
|
// this pass is writing directly out to backbuffer, convert from linear to gamma
|
|
vec4 color = vec4(toGamma(linearColor.xyz), linearColor.w);
|
|
|
|
gl_FragColor = color;
|
|
}
|