Skip to content

Instantly share code, notes, and snippets.

@PiotrMi
PiotrMi / knife_project.py
Created November 1, 2020 20:35 — forked from Begalov/knife_project.py
Blender 3d 2.80 knife project from view operator
import bpy
class KnifeProjectOperator(bpy.types.Operator):
"""Knefe project from view selected objects to active"""
bl_idname = "object.knife_project_operator"
bl_label = "Knife Project Operator"
@classmethod
def poll(cls, context):
return context.active_object is not None \
@PiotrMi
PiotrMi / Blend Add Particle.shader
Created June 22, 2018 16:19 — forked from ThePhiMa/Blend Add Particle.shader
Blend Add Shader (as used in Diablo 3)
// Blend Add Shader (as used in Diablo 3)
// Uses the alpha channel to determine if the pixel needs to be blended additively or by transparency.
// Is a good way prevent the additive buildup that makes a scene with a lot of particle effects white and unreadable while still having some particle texture features.
// Idea by Julian Love - http://www.gdcvault.com/play/1017660/Technical-Artist-Bootcamp-The-VFX
Shader "Custom/Blend Add Particle Test"
{
Properties
{
_MainTex("Base (RGB) Trans (A)", 2D) = "white" {}
_BlendThreshold("Blend Treshold (0.0:Additive, 1.0:Trasparency)", Range(0.0, 1.0)) = 0.5
@PiotrMi
PiotrMi / adzovx.markdown
Last active December 7, 2015 02:09
adzovx