Blender V5.3
draw::gsplat::ShapeResource Struct Reference

#include <draw_gsplat_lib.bsl.hh>

Public Member Functions

float3 get_radiance (uint gs_id) const
float get_opacity (uint gs_id) const
PointShape get_point (uint vert_id, ObjectMatrices object, ViewMatrices view) const
SplatShape get_splat (uint vert_id, ObjectMatrices object, ViewMatrices view) const

Public Attributes

const GSplatInfos & infos
const usamplerBuffer shape_data_tx
const usamplerBuffer ellipses_comp_tx
const samplerBuffer radiance_comp_tx

Detailed Description

Shader resource table for gsplat data. Used by an entry point for geometry output from precomputed ellipse data.

Definition at line 487 of file draw_gsplat_lib.bsl.hh.

Member Function Documentation

◆ get_opacity()

float draw::gsplat::ShapeResource::get_opacity ( uint gs_id) const
inline

Recover view-independent splat opacity.

Note
Available when a compute prepass is not done (shadows). Further used as gaussians should appear correct even with shader graphs that omit computed radiance.

Definition at line 575 of file draw_gsplat_lib.bsl.hh.

References shape_data_tx, texelFetch(), and draw::gsplat::detail::unpack_gaussian_opacity().

◆ get_point()

◆ get_radiance()

float3 draw::gsplat::ShapeResource::get_radiance ( uint gs_id) const
inline

Recover view-dependent radiance and alpha.

Note
Available when a compute prepass has run.

Definition at line 564 of file draw_gsplat_lib.bsl.hh.

References radiance_comp_tx, and texelFetch().

◆ get_splat()

SplatShape draw::gsplat::ShapeResource::get_splat ( uint vert_id,
ObjectMatrices object,
ViewMatrices view ) const
inline

Recover billboard splat draw data for a specific vertex.

Definition at line 599 of file draw_gsplat_lib.bsl.hh.

Member Data Documentation

◆ ellipses_comp_tx

const usamplerBuffer draw::gsplat::ShapeResource::ellipses_comp_tx

Definition at line 491 of file draw_gsplat_lib.bsl.hh.

◆ infos

const GSplatInfos& draw::gsplat::ShapeResource::infos

Definition at line 488 of file draw_gsplat_lib.bsl.hh.

Referenced by get_point().

◆ radiance_comp_tx

const samplerBuffer draw::gsplat::ShapeResource::radiance_comp_tx

Definition at line 492 of file draw_gsplat_lib.bsl.hh.

Referenced by get_radiance().

◆ shape_data_tx

const usamplerBuffer draw::gsplat::ShapeResource::shape_data_tx

Definition at line 490 of file draw_gsplat_lib.bsl.hh.

Referenced by get_opacity(), and get_point().


The documentation for this struct was generated from the following file: