mirror of
https://github.com/tsoding/boomer
synced 2024-11-16 12:12:47 +00:00
Use glsl extension for shader files
This commit is contained in:
parent
a56b27ec75
commit
75d697c054
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user