BGE: Add alpha to coverage render mode.
authorPorteries Tristan <republicthunderbolt9@gmail.com>
Fri, 3 Jul 2015 17:03:29 +0000 (19:03 +0200)
committerPorteries Tristan <republicthunderbolt9@gmail.com>
Fri, 3 Jul 2015 17:03:29 +0000 (19:03 +0200)
commit749f346ce077f9616a47c03cac03f8537274efc4
tree66ac85361c56bcd0deea3a5d61472222223e882c
parentc503d1735351a74c43a3ae26c7ff774e940f2a26
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/gpu/GPU_material.h
source/blender/gpu/intern/gpu_draw.c
source/blender/makesdna/DNA_material_types.h
source/blender/makesrna/intern/rna_material.c