Skip to content

Commit

Permalink
add NON_INSTANCED_MODEL define (#3333)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jul 10, 2019
1 parent 84077c7 commit dbc0edd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default class SolidPolygonLayer extends Layer {
return {
vs,
fs,
defines: {},
modules: [projectModule, 'gouraud-lighting', 'picking']
};
}
Expand Down Expand Up @@ -283,9 +284,12 @@ export default class SolidPolygonLayer extends Layer {
let sideModel;

if (filled) {
const shaders = this.getShaders(vsTop);
shaders.defines.NON_INSTANCED_MODEL = 1;

topModel = new Model(
gl,
Object.assign({}, this.getShaders(vsTop), {
Object.assign({}, shaders, {
id: `${id}-top`,
drawMode: GL.TRIANGLES,
attributes: {
Expand Down

0 comments on commit dbc0edd

Please sign in to comment.