From 667add5fc5b743a324b508e3c5cedfde1df218c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 20 Sep 2018 17:41:07 +0200 Subject: Eevee: Implement Wireframe Node This implementation is a bit hacky but match cycles pretty close. If pixel size is not enabled, it will use the geom shader to compute distances between vertices. This will have a cost. Implementation is a bit hacky in gpu_codegen to make the geom shader works in an optional manner. --- source/blender/gpu/GPU_material.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/gpu/GPU_material.h') diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h index c8f66e33202..b724299935b 100644 --- a/source/blender/gpu/GPU_material.h +++ b/source/blender/gpu/GPU_material.h @@ -114,6 +114,7 @@ typedef enum GPUBuiltin { GPU_VOLUME_FLAME = (1 << 17), GPU_VOLUME_TEMPERATURE = (1 << 18), GPU_BARYCENTRIC_TEXCO = (1 << 19), + GPU_BARYCENTRIC_DIST = (1 << 20), } GPUBuiltin; typedef enum GPUMatType { -- cgit v1.2.3