Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created June 18, 2022 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/6e3b864ae7dc8bc513135602204efe1a to your computer and use it in GitHub Desktop.
Save flushpot1125/6e3b864ae7dc8bc513135602204efe1a to your computer and use it in GitHub Desktop.
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