Use glsl extension for shader files

This commit is contained in:
rexim 2019-10-31 00:23:27 +07:00
parent a56b27ec75
commit 75d697c054
3 changed files with 4 additions and 4 deletions

View File

@ -20,8 +20,8 @@ proc readShader(file: string): Shader =
const
isDebug = not (defined(danger) or defined(release))
defaultVertexShader = readShader "boomer.vs"
defaultFragmentShader = readShader "boomer.fs"
defaultVertexShader = readShader "vert.glsl"
defaultFragmentShader = readShader "frag.glsl"
proc newShader(shader: Shader, kind: GLenum): GLuint =
result = glCreateShader(kind)
@ -89,8 +89,8 @@ proc main() =
echo "Using config: ", config
let customVertexShaderPath = boomerDir / "boomer.vs"
let customFragmentShaderPath = boomerDir / "boomer.fs"
let customVertexShaderPath = boomerDir / "vert.glsl"
let customFragmentShaderPath = boomerDir / "frag.glsl"
var vertexShader: Shader = block:
if existsFile customVertexShaderPath: