KiCad PCB EDA Suite
Loading...
Searching...
No Matches
render_3d_raytrace_base.h File Reference
#include "accelerators/container_3d.h"
#include "accelerators/accelerator_3d.h"
#include "../render_3d_base.h"
#include "light.h"
#include "../post_shader_ssao.h"
#include "material.h"
#include <plugins/3dapi/c3dmodel.h>
#include <map>

Go to the source code of this file.

Classes

class  RENDER_3D_RAYTRACE_BASE
 

Macros

#define USE_SRGB_SPACE
 

Typedefs

typedef std::vector< BLINN_PHONG_MATERIALMODEL_MATERIALS
 Vector of materials.
 
typedef std::map< const S3DMODEL *, MODEL_MATERIALSMAP_MODEL_MATERIALS
 Maps a S3DMODEL pointer with a created BLINN_PHONG_MATERIAL vector.
 

Enumerations

enum  RT_RENDER_STATE {
  RT_RENDER_STATE_TRACING = 0 , RT_RENDER_STATE_POST_PROCESS_SHADE , RT_RENDER_STATE_POST_PROCESS_BLUR_AND_FINISH , RT_RENDER_STATE_FINISH ,
  RT_RENDER_STATE_MAX
}
 

Functions

SFVEC3F ConvertSRGBToLinear (const SFVEC3F &aSRGBcolor)
 
SFVEC4F ConvertSRGBAToLinear (const SFVEC4F &aSRGBAcolor)
 

Macro Definition Documentation

◆ USE_SRGB_SPACE

#define USE_SRGB_SPACE

Definition at line 212 of file render_3d_raytrace_base.h.

Typedef Documentation

◆ MAP_MODEL_MATERIALS

typedef std::map< const S3DMODEL* , MODEL_MATERIALS > MAP_MODEL_MATERIALS

Maps a S3DMODEL pointer with a created BLINN_PHONG_MATERIAL vector.

Definition at line 42 of file render_3d_raytrace_base.h.

◆ MODEL_MATERIALS

typedef std::vector< BLINN_PHONG_MATERIAL > MODEL_MATERIALS

Vector of materials.

Definition at line 39 of file render_3d_raytrace_base.h.

Enumeration Type Documentation

◆ RT_RENDER_STATE

Enumerator
RT_RENDER_STATE_TRACING 
RT_RENDER_STATE_POST_PROCESS_SHADE 
RT_RENDER_STATE_POST_PROCESS_BLUR_AND_FINISH 
RT_RENDER_STATE_FINISH 
RT_RENDER_STATE_MAX 

Definition at line 44 of file render_3d_raytrace_base.h.

Function Documentation

◆ ConvertSRGBAToLinear()

SFVEC4F ConvertSRGBAToLinear ( const SFVEC4F aSRGBAcolor)

Definition at line 278 of file render_3d_raytrace_base.cpp.

References ConvertSRGBToLinear().

Referenced by RENDER_3D_RAYTRACE_BASE::render().

◆ ConvertSRGBToLinear()