Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting in shader strings #5

Open
davidhesselbom opened this issue May 8, 2015 · 0 comments
Open

Syntax highlighting in shader strings #5

davidhesselbom opened this issue May 8, 2015 · 0 comments

Comments

@davidhesselbom
Copy link
Contributor

It would be useful to be able to define shader strings in a way that Atom can syntax highlight the shader as GLSL code instead of a string. For instance, instead of

OpenGLES3MapBgr: class extends OpenGLES3MapDefault {
    init: func (context: GpuContext, transform := false) { super(This fragmentSource, context, transform, func { this program setUniform("texture0", 0) }) }
    fragmentSource: static String = "
        #version 300 es\n
        precision highp float;\n
        uniform sampler2D texture0;\n
        in vec2 fragmentTextureCoordinate;
        out vec3 outColor;\n
        void main() {\n
            outColor = texture(texture0, fragmentTextureCoordinate).rgb;\n
        }\n"
}

imagine something like

OpenGLES3MapBgr: class extends OpenGLES3MapDefault {
    init: func (context: GpuContext, transform := false) { super(This fragmentSource, context, transform, func { this program setUniform("texture0", 0) }) }
    fragmentSource: static String = GLSL"
        #version 300 es
        precision highp float;
        uniform sampler2D texture0;
        in vec2 fragmentTextureCoordinate;
        out vec3 outColor;
        void main() {
            outColor = texture(texture0, fragmentTextureCoordinate).rgb;
        }"
}

but in Atom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant