Skip to content

Instantly share code, notes, and snippets.

View tomlooman's full-sized avatar

Tom Looman tomlooman

View GitHub Profile
@tomlooman
tomlooman / SpiralBlurCustomDepth
Last active October 7, 2021 01:44
Spiral Blur modified to sample Custom depth buffer for soft object outlines.
float3 CurColor=0;
float2 NewUV = UV;
int i=0;
float StepSize = Distance / (int) DistanceSteps;
float CurDistance=0;
float2 CurOffset=0;
float SubOffset = 0;
float TwoPi = 6.283185;
float accumdist=0;
@tomlooman
tomlooman / ASMutator_WeaponReplacement.cpp
Created September 2, 2015 16:46
Test Gist: ASMutator_WeaponReplacement
bool ASMutator_WeaponReplacement::CheckRelevance_Implementation(AActor* Other)
{
ASWeaponPickup* WeaponPickup = Cast<ASWeaponPickup>(Other);
if (WeaponPickup)
{
for (int32 i = 0; i < WeaponsToReplace.Num(); i++)
{
const FReplacementInfo& Info = WeaponsToReplace[i];
if (Info.FromWeapon == WeaponPickup->WeaponClass)