-
Notifications
You must be signed in to change notification settings - Fork 0
/
shader.h
35 lines (26 loc) · 852 Bytes
/
shader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <glad/glad.h>
#include <stdio.h>
extern GLuint textShader;
extern GLuint snoiseShader;
extern GLuint galaxyShader;
extern GLuint starShader;
extern GLuint bloomShader;
extern GLuint planetShader;
extern GLuint jellyfishShader;
extern GLuint particleShader;
extern GLuint underwaterPostProcessShader;
extern GLuint initialSpectrumShader;
extern GLuint spectrumUpdateShader;
extern GLuint waterShader;
extern GLuint atmospherePostProcessShader;
extern GLuint assembleMapsShader;
extern GLuint horizontalFFTShader;
extern GLuint verticalFFTShader;
extern GLuint cellShader;
extern GLuint dnaShader;
extern GLuint atomShader;
extern GLuint electronShader;
void initShaders();
GLuint compileShader(const char *vShaderCode, const char *gShaderCode, const char *fShaderCode);
GLuint compileComputeShader(const char *shaderCode);