Differential D15753 Diff 55618 source/blender/draw/engines/eevee_next/shaders/eevee_surf_world_frag.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee_next/shaders/eevee_surf_world_frag.glsl
| Show All 27 Lines | void main() | ||||
| imageStore(rp_normal_img, out_texel, vec4(0.0, 0.0, 0.0, 1.0)); | imageStore(rp_normal_img, out_texel, vec4(0.0, 0.0, 0.0, 1.0)); | ||||
| imageStore( | imageStore( | ||||
| rp_light_img, ivec3(out_texel, RENDER_PASS_LAYER_DIFFUSE_LIGHT), vec4(0.0, 0.0, 0.0, 1.0)); | rp_light_img, ivec3(out_texel, RENDER_PASS_LAYER_DIFFUSE_LIGHT), vec4(0.0, 0.0, 0.0, 1.0)); | ||||
| imageStore( | imageStore( | ||||
| rp_light_img, ivec3(out_texel, RENDER_PASS_LAYER_SPECULAR_LIGHT), vec4(0.0, 0.0, 0.0, 1.0)); | rp_light_img, ivec3(out_texel, RENDER_PASS_LAYER_SPECULAR_LIGHT), vec4(0.0, 0.0, 0.0, 1.0)); | ||||
| imageStore(rp_diffuse_color_img, out_texel, vec4(0.0, 0.0, 0.0, 1.0)); | imageStore(rp_diffuse_color_img, out_texel, vec4(0.0, 0.0, 0.0, 1.0)); | ||||
| imageStore(rp_specular_color_img, out_texel, vec4(0.0, 0.0, 0.0, 1.0)); | imageStore(rp_specular_color_img, out_texel, vec4(0.0, 0.0, 0.0, 1.0)); | ||||
| imageStore(rp_emission_img, out_texel, vec4(0.0, 0.0, 0.0, 1.0)); | imageStore(rp_emission_img, out_texel, vec4(0.0, 0.0, 0.0, 1.0)); | ||||
| imageStore(rp_cryptomatte_img, out_texel, vec4(0.0)); | |||||
| out_background.rgb = safe_color(g_emission) * (1.0 - g_holdout); | out_background.rgb = safe_color(g_emission) * (1.0 - g_holdout); | ||||
| out_background.a = saturate(avg(g_transmittance)) * g_holdout; | out_background.a = saturate(avg(g_transmittance)) * g_holdout; | ||||
| /* World opacity. */ | /* World opacity. */ | ||||
| out_background = mix(vec4(0.0, 0.0, 0.0, 1.0), out_background, world_opacity_fade); | out_background = mix(vec4(0.0, 0.0, 0.0, 1.0), out_background, world_opacity_fade); | ||||
| } | } | ||||