[SOLVED] Edit GLSL in the editor

Hello!

I have a GLSL shader in my project. When I right click on it and I select edit, it opens the text editor but not the file. And there’s no other way to open the file in the text editor. It’s not that big of a deal since I can edit it locally and then upload it but I think it’s either a bug or a setting I missed.

Hi @iXperiential,

That seems strange. I don’t have that problem with the shaders in my project. Out of curiosity, what are the file extensions of your shaders?

I’m not able to reproduce this. This is what I’m doing:

Can you tell me the exact step to reproduce what you are seeing please?

The extension was the issue. It was .glsl. Renamed .frag and now it works!
It also sounds cooler.

Thanks!

Can I use .frag for vertex shaders as well or shall I use a different extension?

Glad you got it figured out!

Edit: Also, I believe you can use .vert for your vertex shaders.

1 Like