mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-06 13:48:01 +03:00
25 lines
646 B
C
25 lines
646 B
C
/*
|
|
by korenkonder
|
|
GitHub/GitLab: korenkonder
|
|
*/
|
|
|
|
#include "material.h"
|
|
|
|
const material_blend material_blend_default = {
|
|
.enable = true,
|
|
.src_factor_rgb = GL_SRC_ALPHA,
|
|
.dst_factor_rgb = GL_ONE_MINUS_SRC_ALPHA,
|
|
.src_factor_alpha = GL_ONE,
|
|
.dst_factor_alpha = GL_ONE_MINUS_SRC_ALPHA,
|
|
.mode_rgb = GL_FUNC_ADD,
|
|
.mode_alpha = GL_FUNC_ADD,
|
|
};
|
|
|
|
const material_param material_param_default = {
|
|
.ambient = { 0.0f, 0.0f, 0.0f, 0.0f },
|
|
.diffuse = { 1.0f, 1.0f, 1.0f, 1.0f },
|
|
.specular = { 0.0f, 0.0f, 0.0f, 0.0f },
|
|
.emission = { 0.0f, 0.0f, 0.0f, 0.0f },
|
|
.shininess = 0.0f,
|
|
};
|