-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
180 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { IImage } from '../asset/IIconService'; | ||
import { ILayer } from '../layer/ILayerService'; | ||
import { IMapConfig } from '../map/IMapService'; | ||
import { IRenderConfig } from '../renderer/IRendererService'; | ||
|
||
|
||
export interface ISceneService { | ||
init(config: IMapConfig & IRenderConfig): void; | ||
addLayer(layer: ILayer): void; | ||
addImage(id: string, image: IImage): void; | ||
render(): void; | ||
destroy(): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
precision highp float; | ||
attribute vec3 a_Position; | ||
attribute vec4 a_color; | ||
attribute vec2 a_uv; | ||
attribute float a_size; | ||
attribute float a_shape; | ||
varying vec4 v_color; | ||
varying vec2 v_uv; | ||
uniform mat4 u_ModelMatrix; | ||
#pragma include "projection" | ||
void main() { | ||
v_color = a_color; | ||
v_uv = a_uv; | ||
vec4 project_pos = project_position(vec4(a_Position, 1.0)); | ||
gl_Position = project_common_position_to_clipspace(vec4(project_pos, 1.0)); | ||
gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); | ||
gl_PointSize = a_size; | ||
v_uv = uv; | ||
|
||
} |
Oops, something went wrong.