Differential D16243 Diff 58431 source/blender/draw/engines/eevee/shaders/effect_velocity_resolve_frag.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/effect_velocity_resolve_frag.glsl
| #pragma BLENDER_REQUIRE(common_math_lib.glsl) | #pragma BLENDER_REQUIRE(common_math_lib.glsl) | ||||
| uniform depth2D depthBuffer; | |||||
| uniform mat4 prevViewProjMatrix; | |||||
| uniform mat4 currViewProjMatrixInv; | |||||
| uniform mat4 nextViewProjMatrix; | |||||
| out vec4 outData; | |||||
| void main() | void main() | ||||
| { | { | ||||
| /* Extract pixel motion vector from camera movement. */ | /* Extract pixel motion vector from camera movement. */ | ||||
| ivec2 texel = ivec2(gl_FragCoord.xy); | ivec2 texel = ivec2(gl_FragCoord.xy); | ||||
| vec2 uv_curr = gl_FragCoord.xy / vec2(textureSize(depthBuffer, 0).xy); | vec2 uv_curr = gl_FragCoord.xy / vec2(textureSize(depthBuffer, 0).xy); | ||||
| float depth = texelFetch(depthBuffer, texel, 0).r; | float depth = texelFetch(depthBuffer, texel, 0).r; | ||||
| Show All 13 Lines | |||||