![]() |
KiCad PCB EDA Suite
|
#include <GL/glew.h>
#include <climits>
#include <atomic>
#include <thread>
#include <chrono>
#include "c3d_render_raytracing.h"
#include "mortoncodes.h"
#include "../ccolorrgb.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 CCOLORRGB &v) |
static SFVEC3F | convertLinearToSRGB (const SFVEC3F &aRGBcolor) |
SFVEC3F | ConvertSRGBToLinear (const SFVEC3F &aSRGBcolor) |
static void | HITINFO_PACKET_init (HITINFO_PACKET *aHitPacket) |
#define DISP_FACTOR 0.075f |
Definition at line 655 of file c3d_render_raytracing.cpp.
#define SRGB_GAMA 2.4f |
Definition at line 433 of file c3d_render_raytracing.cpp.
#define USE_EXPERIMENTAL_SOFT_SHADOWS 1 |
Definition at line 1714 of file c3d_render_raytracing.cpp.
Definition at line 437 of file c3d_render_raytracing.cpp.
References SRGB_GAMA.
Referenced by C3D_RENDER_RAYTRACING::rt_final_color(), and C3D_RENDER_RAYTRACING::rt_render_post_process_blur_finish().
Definition at line 450 of file c3d_render_raytracing.cpp.
References SRGB_GAMA.
Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), C3D_RENDER_RAYTRACING::create_3d_object_from(), C3D_RENDER_RAYTRACING::insert3DPadHole(), C3D_RENDER_RAYTRACING::insert3DViaHole(), C3D_RENDER_RAYTRACING::reload(), C3D_RENDER_RAYTRACING::render(), and C3D_RENDER_RAYTRACING::setupMaterials().
|
static |
Definition at line 488 of file c3d_render_raytracing.cpp.
References i, 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 C3D_RENDER_RAYTRACING::rt_render_trace_block().
|
inlinestatic |
Definition at line 143 of file c3d_render_raytracing.cpp.
References CCOLORRGB::c.
Referenced by C3D_RENDER_RAYTRACING::render_preview().