diff --git a/src/mol-gl/renderable/direct-volume.ts b/src/mol-gl/renderable/direct-volume.ts index b704e81ab874546491b4ffff9c76cf2ccf80b893..6010ff6fe79e4e51cdd2fa0bcf3a44038ddf5916 100644 --- a/src/mol-gl/renderable/direct-volume.ts +++ b/src/mol-gl/renderable/direct-volume.ts @@ -65,7 +65,5 @@ export function DirectVolumeRenderable(ctx: WebGLContext, id: number, values: Di } const shaderCode = DirectVolumeShaderCode const renderItem = createRenderItem(ctx, 'triangles', shaderCode, schema, { ...values, ...internalValues }) - const renderable = createRenderable(renderItem, values, state); - - return renderable + return createRenderable(renderItem, values, state); } \ No newline at end of file diff --git a/src/mol-gl/renderable/points.ts b/src/mol-gl/renderable/points.ts index 05d3633e975e95989ea2dc2f7dd40c661b05b37a..60f9f243622fcda3422b43bc1ce5b028f8dd1be2 100644 --- a/src/mol-gl/renderable/points.ts +++ b/src/mol-gl/renderable/points.ts @@ -30,7 +30,5 @@ export function PointsRenderable(ctx: WebGLContext, id: number, values: PointsVa } const shaderCode = PointsShaderCode const renderItem = createRenderItem(ctx, 'points', shaderCode, schema, { ...values, ...internalValues }) - const renderable = createRenderable(renderItem, values, state); - - return renderable + return createRenderable(renderItem, values, state); } \ No newline at end of file diff --git a/src/mol-gl/renderable/spheres.ts b/src/mol-gl/renderable/spheres.ts index 4cb132301ab4d3b7c38d6c800dfc1ae8ccd276d3..0136658ab4f5451c1610e301a89837a6c3bb759c 100644 --- a/src/mol-gl/renderable/spheres.ts +++ b/src/mol-gl/renderable/spheres.ts @@ -32,7 +32,5 @@ export function SpheresRenderable(ctx: WebGLContext, id: number, values: Spheres } const shaderCode = SpheresShaderCode const renderItem = createRenderItem(ctx, 'triangles', shaderCode, schema, { ...values, ...internalValues }) - const renderable = createRenderable(renderItem, values, state); - - return renderable + return createRenderable(renderItem, values, state); } \ No newline at end of file diff --git a/src/mol-gl/shader/points.vert b/src/mol-gl/shader/points.vert index 2504f1733fcad10f9d2c37e82bd0154dbac4afc7..27fe6a387b81597f33ab360098a3217068bff2ec 100644 --- a/src/mol-gl/shader/points.vert +++ b/src/mol-gl/shader/points.vert @@ -21,6 +21,7 @@ attribute float aGroup; void main(){ #pragma glslify: import('./chunks/assign-color-varying.glsl') + #pragma glslify: import('./chunks/assign-marker-varying.glsl') #pragma glslify: import('./chunks/assign-position.glsl') #pragma glslify: import('./chunks/assign-size.glsl') diff --git a/src/mol-gl/shader/spheres.vert b/src/mol-gl/shader/spheres.vert index 4c07402625a01b16cbc35528903a0349a52b5d3f..6203d8a3b2b8d24ca6229eb771ea15570a5e365d 100644 --- a/src/mol-gl/shader/spheres.vert +++ b/src/mol-gl/shader/spheres.vert @@ -87,6 +87,7 @@ void quadraticProjection(const in float radius, const in vec3 position){ void main(void){ #pragma glslify: import('./chunks/assign-color-varying.glsl') + #pragma glslify: import('./chunks/assign-marker-varying.glsl') #pragma glslify: import('./chunks/assign-size.glsl') vRadius = size * matrixScale(uModelView);