Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-09-20 18:41:07 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-09-20 18:53:47 +0300
commit667add5fc5b743a324b508e3c5cedfde1df218c0 (patch)
treee3f3d9f7b4f46d0ce6e351959ba669f13382e650 /source/blender/gpu/GPU_material.h
parent5c20161f81c75a4139cb3c865955f53a9880f627 (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.h1
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 {