fix phosphorFeedback in geom-deluxe

This commit is contained in:
hizzlekizzle 2019-08-13 13:35:32 -05:00 committed by GitHub
parent 599d385f3a
commit 4904f5c9c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,12 +18,12 @@ void main()
layout(location = 0) in vec2 vTexCoord;
layout(location = 0) out vec4 FragColor;
layout(set = 0, binding = 2) uniform sampler2D Source;
layout(set = 0, binding = 3) uniform sampler2D phosphor;
layout(set = 0, binding = 3) uniform sampler2D phosphorFeedback;
void main()
{
vec4 screen = texture(Source, vTexCoord);
vec4 phosphor = texture(phosphor, vTexCoord);
vec4 phosphor = texture(phosphorFeedback, vTexCoord);
vec3 lum = vec3(0.299,0.587,0.114);
float bscrn = dot(pow(screen.rgb,vec3(gamma)),lum);