Blender V5.3
ScalingRange Struct Reference

#include <draw_shader_shared.hh>

Public Member Functions

float3 scale_from_unit (float3 value) const
float3 scale_to_unit (float3 value) const

Public Attributes

packed_float3 range_add
float _pad0
packed_float3 range_mul
float _pad1

Detailed Description

Definition at line 553 of file draw_shader_shared.hh.

Member Function Documentation

◆ scale_from_unit()

float3 ScalingRange::scale_from_unit ( float3 value) const
inline

Scale from a value in [0, 1] to a value in the scaling range.

Definition at line 560 of file draw_shader_shared.hh.

References range_add, and range_mul.

Referenced by draw::gsplat::detail::unpack_gaussian_mean(), draw::gsplat::detail::unpack_gaussian_scale(), and draw::gsplat::detail::unpack_sh().

◆ scale_to_unit()

float3 ScalingRange::scale_to_unit ( float3 value) const
inline

Scale from a value in the scaling range to a value in[0, 1].

Definition at line 567 of file draw_shader_shared.hh.

References blender::math::clamp(), range_add, and range_mul.

Member Data Documentation

◆ _pad0

float ScalingRange::_pad0

Definition at line 555 of file draw_shader_shared.hh.

◆ _pad1

float ScalingRange::_pad1

Definition at line 557 of file draw_shader_shared.hh.

◆ range_add

packed_float3 ScalingRange::range_add

Definition at line 554 of file draw_shader_shared.hh.

Referenced by scale_from_unit(), and scale_to_unit().

◆ range_mul

packed_float3 ScalingRange::range_mul

Definition at line 556 of file draw_shader_shared.hh.

Referenced by scale_from_unit(), and scale_to_unit().


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