LeeTeng2001 / better-glsl-plugin

Better glsl plugin for intellij based ide
https://plugins.jetbrains.com/plugin/19021-better-glsl
Apache License 2.0
6 stars 2 forks source link

<expression no assign> expected #4

Open emctague opened 2 years ago

emctague commented 2 years ago

In the following simple, valid vertex shader:

#version 330 core

layout (location = 0) in vec3 pos;

uniform mat4 projection;
uniform mat4 model;

void main() {
    gl_Position = projection * model * vec4(pos, 1.0f);
}

The vec4 on line 9 is underlined in red, with <expression no assign> expected, got 'vec4'. This, however, is valid GLSL and works fine when actually used in a program.

Better GLSL version 0.0.5, AppCode 2022.1.2.

LeeTeng2001 commented 2 years ago

Hello, it's a known issue and i'll be working on it during summer break, I'm only a student but thank you for reporting the bug