Skip to content

Commit

Permalink
Update the vertex shader for IconLayer64 after default uniforms chang…
Browse files Browse the repository at this point in the history
…ed in visgl#390 (visgl#410)
  • Loading branch information
Shaojing Li authored Mar 9, 2017
1 parent 17560a2 commit d5a5a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layers/core/icon-layer/icon-layer-64-vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ attribute vec4 instanceIconFrames;
attribute float instanceColorModes;
attribute vec2 instanceOffsets;

uniform vec2 screenSize;
uniform vec2 viewportSize;
uniform float sizeScale;
uniform float renderPickingBuffer;
uniform vec2 iconsTextureDim;
Expand All @@ -41,7 +41,7 @@ varying vec2 vTextureCoords;

void main(void) {
vec2 iconSize = instanceIconFrames.zw;
vec2 iconSize_clipspace = iconSize / screenSize * 2.0;
vec2 iconSize_clipspace = iconSize / viewportSize * 2.0;
// scale icon height to match instanceSize
float instanceScale = iconSize.y == 0.0 ? 0.0 : instanceSizes / iconSize.y;

Expand Down

0 comments on commit d5a5a60

Please sign in to comment.