Blender V5.3
workbench_common.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  workbench::World

Namespaces

namespace  workbench

Macros

#define EPSILON   0.00001f
#define CAVITY_BUFFER_RANGE   4.0f
#define TARGET_BITCOUNT   8u
#define METALLIC_BITS   3u
#define ROUGHNESS_BITS   (TARGET_BITCOUNT - METALLIC_BITS)

Functions

float3 workbench::normal_decode (float4 enc)
float2 workbench::normal_encode (bool front_face, float3 n)
float workbench::float_pair_encode (float v1, float v2)
void workbench::float_pair_decode (float data, float &v1, float &v2)

Macro Definition Documentation

◆ CAVITY_BUFFER_RANGE

#define CAVITY_BUFFER_RANGE   4.0f

Definition at line 14 of file workbench_common.bsl.hh.

◆ EPSILON

#define EPSILON   0.00001f

Definition at line 12 of file workbench_common.bsl.hh.

◆ METALLIC_BITS

#define METALLIC_BITS   3u

Definition at line 47 of file workbench_common.bsl.hh.

◆ ROUGHNESS_BITS

#define ROUGHNESS_BITS   (TARGET_BITCOUNT - METALLIC_BITS)

◆ TARGET_BITCOUNT

#define TARGET_BITCOUNT   8u

Definition at line 46 of file workbench_common.bsl.hh.