Skip to content

Shader example? #4

Open
Open
@andymule

Description

@andymule

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions