Studio Lighting shader. Where to find it?

Hello guys

Was trying to find code for Studio Lighting shader in source code, but get losted.
So, where to find it?

it is called workbench_world_light_lib.glsl. It contains all the world lighting options for workbench and is included in other shaders (hence it is called a lib).

prep_specular(
        world_data.lights[0].direction.xyz, I, N, R, spec_NL[0], wrap_NL[0], spec_angle[0]);
    prep_specular(
        world_data.lights[1].direction.xyz, I, N, R, spec_NL[1], wrap_NL[1], spec_angle[1]);
    prep_specular(
        world_data.lights[2].direction.xyz, I, N, R, spec_NL[2], wrap_NL[2], spec_angle[2]);
    prep_specular(
        world_data.lights[3].direction.xyz, I, N, R, spec_NL[3], wrap_NL[3], spec_angle[3]);

Does the studio lighting.

1 Like