Differential D16243 Diff 58431 source/blender/draw/engines/eevee/shaders/effect_reflection_resolve_frag.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/effect_reflection_resolve_frag.glsl
| Show All 12 Lines | |||||
| * by Tomasz Stachowiak. | * by Tomasz Stachowiak. | ||||
| * https://www.ea.com/frostbite/news/stochastic-screen-space-reflections | * https://www.ea.com/frostbite/news/stochastic-screen-space-reflections | ||||
| * and | * and | ||||
| * "Stochastic all the things: raytracing in hybrid real-time rendering" | * "Stochastic all the things: raytracing in hybrid real-time rendering" | ||||
| * by Tomasz Stachowiak. | * by Tomasz Stachowiak. | ||||
| * https://media.contentapi.ea.com/content/dam/ea/seed/presentations/dd18-seed-raytracing-in-hybrid-real-time-rendering.pdf | * https://media.contentapi.ea.com/content/dam/ea/seed/presentations/dd18-seed-raytracing-in-hybrid-real-time-rendering.pdf | ||||
| */ | */ | ||||
| uniform sampler2D colorBuffer; | |||||
| uniform sampler2D normalBuffer; | |||||
| uniform sampler2D specroughBuffer; | |||||
| uniform sampler2D hitBuffer; | |||||
| uniform sampler2D hitDepth; | |||||
| uniform int samplePoolOffset; | |||||
| in vec4 uvcoordsvar; | |||||
| out vec4 fragColor; | |||||
| vec4 ssr_get_scene_color_and_mask(vec3 hit_vP, int planar_index, float mip) | vec4 ssr_get_scene_color_and_mask(vec3 hit_vP, int planar_index, float mip) | ||||
| { | { | ||||
| vec2 uv; | vec2 uv; | ||||
| if (planar_index != -1) { | if (planar_index != -1) { | ||||
| uv = get_uvs_from_view(hit_vP); | uv = get_uvs_from_view(hit_vP); | ||||
| /* Planar X axis is flipped. */ | /* Planar X axis is flipped. */ | ||||
| uv.x = 1.0 - uv.x; | uv.x = 1.0 - uv.x; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines | |||||