This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bl_info = { | |
"name": "Random Object Colors", | |
"author": "@Andrej730", | |
"version": (1, 0), | |
"blender": (2, 90, 0), | |
"location": "F3 -> Random Object Color", | |
"description": "", | |
"warning": "", | |
"category": "Objects" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# minimal shader example to create smoothed polylines on Metal | |
import bpy | |
import gpu | |
from gpu_extras.batch import batch_for_shader | |
polyline_vert_glsl = """ | |
// emits 6 vertex per each line | |
// see: https://projects.blender.org/blender/blender/issues/107332 |
NewerOlder