Skip to content

Instantly share code, notes, and snippets.

View maluoi's full-sized avatar
:shipit:
Squirreling away code.

Nick Klingensmith maluoi

:shipit:
Squirreling away code.
View GitHub Profile
@maluoi
maluoi / UnlitShadowedWavy.shader
Last active August 12, 2020 20:10
UnlitShadowedWavy.shader
Shader "Unlit/UnlitShadowed Wavy"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_SwaySpeed("Sway Speed", float) = .5
_WorldCoherence("Sway Coherence", float) = 0.1
_WindDirection("Wind Direction", Vector) = (1,1,0,0)
@maluoi
maluoi / tga.h
Last active November 24, 2023 16:51
A super short and streamlined C/C++ function for writing .tga images to file! No dependencies, and no cruft.
// Copyright(c) 2019 Nick Klingensmith (@koujaku). All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy of this license, see < https://opensource.org/licenses/MIT >
#pragma once
#include <stdio.h>
#include <stdint.h>