Skip to content
Snippets Groups Projects
Commit 346ffa33 authored by Alexander Rose's avatar Alexander Rose
Browse files

fixed marking for points & spheres; some cleanup

parent 7ab175c0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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
......@@ -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
......@@ -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')
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment