Skip to content

glsl version used #51

@Cdriko

Description

@Cdriko

hello
I'm under ubuntu 18.04
glxinfo | grep "OpenGL version" OpenGL version string: 4.6.0 NVIDIA 390.116

but in the editor, if I use the function "inverse" for a matrix, I got an error.
mat4 rotBackwards=inverse(rotForward);
'inverse' : no matching overloaded function found

but the inverse function should works https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/inverse.xhtml

as explained here I try to add
#version 150 at the begining of the code , but I got error if I put a number bellow 100.

How can I know wich version of glsl the editor uses ?
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions