Blender V5.3
eevee_surf_world.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  eevee::SurfWorld
struct  eevee::SurfWorldFragOut

Namespaces

namespace  eevee

Functions

float4 closure_to_rgba_world (KernelGlobals &kg, ShadingData &sd, Closure)
void eevee::surf_world (KernelGlobals &kg, PipelineConstants &pipe, SurfWorld &srt, const LightprobeRenderData &lightprobes, RenderPassOutput &render_passes, const Uniform &uni, const draw::View &views, const float4 frag_co, const VertOutCommon &interp, SurfWorldFragOut &frag_out, const bool front_face)

Function Documentation

◆ closure_to_rgba_world()

float4 closure_to_rgba_world ( KernelGlobals & kg,
ShadingData & sd,
Closure  )

Background used to shade the world.

Outputs shading parameter per pixel using a set of randomized BSDFs.

Definition at line 19 of file eevee_surf_world.bsl.hh.

References average(), Closure, closure_to_rgba_world(), closure_weights_reset(), saturate, and ShadingData::transmittance.

Referenced by closure_to_rgba_world().