KiCad PCB EDA Suite
|
#include <algorithm>
#include <atomic>
#include <chrono>
#include <thread>
#include "render_3d_raytrace_base.h"
#include "mortoncodes.h"
#include "../color_rgba.h"
#include "3d_fastmath.h"
#include "3d_math.h"
#include <core/thread_pool.h>
#include <core/profile.h>
#include <wx/log.h>
Go to the source code of this file.
Macros | |
#define | SRGB_GAMA 2.4f |
#define | DISP_FACTOR 0.075f |
#define | USE_EXPERIMENTAL_SOFT_SHADOWS 1 |
Functions | |
static void | SetPixel (uint8_t *p, const COLOR_RGBA &v) |
static SFVEC3F | convertLinearToSRGB (const SFVEC3F &aRGBcolor) |
static SFVEC4F | convertLinearToSRGBA (const SFVEC4F &aRGBAcolor) |
SFVEC3F | ConvertSRGBToLinear (const SFVEC3F &aSRGBcolor) |
SFVEC4F | ConvertSRGBAToLinear (const SFVEC4F &aSRGBAcolor) |
static void | HITINFO_PACKET_init (HITINFO_PACKET *aHitPacket) |
static float | distance (const SFVEC2UI &a, const SFVEC2UI &b) |
#define DISP_FACTOR 0.075f |
Definition at line 464 of file render_3d_raytrace_base.cpp.
#define SRGB_GAMA 2.4f |
Definition at line 244 of file render_3d_raytrace_base.cpp.
#define USE_EXPERIMENTAL_SOFT_SHADOWS 1 |
Definition at line 1383 of file render_3d_raytrace_base.cpp.
Definition at line 249 of file render_3d_raytrace_base.cpp.
References SRGB_GAMA.
Referenced by convertLinearToSRGBA(), and RENDER_3D_RAYTRACE_BASE::renderFinalColor().
Definition at line 259 of file render_3d_raytrace_base.cpp.
References convertLinearToSRGB().
Definition at line 278 of file render_3d_raytrace_base.cpp.
References ConvertSRGBToLinear().
Referenced by RENDER_3D_RAYTRACE_BASE::render().
Definition at line 267 of file render_3d_raytrace_base.cpp.
References SRGB_GAMA.
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), ConvertSRGBAToLinear(), RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), RENDER_3D_RAYTRACE_BASE::createObject(), RENDER_3D_RAYTRACE_BASE::getModelMaterial(), RENDER_3D_RAYTRACE_BASE::insertHole(), RENDER_3D_RAYTRACE_BASE::Reload(), and RENDER_3D_RAYTRACE_BASE::setupMaterials().
Definition at line 1652 of file render_3d_raytrace_base.cpp.
Referenced by EE_POINT_EDITOR::addCorner(), PCB_POINT_EDITOR::addCorner(), PCB_POINT_EDITOR::chamferCorner(), SHAPE_POLY_SET::chamferFilletPolygon(), CIRCLE::Contains(), distanceFromPointToLine(), PAD_TOOL::EnumeratePads(), KIGFX::COLOR4D::FindNearestLegacyColor(), PCAD2KICAD::PCAD_PCB::GetBoardOutline(), PCB_SELECTION_TOOL::hitTestDistance(), EDA_TEXT::Levenshtein(), BE_SHAPE_POINT::Paths(), DSN::scale(), and DRC_TEST_PROVIDER_CREEPAGE::testCreepage().
|
static |
Definition at line 307 of file render_3d_raytrace_base.cpp.
References HITINFO::m_acc_node_info, HITINFO_PACKET::m_HitInfo, HITINFO::m_HitNormal, HITINFO_PACKET::m_hitresult, HITINFO::m_ShadowFactor, HITINFO::m_tHit, and RAYPACKET_RAYS_PER_PACKET.
Referenced by RENDER_3D_RAYTRACE_BASE::renderBlockTracing().
|
inlinestatic |
Definition at line 110 of file render_3d_raytrace_base.cpp.
References COLOR_RGBA::c.
Referenced by RENDER_3D_RAYTRACE_BASE::renderPreview().