Eevee: Put pack AO parameters.
This commit is contained in:
parent
823144f0a6
commit
12b985f1b1
Notes:
blender-bot
2023-02-14 06:52:08 +01:00
Referenced by issue #51876, Immediate Shutdown when entering edit mode in blender render
|
@ -219,9 +219,7 @@ static void add_standard_uniforms(DRWShadingGroup *shgrp, EEVEE_SceneLayerData *
|
|||
if (vedata->stl->effects->use_ao) {
|
||||
DRW_shgroup_uniform_vec4(shgrp, "viewvecs[0]", (float *)e_data.viewvecs, 2);
|
||||
DRW_shgroup_uniform_buffer(shgrp, "minMaxDepthTex", &vedata->stl->g_data->minmaxz);
|
||||
DRW_shgroup_uniform_float(shgrp, "aoDistance", &vedata->stl->effects->ao_dist, 1);
|
||||
DRW_shgroup_uniform_float(shgrp, "aoSamples", &vedata->stl->effects->ao_samples, 1);
|
||||
DRW_shgroup_uniform_float(shgrp, "aoFactor", &vedata->stl->effects->ao_factor, 1);
|
||||
DRW_shgroup_uniform_vec3(shgrp, "aoParameters", &vedata->stl->effects->ao_dist, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,9 +8,11 @@
|
|||
#define MAX_THETA_STEP 12
|
||||
|
||||
uniform sampler2D minMaxDepthTex;
|
||||
uniform float aoDistance;
|
||||
uniform float aoSamples;
|
||||
uniform float aoFactor;
|
||||
uniform vec3 aoParameters;
|
||||
|
||||
#define aoDistance aoParameters.x
|
||||
#define aoSamples aoParameters.y
|
||||
#define aoFactor aoParameters.z
|
||||
|
||||
float get_max_horizon(vec2 co, vec3 x, float h, float lod)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue