@graspologic/renderer-glsl
Advanced tools
Comparing version 0.7.0-10 to 0.7.0-11
@@ -20,6 +20,2 @@ module.exports = `#version 300 es | ||
float color_scale(float distance) { | ||
return 0.8 + step(distance / vRadius, 0.9) * 0.2; | ||
} | ||
float calculate_circle_distance() { | ||
@@ -47,3 +43,3 @@ float distance = length(vVertex); | ||
// we are drawing | ||
fragColor.rgb = mix(vec3(0.0, 0.0, 0.0), fragColor.rgb, (uOutline * color_scale(distance))); | ||
fragColor.rgb = mix(fragColor.rgb, fragColor.rgb * 0.8, uOutline * step(0.9, distance / vRadius)); | ||
@@ -50,0 +46,0 @@ fragColor = picking_filterColor(fragColor); |
@@ -0,0 +0,0 @@ module.exports = `#version 300 es |
@@ -20,6 +20,2 @@ export default `#version 300 es | ||
float color_scale(float distance) { | ||
return 0.8 + step(distance / vRadius, 0.9) * 0.2; | ||
} | ||
float calculate_circle_distance() { | ||
@@ -47,3 +43,3 @@ float distance = length(vVertex); | ||
// we are drawing | ||
fragColor.rgb = mix(vec3(0.0, 0.0, 0.0), fragColor.rgb, (uOutline * color_scale(distance))); | ||
fragColor.rgb = mix(fragColor.rgb, fragColor.rgb * 0.8, uOutline * step(0.9, distance / vRadius)); | ||
@@ -50,0 +46,0 @@ fragColor = picking_filterColor(fragColor); |
@@ -0,0 +0,0 @@ export default `#version 300 es |
{ | ||
"name": "@graspologic/renderer-glsl", | ||
"version": "0.7.0-10", | ||
"version": "0.7.0-11", | ||
"description": "Graph data visualization core renderer (GLSL Code)", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@essex/scripts": "^12.0.0", | ||
"@essex/scripts": "^12.0.2", | ||
"@types/fs-extra": "^9.0.2", | ||
@@ -25,0 +25,0 @@ "@types/glob": "^7", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41734
831