Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_scene_types.h
| Show First 20 Lines • Show All 664 Lines • ▼ Show 20 Lines | typedef struct RenderData { | ||||
| * What to do with the sky/background. | * What to do with the sky/background. | ||||
| * Picks sky/premul blending for the background. | * Picks sky/premul blending for the background. | ||||
| */ | */ | ||||
| short alphamode; | short alphamode; | ||||
| /** | /** | ||||
| * The number of samples to use per pixel. | * The number of samples to use per pixel. | ||||
| */ | */ | ||||
| short osa; | short osa DNA_DEPRECATED; | ||||
| short frs_sec; | short frs_sec; | ||||
| char _pad[6]; | char _pad[6]; | ||||
| /* safety, border and display rect */ | /* safety, border and display rect */ | ||||
| rctf safety, border; | rctf safety, border; | ||||
| rcti disprect; | rcti disprect; | ||||
| ▲ Show 20 Lines • Show All 879 Lines • ▼ Show 20 Lines | typedef struct SceneDisplay { | ||||
| float light_direction[3]; | float light_direction[3]; | ||||
| float shadow_shift, shadow_focus; | float shadow_shift, shadow_focus; | ||||
| /** Settings for Cavity Shader. */ | /** Settings for Cavity Shader. */ | ||||
| float matcap_ssao_distance; | float matcap_ssao_distance; | ||||
| float matcap_ssao_attenuation; | float matcap_ssao_attenuation; | ||||
| int matcap_ssao_samples; | int matcap_ssao_samples; | ||||
| /** Method of AA for viewport rendering and image rendering */ | |||||
| char viewport_aa; | |||||
| char render_aa; | |||||
| char _pad[6]; | |||||
| /** OpenGL render engine settings. */ | /** OpenGL render engine settings. */ | ||||
| View3DShading shading; | View3DShading shading; | ||||
| } SceneDisplay; | } SceneDisplay; | ||||
| typedef struct SceneEEVEE { | typedef struct SceneEEVEE { | ||||
| int flag; | int flag; | ||||
| int gi_diffuse_bounces; | int gi_diffuse_bounces; | ||||
| int gi_cubemap_resolution; | int gi_cubemap_resolution; | ||||
| ▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | |||||
| /* RenderData.flag */ | /* RenderData.flag */ | ||||
| /* use preview range */ | /* use preview range */ | ||||
| #define SCER_PRV_RANGE (1 << 0) | #define SCER_PRV_RANGE (1 << 0) | ||||
| #define SCER_LOCK_FRAME_SELECTION (1 << 1) | #define SCER_LOCK_FRAME_SELECTION (1 << 1) | ||||
| /* show/use subframes (for checking motion blur) */ | /* show/use subframes (for checking motion blur) */ | ||||
| #define SCER_SHOW_SUBFRAME (1 << 3) | #define SCER_SHOW_SUBFRAME (1 << 3) | ||||
| /* RenderData.mode */ | /* RenderData.mode */ | ||||
| #define R_OSA (1 << 0) | #define R_MODE_UNUSED_0 (1 << 0) /* cleared */ | ||||
| #define R_MODE_UNUSED_1 (1 << 1) /* cleared */ | #define R_MODE_UNUSED_1 (1 << 1) /* cleared */ | ||||
| #define R_MODE_UNUSED_2 (1 << 2) /* cleared */ | #define R_MODE_UNUSED_2 (1 << 2) /* cleared */ | ||||
| #define R_MODE_UNUSED_3 (1 << 3) /* cleared */ | #define R_MODE_UNUSED_3 (1 << 3) /* cleared */ | ||||
| #define R_MODE_UNUSED_4 (1 << 4) /* cleared */ | #define R_MODE_UNUSED_4 (1 << 4) /* cleared */ | ||||
| #define R_MODE_UNUSED_5 (1 << 5) /* cleared */ | #define R_MODE_UNUSED_5 (1 << 5) /* cleared */ | ||||
| #define R_MODE_UNUSED_6 (1 << 6) /* cleared */ | #define R_MODE_UNUSED_6 (1 << 6) /* cleared */ | ||||
| #define R_MODE_UNUSED_7 (1 << 7) /* cleared */ | #define R_MODE_UNUSED_7 (1 << 7) /* cleared */ | ||||
| #define R_MODE_UNUSED_8 (1 << 8) /* cleared */ | #define R_MODE_UNUSED_8 (1 << 8) /* cleared */ | ||||
| ▲ Show 20 Lines • Show All 608 Lines • ▼ Show 20 Lines | |||||
| /* SceneEEVEE->shadow_method */ | /* SceneEEVEE->shadow_method */ | ||||
| enum { | enum { | ||||
| SHADOW_ESM = 1, | SHADOW_ESM = 1, | ||||
| SHADOW_VSM = 2, | SHADOW_VSM = 2, | ||||
| SHADOW_METHOD_MAX = 3, | SHADOW_METHOD_MAX = 3, | ||||
| }; | }; | ||||
| /* SceneDisplay->render_aa, SceneDisplay->viewport_aa */ | |||||
| enum { | |||||
| SCE_DISPLAY_AA_OFF = 0, | |||||
| SCE_DISPLAY_AA_FXAA = 1, | |||||
| SCE_DISPLAY_AA_SAMPLES_5 = 5, | |||||
| SCE_DISPLAY_AA_SAMPLES_8 = 8, | |||||
| SCE_DISPLAY_AA_SAMPLES_11 = 11, | |||||
| SCE_DISPLAY_AA_SAMPLES_16 = 16, | |||||
| SCE_DISPLAY_AA_SAMPLES_32 = 32, | |||||
| }; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __DNA_SCENE_TYPES_H__ */ | #endif /* __DNA_SCENE_TYPES_H__ */ | ||||