Skip to content

Instantly share code, notes, and snippets.

@danhambleton
danhambleton / Volume.glsl
Created March 28, 2017 15:48
Volume render for 3D Texture
#include "Uniforms.glsl"
#include "Samplers.glsl"
#include "Transform.glsl"
#include "ScreenPos.glsl"
#include "Lighting.glsl"
#include "Fog.glsl"
varying vec2 vTexCoord;
@danhambleton
danhambleton / MultiLineEdit.cpp
Last active March 30, 2017 02:54
Simple multiple line editor for Urho.
//
// Copyright (c) 2008-2015 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
@danhambleton
danhambleton / main.cpp
Created February 25, 2015 20:45
Binary serialiation error
#include "stdafx.h"
#include <boost/serialization/vector.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <fstream>
class RawData {