Struct in ldk_renderer.h

LDKRendererShadowPass

typedef struct LDKRendererShadowPass{
  u32 resolution;
  float distance;
  LDKRHIContext *rhi;
  LDKRHIShaderModule vertex_shader_module;
  LDKRHIShaderModule fragment_shader_module;
  LDKRHIShaderModule cutout_vertex_shader_module;
  LDKRHIShaderModule cutout_fragment_shader_module;
  LDKRHIShaderModule instanced_vertex_shader_module;
  LDKRHIShaderModule cutout_instanced_vertex_shader_module;
  LDKRHIShaderModule vegetation_vertex_shader_module;
  LDKRHIShaderModule vegetation_instanced_vertex_shader_module;
  LDKRHIBindingsLayout bindings_layout;
  LDKRHIPipeline pipeline;
  LDKRHIPipeline cutout_pipeline;
  LDKRHIPipeline instanced_pipeline;
  LDKRHIPipeline cutout_instanced_pipeline;
  LDKRHIPipeline vegetation_pipeline;
  LDKRHIPipeline vegetation_instanced_pipeline;
  LDKRHIBuffer camera_buffer;
  LDKRHIBuffer object_buffer;
  LDKRHIBuffer material_buffer;
  LDKRHIBuffer instance_buffer;
  LDKRHIBuffer instance_uv_buffer;
  u32 instance_capacity;
  LDKRHIBindings bindings;
  LDKRHIBindings vegetation_bindings;
  LDKRendererBindingsCacheEntry *cutout_bindings_cache;
  u32 cutout_bindings_cache_count;
  u32 cutout_bindings_cache_capacity;
  LDKRHITexture depth_texture;
  LDKRHISampler sampler;
}LDKRendererShadowPass;
Function in ldk_renderer.h

ldk_renderer_shadow_settings_set

Set the renderer shadow settings.

LDK_API bool ldk_renderer_shadow_settings_set(
 LDKRenderer *renderer,
 u32 resolution,
 float distance
);

Parameters

LDKRenderer *renderer
Renderer receiving this request.
u32 resolution
Resolution setting.
float distance
Distance in world-space units.

Returns

True if the operation succeeds; false otherwise.