summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneShader.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-04-16 00:23:43 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-04-16 00:23:43 +0100
commit741bb027df58fd9f30f4d94cdaf2d6416e11e3ee (patch)
tree67a91f8c4f5394df90bf7ce149229bb85389749f /gfx/gl/sceneShader.cpp
parentCreate terrain vertices per surface type (diff)
downloadilt-741bb027df58fd9f30f4d94cdaf2d6416e11e3ee.tar.bz2
ilt-741bb027df58fd9f30f4d94cdaf2d6416e11e3ee.tar.xz
ilt-741bb027df58fd9f30f4d94cdaf2d6416e11e3ee.zip
Custom vertex, vertex shader and fragment shader for landmass
Handles global position type, colourBias for surface types
Diffstat (limited to 'gfx/gl/sceneShader.cpp')
-rw-r--r--gfx/gl/sceneShader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/gl/sceneShader.cpp b/gfx/gl/sceneShader.cpp
index 2dd9612..985faa0 100644
--- a/gfx/gl/sceneShader.cpp
+++ b/gfx/gl/sceneShader.cpp
@@ -12,6 +12,7 @@
#include <gfx/gl/shaders/vs-dynamicPoint.h>
#include <gfx/gl/shaders/vs-dynamicPointInst.h>
#include <gfx/gl/shaders/vs-fixedPoint.h>
+#include <gfx/gl/shaders/vs-landmass.h>
#include <gfx/gl/shaders/vs-networkCurve.h>
#include <gfx/gl/shaders/vs-networkStraight.h>
#include <gfx/gl/shaders/vs-pointLight.h>
@@ -33,7 +34,7 @@ SceneShader::allPrograms(auto member, auto &&... ps) const
}
SceneShader::SceneShader() :
- basicInst {dynamicPointInst_vs, material_fs}, landmass {fixedPoint_vs, landmass_fs},
+ basicInst {dynamicPointInst_vs, material_fs}, landmass {landmass_vs, landmass_fs},
absolute {fixedPoint_vs, material_fs}, spotLightInst {spotLight_vs, spotLight_gs, spotLight_fs},
pointLightInst {pointLight_vs, pointLight_gs, pointLight_fs},
networkStraight {networkStraight_vs, networkStraight_gs, network_fs},