![]() |
KiCad PCB EDA Suite
|
#include <gal/opengl/kiglew.h>
#include <algorithm>
#include <atomic>
#include <chrono>
#include <climits>
#include <thread>
#include "render_3d_raytrace.h"
#include "mortoncodes.h"
#include "../color_rgb.h"
#include "3d_fastmath.h"
#include "3d_math.h"
#include "../common_ogl/ogl_utils.h"
#include <profile.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 (GLubyte *p, const COLOR_RGB &v) |
static SFVEC3F | convertLinearToSRGB (const SFVEC3F &aRGBcolor) |
SFVEC3F | ConvertSRGBToLinear (const SFVEC3F &aSRGBcolor) |
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 626 of file render_3d_raytrace.cpp.
#define SRGB_GAMA 2.4f |
Definition at line 416 of file render_3d_raytrace.cpp.
#define USE_EXPERIMENTAL_SOFT_SHADOWS 1 |
Definition at line 1549 of file render_3d_raytrace.cpp.
Definition at line 421 of file render_3d_raytrace.cpp.
References SRGB_GAMA.
Referenced by RENDER_3D_RAYTRACE::postProcessBlurFinish(), and RENDER_3D_RAYTRACE::renderFinalColor().
Definition at line 434 of file render_3d_raytrace.cpp.
References SRGB_GAMA.
Referenced by RENDER_3D_RAYTRACE::addModels(), RENDER_3D_RAYTRACE::createItemsFromContainer(), RENDER_3D_RAYTRACE::createObject(), RENDER_3D_RAYTRACE::getModelMaterial(), RENDER_3D_RAYTRACE::insertHole(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_RAYTRACE::render(), and RENDER_3D_RAYTRACE::setupMaterials().
Definition at line 1861 of file render_3d_raytrace.cpp.
Referenced by LIB_POLYLINE::AddCorner(), PCB_POINT_EDITOR::addCorner(), DIALOG_NET_INSPECTOR::DATA_MODEL::addItem(), SHAPE_POLY_SET::chamferFilletPolygon(), SHAPE_POLY_SET::CollideEdge(), SHAPE_POLY_SET::CollideVertex(), distanceFromPointToLine(), PAD_TOOL::EnumeratePads(), KIGFX::COLOR4D::FindNearestLegacyColor(), DIALOG_SPICE_MODEL::generatePowerSource(), PCAD2KICAD::PCB::GetBoardOutline(), NET_GRID_TABLE::GetRowByNetcode(), LIB_ARC::HitTest(), PCB_SELECTION_TOOL::hitTestDistance(), RENDER_3D_RAYTRACE::initializeBlockPositions(), SEXPR::PARSER::parseString(), DSN::scale(), and DIALOG_FIND::search().
|
static |
Definition at line 469 of file render_3d_raytrace.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::renderBlockTracing().
|
inlinestatic |
Definition at line 143 of file render_3d_raytrace.cpp.
References COLOR_RGB::c.
Referenced by RENDER_3D_RAYTRACE::renderPreview().