forked from bartvdbraak/blender
Cleanup: style
This commit is contained in:
parent
c31c53983e
commit
b0a7e77700
@ -194,8 +194,10 @@ void id_us_clear_real(ID *id)
|
||||
}
|
||||
}
|
||||
|
||||
/* Same as \a id_us_plus, but does not handle lib indirect -> extern.
|
||||
* Only used by readfile.c so far, but simpler/safer to keep it here nontheless. */
|
||||
/**
|
||||
* Same as \a id_us_plus, but does not handle lib indirect -> extern.
|
||||
* Only used by readfile.c so far, but simpler/safer to keep it here nonetheless.
|
||||
*/
|
||||
void id_us_plus_no_lib(ID *id)
|
||||
{
|
||||
if (id) {
|
||||
|
@ -61,8 +61,7 @@ static const float fullscreenuvs[4][2] = {{0.0f, 0.0f}, {1.0f, 0.0f}, {0.0f, 1.0
|
||||
|
||||
/* shader interfaces (legacy GL 2 style, without uniform buffer objects) */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int ssao_uniform;
|
||||
int ssao_color_uniform;
|
||||
int color_uniform;
|
||||
@ -73,8 +72,7 @@ typedef struct
|
||||
int ssao_jitter_uniform;
|
||||
} GPUSSAOShaderInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int invrendertargetdim_uniform;
|
||||
int color_uniform;
|
||||
int dof_uniform;
|
||||
@ -82,8 +80,7 @@ typedef struct
|
||||
int viewvecs_uniform;
|
||||
} GPUDOFHQPassOneInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int rendertargetdim_uniform;
|
||||
int color_uniform;
|
||||
int coc_uniform;
|
||||
@ -91,8 +88,7 @@ typedef struct
|
||||
int dof_uniform;
|
||||
} GPUDOFHQPassTwoInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int dof_uniform;
|
||||
int invrendertargetdim_uniform;
|
||||
int color_uniform;
|
||||
@ -102,8 +98,7 @@ typedef struct
|
||||
int depth_uniform;
|
||||
} GPUDOFHQPassThreeInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int dof_uniform;
|
||||
int invrendertargetdim_uniform;
|
||||
int color_uniform;
|
||||
@ -111,8 +106,7 @@ typedef struct
|
||||
int viewvecs_uniform;
|
||||
} GPUDOFPassOneInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int dof_uniform;
|
||||
int invrendertargetdim_uniform;
|
||||
int color_uniform;
|
||||
@ -120,20 +114,17 @@ typedef struct
|
||||
int viewvecs_uniform;
|
||||
} GPUDOFPassTwoInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int near_coc_downsampled;
|
||||
int near_coc_blurred;
|
||||
} GPUDOFPassThreeInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int near_coc_downsampled;
|
||||
int invrendertargetdim_uniform;
|
||||
} GPUDOFPassFourInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int medium_blurred_uniform;
|
||||
int high_blurred_uniform;
|
||||
int dof_uniform;
|
||||
@ -143,8 +134,7 @@ typedef struct
|
||||
int viewvecs_uniform;
|
||||
} GPUDOFPassFiveInterface;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int depth_uniform;
|
||||
} GPUDepthResolveInterface;
|
||||
|
||||
@ -1332,8 +1322,7 @@ void GPU_fx_shader_init_interface(struct GPUShader *shader, GPUFXShaderEffect ef
|
||||
if (!shader)
|
||||
return;
|
||||
|
||||
switch (effect)
|
||||
{
|
||||
switch (effect) {
|
||||
case GPU_SHADER_FX_SSAO:
|
||||
{
|
||||
GPUSSAOShaderInterface *interface = MEM_mallocN(sizeof(GPUSSAOShaderInterface), "GPUSSAOShaderInterface");
|
||||
|
@ -1312,7 +1312,7 @@ static void do_material_tex(GPUShadeInput *shi)
|
||||
texture_rgb_blend(mat, tcol, shi->specrgb, tin, colspecfac, mtex->blendtype, &shi->specrgb);
|
||||
}
|
||||
|
||||
if(mtex->mapto & MAP_COLMIR) {
|
||||
if (mtex->mapto & MAP_COLMIR) {
|
||||
GPUNodeLink *colmirfac;
|
||||
|
||||
if (mtex->mirrfac == 1.0f) colmirfac = stencil;
|
||||
|
Loading…
Reference in New Issue
Block a user