Differential D10575 Diff 35726 source/blender/draw/engines/eevee/shaders/effect_reflection_trace_frag.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/effect_reflection_trace_frag.glsl
| Context not available. | |||||
| #pragma BLENDER_REQUIRE(lightprobe_lib.glsl) | #pragma BLENDER_REQUIRE(lightprobe_lib.glsl) | ||||
| #pragma BLENDER_REQUIRE(bsdf_sampling_lib.glsl) | #pragma BLENDER_REQUIRE(bsdf_sampling_lib.glsl) | ||||
| #pragma BLENDER_REQUIRE(effect_reflection_lib.glsl) | #pragma BLENDER_REQUIRE(effect_reflection_lib.glsl) | ||||
| #pragma BLENDER_REQUIRE(common_colorpacking_lib.glsl) | |||||
| /* Based on: | /* Based on: | ||||
| * "Stochastic Screen Space Reflections" | * "Stochastic Screen Space Reflections" | ||||
| Context not available. | |||||
| /* Retrieve pixel data */ | /* Retrieve pixel data */ | ||||
| vec4 speccol_roughness = texture(specroughBuffer, uvs, 0).rgba; | vec4 speccol_roughness = texture(specroughBuffer, uvs, 0).rgba; | ||||
| /* unpack - 1 for Spec, 2 for Diffuse */ // TODO separate input buffers | |||||
| vec4 difcol_roughness = vec4(0.0); | |||||
| unpackVec4(speccol_roughness, speccol_roughness, difcol_roughness); | |||||
| /* Early out */ | /* Early out */ | ||||
| if (dot(speccol_roughness.rgb, vec3(1.0)) == 0.0) { | if (dot(speccol_roughness.rgb, vec3(1.0)) == 0.0) { | ||||
| Context not available. | |||||