diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-03 00:20:21 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-03 00:20:25 +0000 |
commit | 3dbf5028eec53f661a018ddbd969bd26aa7748b5 (patch) | |
tree | 2eb0e548461f24397a9f16da8455dd11971061fb /gfx/gl/shader.cpp | |
parent | Only calculate and bind the model transform if the shader program uses it (diff) | |
download | ilt-3dbf5028eec53f661a018ddbd969bd26aa7748b5.tar.bz2 ilt-3dbf5028eec53f661a018ddbd969bd26aa7748b5.tar.xz ilt-3dbf5028eec53f661a018ddbd969bd26aa7748b5.zip |
Create and use a shader program for things with absolute position
Rails in this case.
Diffstat (limited to 'gfx/gl/shader.cpp')
-rw-r--r-- | gfx/gl/shader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gfx/gl/shader.cpp b/gfx/gl/shader.cpp index 3021257..b97d6fc 100644 --- a/gfx/gl/shader.cpp +++ b/gfx/gl/shader.cpp @@ -45,6 +45,10 @@ Shader::Shader() : {
landmassShader_vs.compile(),
landmassShader_fs.compile(),
+ },
+ {
+ landmassShader_vs.compile(),
+ basicShader_fs.compile(),
}}}
{
}
|