Browse Source

fix the radar line material bug

tags/2.0.0
Caven Chen 4 years ago
parent
commit
09c1b1cd65
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/material/shader/radar/RadarLineMaterial.glsl

+ 1
- 1
modules/material/shader/radar/RadarLineMaterial.glsl View File

@@ -4,7 +4,7 @@ uniform float speed;
czm_material czm_getMaterial(czm_materialInput materialInput){
czm_material material = czm_getDefaultMaterial(materialInput);
vec2 st = materialInput.st * 2.0 - 1.0;
float t = czm_frameNumber * 10.0 / 1000.0 ;
float t = czm_frameNumber * speed / 1000.0 ;
vec3 col = vec3(0.0);
vec2 p = vec2(sin(t), cos(t));
float d = length(st - dot(p, st) * p);

Loading…
Cancel
Save