Skip to content

Sync GLProgramState to web engine #1429

Open
@pandamicro

Description

@pandamicro

Shader usage is different from the native engine and web engine

// web
var program = node.getShaderProgram();
var location = program.getUniforLocationForName("xxx");
program.setUniformLocationWith1f(location, 1);
// Native
var programstate = cc.GLProgramState.create(glProgram);
programstate.setUniformFloat("xxx", 1);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions