Raylib icon indicating copy to clipboard operation
Raylib copied to clipboard

Shader example?

Open andymule opened this issue 2 years ago • 1 comments

The shader stuff appears to be wrapped but it silently halts the program for me when I try to load one:

let rscFS = "/home/arckex/Raylib/Sources/Example/resources/shaders/glsl330/bloom.fs"
let rscFSTXT = try String(contentsOfFile: rscFS)
let rscVS = "/home/arckex/Raylib/Sources/Example/resources/shaders/glsl330/base.vs"
let rscVSTXT = try String(contentsOfFile: rscVS)
let shader = Raylib.loadShaderFromMemory(rscVSTXT, rscFSTXT)

Can you make a min example of loading a shader? Thanks so much

andymule avatar May 06 '22 18:05 andymule