Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_subsurface.c
| Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | void EEVEE_subsurface_add_pass(EEVEE_ViewLayerData *sldata, | ||||
| DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); | DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); | ||||
| GPUTexture **depth_src = GPU_depth_blitting_workaround() ? &effects->sss_stencil : &dtxl->depth; | GPUTexture **depth_src = GPU_depth_blitting_workaround() ? &effects->sss_stencil : &dtxl->depth; | ||||
| struct GPUTexture *sss_tex_profile = NULL; | struct GPUTexture *sss_tex_profile = NULL; | ||||
| struct GPUUniformBuf *sss_profile = GPU_material_sss_profile_get( | struct GPUUniformBuf *sss_profile = GPU_material_sss_profile_get( | ||||
| gpumat, stl->effects->sss_sample_count, &sss_tex_profile); | gpumat, stl->effects->sss_sample_count, &sss_tex_profile); | ||||
| if (!sss_profile) { | if (!sss_profile) { | ||||
| BLI_assert(0 && "SSS pass requested but no SSS data was found"); | BLI_assert_msg(0, "SSS pass requested but no SSS data was found"); | ||||
| return; | return; | ||||
| } | } | ||||
| /* Limit of 8 bit stencil buffer. ID 255 is refraction. */ | /* Limit of 8 bit stencil buffer. ID 255 is refraction. */ | ||||
| if (effects->sss_surface_count >= 254) { | if (effects->sss_surface_count >= 254) { | ||||
| /* TODO: display message. */ | /* TODO: display message. */ | ||||
| printf("Error: Too many different Subsurface shader in the scene.\n"); | printf("Error: Too many different Subsurface shader in the scene.\n"); | ||||
| return; | return; | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||