Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var glowLayer = new BABYLON.GlowLayer ("glow",scene);
glowLayer.customEmissiveColorSelector = function(mesh, subMesh, material, result) {
if (mesh.name === "shockWave") {
result.set(1, 0.63, 0.3, 1);// orange glow layer
} else {
result.set(0, 0, 0, 0);//no glow layer
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment