metaballs/MetaballsKit/Shaders/ShaderTypes.hh

28 lines
460 B
C++
Raw Normal View History

2018-10-14 12:16:21 -07:00
//
// ShaderTypes.h
// Metaballs
//
// Created by Eryn Wells on 10/14/18.
// Copyright © 2018 Eryn Wells. All rights reserved.
//
#ifndef ShaderTypes_hh
#define ShaderTypes_hh
#include <metal_stdlib>
2018-10-14 17:26:12 -07:00
/// A Ball is a float 3-tuple: (x, y, r).
typedef float3 Ball;
2018-10-14 12:16:21 -07:00
struct Vertex {
float2 position;
float2 textureCoordinate;
};
struct RenderParameters {
/// Projection matrix.
metal::float4x4 projection;
};
#endif /* ShaderTypes_hh */