diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-09-20 18:41:07 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-09-20 18:53:47 +0300 |
commit | 667add5fc5b743a324b508e3c5cedfde1df218c0 (patch) | |
tree | e3f3d9f7b4f46d0ce6e351959ba669f13382e650 /source/blender/gpu/GPU_material.h | |
parent | 5c20161f81c75a4139cb3c865955f53a9880f627 (diff) |
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.
Diffstat (limited to 'source/blender/gpu/GPU_material.h')
-rw-r--r-- | source/blender/gpu/GPU_material.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |