From 749f346ce077f9616a47c03cac03f8537274efc4 Mon Sep 17 00:00:00 2001 From: Porteries Tristan Date: Fri, 3 Jul 2015 19:03:29 +0200 Subject: BGE: Add alpha to coverage render mode. This patch add a new option for transparency meshes : Alpha to coverage, in the game setting panel in material. The alpha to coverage request a multisample, the best is 8x but 4x and 2x can also give nice render. 4x alpha clip : http://www.pasteall.org/pic/show.php?id=89464 4x alpha to coverage : http://www.pasteall.org/pic/show.php?id=89463 Reviewers: moguri, kupoman, campbellbarton, psy-fi Reviewed By: psy-fi Subscribers: lordloki, rdb Projects: #game_engine Differential Revision: https://developer.blender.org/D1354 --- source/blender/makesdna/DNA_material_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_material_types.h') diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h index c3270430a3a..8790f736600 100644 --- a/source/blender/makesdna/DNA_material_types.h +++ b/source/blender/makesdna/DNA_material_types.h @@ -210,6 +210,7 @@ typedef struct Material { #define GEMAT_ALPHA 2 /* GPU_BLEND_ALPHA */ #define GEMAT_CLIP 4 /* GPU_BLEND_CLIP */ #define GEMAT_ALPHA_SORT 8 /* GPU_BLEND_ALPHA_SORT */ +#define GEMAT_ALPHA_TO_COVERAGE 16 /* GPU_BLEND_ALPHA_TO_COVERAGE */ // Game Options - flag #define GEMAT_BACKCULL 16 /* KX_BACKCULL */ -- cgit v1.2.3