Add shaders for marching squares
This commit is contained in:
parent
1699e3ae14
commit
b2f19dffbf
4 changed files with 80 additions and 9 deletions
24
MetaballsKit/ShaderTypes.hh
Normal file
24
MetaballsKit/ShaderTypes.hh
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
//
|
||||
// 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>
|
||||
|
||||
struct Vertex {
|
||||
float2 position;
|
||||
float2 textureCoordinate;
|
||||
};
|
||||
|
||||
struct RenderParameters {
|
||||
/// Projection matrix.
|
||||
metal::float4x4 projection;
|
||||
};
|
||||
|
||||
#endif /* ShaderTypes_hh */
|
||||
Loading…
Add table
Add a link
Reference in a new issue