Minor shader improvement to the bilateral blur

This commit is contained in:
Mathias Agopian
2020-01-23 15:27:54 -08:00
committed by Mathias Agopian
parent aa3b0a4e16
commit dbe01d76a2

View File

@@ -34,7 +34,7 @@ material {
vertex {
void postProcessVertex(inout PostProcessVertexInputs postProcess) {
postProcess.vertex.xy = postProcess.normalizedUV;
postProcess.vertex.xy = postProcess.normalizedUV * materialParams.resolution.xy;
}
}
@@ -78,7 +78,7 @@ fragment {
}
void postProcess(inout PostProcessInputs postProcess) {
highp ivec2 uv = ivec2(variable_vertex.xy * materialParams.resolution.xy);
highp ivec2 uv = ivec2(variable_vertex.xy);
float depth = texelFetch(materialParams_depth, uv, 0).r;