Skip to content

CCShader needs to separate vsh/fsh name #1384

@elbaro

Description

@elbaro

I am migrating my code to v3. CCGLProgram is renamed to CCShader, but I can't see the counterpart to this:

[[CCGLProgram alloc] initWithVertexShaderFilename:@"default.vsh" fragmentShaderFilename:@"vBlur.fsh"];

There is only one constructor [CCShader shaderNamed: ""] but it cannot specify the different names for vertex shader / fragment shader. There is [CCShader alloc] initWithVertex..Shader.. but it only accepts shader codes, which are not cached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions