Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_shader_fx_types.h
| Show All 28 Lines | |||||
| /* WARNING ALERT! TYPEDEF VALUES ARE WRITTEN IN FILES! SO DO NOT CHANGE! | /* WARNING ALERT! TYPEDEF VALUES ARE WRITTEN IN FILES! SO DO NOT CHANGE! | ||||
| * (ONLY ADD NEW ITEMS AT THE END) | * (ONLY ADD NEW ITEMS AT THE END) | ||||
| */ | */ | ||||
| typedef enum ShaderFxType { | typedef enum ShaderFxType { | ||||
| eShaderFxType_None = 0, | eShaderFxType_None = 0, | ||||
| eShaderFxType_Blur = 1, | eShaderFxType_Blur = 1, | ||||
| eShaderFxType_Flip = 2, | eShaderFxType_Flip = 2, | ||||
| eShaderFxType_Light = 3, | eShaderFxType_Light_deprecated = 3, /* DEPRECATED (replaced by scene lights) */ | ||||
| eShaderFxType_Pixel = 4, | eShaderFxType_Pixel = 4, | ||||
| eShaderFxType_Swirl = 5, | eShaderFxType_Swirl = 5, | ||||
| eShaderFxType_Wave = 6, | eShaderFxType_Wave = 6, | ||||
| eShaderFxType_Rim = 7, | eShaderFxType_Rim = 7, | ||||
| eShaderFxType_Colorize = 8, | eShaderFxType_Colorize = 8, | ||||
| eShaderFxType_Shadow = 9, | eShaderFxType_Shadow = 9, | ||||
| eShaderFxType_Glow = 10, | eShaderFxType_Glow = 10, | ||||
| NUM_SHADER_FX_TYPES, | NUM_SHADER_FX_TYPES, | ||||
| Show All 30 Lines | typedef struct ShaderFxData_Runtime { | ||||
| char _pad[4]; | char _pad[4]; | ||||
| struct DRWShadingGroup *fx_sh; | struct DRWShadingGroup *fx_sh; | ||||
| struct DRWShadingGroup *fx_sh_b; | struct DRWShadingGroup *fx_sh_b; | ||||
| struct DRWShadingGroup *fx_sh_c; | struct DRWShadingGroup *fx_sh_c; | ||||
| } ShaderFxData_Runtime; | } ShaderFxData_Runtime; | ||||
| typedef struct BlurShaderFxData { | typedef struct BlurShaderFxData { | ||||
| ShaderFxData shaderfx; | ShaderFxData shaderfx; | ||||
| int radius[2]; | float radius[2]; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| /** Number of samples. */ | /** Number of samples. */ | ||||
| int samples; | int samples; | ||||
| /** Circle of confusion. */ | /** Rotation of blur effect. */ | ||||
| float coc; | float rotation; | ||||
| /** Not visible in rna. */ | |||||
| int blur[2]; | |||||
| char _pad[4]; | char _pad[4]; | ||||
| ShaderFxData_Runtime runtime; | ShaderFxData_Runtime runtime; | ||||
| } BlurShaderFxData; | } BlurShaderFxData; | ||||
| typedef enum eBlurShaderFx_Flag { | typedef enum eBlurShaderFx_Flag { | ||||
| FX_BLUR_DOF_MODE = (1 << 0), | FX_BLUR_DOF_MODE = (1 << 0), | ||||
| } eBlurShaderFx_Flag; | } eBlurShaderFx_Flag; | ||||
| Show All 30 Lines | |||||
| typedef enum eFlipShaderFx_Flag { | typedef enum eFlipShaderFx_Flag { | ||||
| FX_FLIP_HORIZONTAL = (1 << 0), | FX_FLIP_HORIZONTAL = (1 << 0), | ||||
| FX_FLIP_VERTICAL = (1 << 1), | FX_FLIP_VERTICAL = (1 << 1), | ||||
| } eFlipShaderFx_Flag; | } eFlipShaderFx_Flag; | ||||
| typedef struct GlowShaderFxData { | typedef struct GlowShaderFxData { | ||||
| ShaderFxData shaderfx; | ShaderFxData shaderfx; | ||||
| float glow_color[3]; | float glow_color[4]; | ||||
| float select_color[3]; | float select_color[3]; | ||||
| float threshold; | float threshold; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| int mode; | int mode; | ||||
| int blur[2]; | float blur[2]; | ||||
| int samples; | int samples; | ||||
| /** Rotation of effect. */ | |||||
| float rotation; | |||||
| /** Blend modes. */ | |||||
| int blend_mode; | |||||
| char _pad[4]; | |||||
| ShaderFxData_Runtime runtime; | ShaderFxData_Runtime runtime; | ||||
| } GlowShaderFxData; | } GlowShaderFxData; | ||||
| typedef enum GlowShaderFxModes { | typedef enum GlowShaderFxModes { | ||||
| eShaderFxGlowMode_Luminance = 0, | eShaderFxGlowMode_Luminance = 0, | ||||
| eShaderFxGlowMode_Color = 1, | eShaderFxGlowMode_Color = 1, | ||||
| } GlowShaderFxModes; | } GlowShaderFxModes; | ||||
| typedef enum eGlowShaderFx_Flag { | typedef enum eGlowShaderFx_Flag { | ||||
| FX_GLOW_USE_ALPHA = (1 << 0), | FX_GLOW_USE_ALPHA = (1 << 0), | ||||
| } eGlowShaderFx_Flag; | } eGlowShaderFx_Flag; | ||||
| typedef struct LightShaderFxData { | |||||
| ShaderFxData shaderfx; | |||||
| struct Object *object; | |||||
| /** Flags. */ | |||||
| int flag; | |||||
| float energy; | |||||
| float ambient; | |||||
| /** Internal, not visible in rna. */ | |||||
| float loc[4]; | |||||
| char _pad[4]; | |||||
| ShaderFxData_Runtime runtime; | |||||
| } LightShaderFxData; | |||||
| typedef struct PixelShaderFxData { | typedef struct PixelShaderFxData { | ||||
| ShaderFxData shaderfx; | ShaderFxData shaderfx; | ||||
| /** Last element used for shader only. */ | /** Last element used for shader only. */ | ||||
| int size[3]; | int size[3]; | ||||
| /** Flags. */ | /** Flags. */ | ||||
| int flag; | int flag; | ||||
| float rgba[4]; | float rgba[4]; | ||||
| ShaderFxData_Runtime runtime; | ShaderFxData_Runtime runtime; | ||||
| ▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines | |||||