Skip to content

Instantly share code, notes, and snippets.

@PompiPompi
PompiPompi / Decal_Source_Code
Last active August 29, 2015 14:10
Decal source code from the Fatal Framework
class GenerateQuadMeshShader: public Graphics3D::GeometryShader {
public:
GenerateQuadMeshShader(std::vector<math::Triangle> & Triangles, Graphics2D::Position StartLeft, Graphics2D::Position StartRight, Graphics2D::Position EndLeft, Graphics2D::Position EndRight):Triangles(Triangles), StartLeft(StartLeft), StartRight(StartRight), EndLeft(EndLeft), EndRight(EndRight)
{
StartLeft.y = 0;
StartRight.y = 0;
EndLeft.y = 0;
EndRight.y = 0;
}
@PompiPompi
PompiPompi / gist:bde260cb28f237918697
Created September 27, 2014 14:55
Spatial Partitioning Grid Class
#pragma once
#include "stdafx.h"
#include "resource.h"
#include "Graphics2D.h"
#include "Graphics3D.h"
#include "Geometry/Triangle.h"
#include "Math/float3.h"
namespace Logic {